#ifndef _DFS_PCH_
#define _DFS_PCH_
-#ifndef INIT_SECTION
-#ifdef __GNUC__
-#define INIT_SECTION __attribute__((section ("INIT")))
-#else
-#define INIT_SECTION /* Done via alloc_text for MSC */
-#endif
-#define INIT_FUNCTION INIT_SECTION
-#endif
+#include <section_attribs.h>
#define DFS_OPEN_CONTEXT 0xFF444653
#define DFS_DOWNLEVEL_OPEN_CONTEXT 0x11444653
#include <wdmguid.h>
#include <ndk/psfuncs.h>
#include <ntdddisk.h>
-
-#ifdef __GNUC__
-#define INIT_SECTION __attribute__((section ("INIT")))
-#else
-#define INIT_SECTION /* Done via alloc_text for MSC */
-#endif
+#include <section_attribs.h>
typedef struct _DEVICE_EXTENSION
{
IN PDEVICE_INFORMATION DeviceInformation
);
-INIT_SECTION
+INIT_FUNCTION
BOOLEAN
MountmgrReadNoAutoMount(
IN PUNICODE_STRING RegistryPath
/*
* @implemented
*/
-INIT_SECTION
+INIT_FUNCTION
BOOLEAN
MountmgrReadNoAutoMount(IN PUNICODE_STRING RegistryPath)
{
/* FUNCTIONS ****************************************************************/
-INIT_SECTION
+INIT_FUNCTION
NTSTATUS
NTAPI
DriverEntry(IN PDRIVER_OBJECT DriverObject,