//========================================================================== // PRODUCT: RusRoute - MaaSoftware routing firewall software driver // (C) Copyright Moiseenko A.A., MaaSoftware, 2003-2008. All Rights Reserved. // http://www.maasoftware.ru http://www.maasoftware.com // http://www.rusroute.ru http://www.rusroute.com // support@maasoftware.ru //========================================================================== // FILE: Entry.c // // AUTHOR: Andrey A. Moiseenko // // OVERVIEW DriverEntry with standard calling conversion. // ~~~~~~~~ // DATE: 2008 //========================================================================== #include "perm.h" #pragma warning(disable:4214) // bit field types other than int #pragma warning(disable:4201) // nameless struct/union #pragma warning(disable:4115) // named type definition in parentheses #pragma warning(disable:4127) // conditional expression is constant #pragma warning(disable:4054) // cast of function pointer to PVOID #pragma warning(disable:4244) // conversion from 'int' to 'BOOLEAN', possible loss of data /*#include */ /*#include "passthru.h"*/ DRIVER_INITIALIZE DriverEntry; extern NTSTATUS DriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath ); #ifdef _WIN32 #define __cconv__ __stdcall #else #define __cconv__ __cdecl #endif #ifdef __cplusplus extern "C" NTSTATUS __cconv__ DriverEntryCpp( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath ); #else extern NTSTATUS DriverEntryCpp( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath ); #endif /* NTSTATUS __cdecl DriverEntryCpp( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath ) { return 0; } */ #pragma NDIS_INIT_FUNCTION(DriverEntry) NTSTATUS DriverEntry( IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath ) { return DriverEntryCpp(DriverObject, RegistryPath); }