Added missing STDCALL.

svn path=/trunk/; revision=789
This commit is contained in:
Eric Kohl 1999-11-20 21:59:39 +00:00
parent c8689122b1
commit 64915d3ebe
5 changed files with 8 additions and 6 deletions

View file

@ -258,7 +258,8 @@ void test_mouse(void)
}; };
}; };
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) NTSTATUS STDCALL
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{ {
DbgPrint("Mouse Driver 0.0.3\n"); DbgPrint("Mouse Driver 0.0.3\n");
InitializeMouse(); InitializeMouse();

View file

@ -67,7 +67,8 @@ NTSTATUS NullUnload(PDRIVER_OBJECT DriverObject)
return(STATUS_SUCCESS); return(STATUS_SUCCESS);
} }
NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) NTSTATUS STDCALL
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
/* /*
* FUNCTION: Called by the system to initalize the driver * FUNCTION: Called by the system to initalize the driver
* ARGUMENTS: * ARGUMENTS:
@ -81,7 +82,7 @@ NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
ANSI_STRING ansi_device_name; ANSI_STRING ansi_device_name;
UNICODE_STRING device_name; UNICODE_STRING device_name;
DbgPrint("Null Device Driver 0.0.1\n"); DbgPrint("Null Device Driver 0.0.2\n");
RtlInitAnsiString(&ansi_device_name,"\\Device\\NUL"); RtlInitAnsiString(&ansi_device_name,"\\Device\\NUL");
RtlAnsiStringToUnicodeString(&device_name,&ansi_device_name,TRUE); RtlAnsiStringToUnicodeString(&device_name,&ansi_device_name,TRUE);

View file

@ -115,7 +115,7 @@ NTSTATUS Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
return(status); return(status);
} }
STDCALL NTSTATUS NTSTATUS STDCALL
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
/* /*
* FUNCTION: Called by the system to initalize the driver * FUNCTION: Called by the system to initalize the driver

View file

@ -69,7 +69,7 @@
#define LPGETSTATUS 0x060b /* return LP_S(minor) */ #define LPGETSTATUS 0x060b /* return LP_S(minor) */
#define LPRESET 0x060c /* reset printer */ #define LPRESET 0x060c /* reset printer */
/* timeout for printk'ing a timeout, in jiffies (100ths of a second). /* timeout for print'ing a timeout, in jiffies (100ths of a second).
This is also used for re-checking error conditions if LP_ABORT is This is also used for re-checking error conditions if LP_ABORT is
not set. This is the default behavior. */ not set. This is the default behavior. */

View file

@ -145,7 +145,7 @@ void testserial(void)
}; };
}; };
STDCALL NTSTATUS NTSTATUS STDCALL
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{ {
DbgPrint("Serial Driver 0.0.2\n"); DbgPrint("Serial Driver 0.0.2\n");