[NDK][NTOS] Add global definition of INIT_FUNCTION/INIT_SECTION (#779)
[reactos.git] / sdk / include / ndk / kefuncs.h
index f0b1c27..6d7b713 100644 (file)
@@ -24,6 +24,7 @@ Author:
 //
 #include <umtypes.h>
 #include <ketypes.h>
+#include <section_attribs.h>
 
 #ifndef NTOS_MODE_USER
 
@@ -244,6 +245,7 @@ KeSignalCallDpcSynchronize(
 // ARC Configuration Functions. Only enabled if you have ARC Support
 //
 #ifdef _ARC_
+INIT_FUNCTION
 PCONFIGURATION_COMPONENT_DATA
 NTAPI
 KeFindConfigurationNextEntry(
@@ -254,6 +256,7 @@ KeFindConfigurationNextEntry(
     _In_ PCONFIGURATION_COMPONENT_DATA *NextLink
 );
 
+INIT_FUNCTION
 PCONFIGURATION_COMPONENT_DATA
 NTAPI
 KeFindConfigurationEntry(