Fixed a few STDCALL issues and other warnings.

svn path=/trunk/; revision=4019
This commit is contained in:
Eric Kohl 2003-01-17 13:03:16 +00:00
parent 3ade7829d0
commit 0349fbade9
6 changed files with 18 additions and 17 deletions

View file

@ -248,7 +248,7 @@ NPF_StartDump(POPEN_INSTANCE Open)
THREAD_ALL_ACCESS,
NULL,
KernelMode,
&Open->DumpThreadObject,
(PVOID*)&Open->DumpThreadObject,
0);
if ( !NT_SUCCESS( ntStatus ) )
{

View file

@ -67,7 +67,8 @@ NDIS_SPIN_LOCK Opened_Instances_Lock;
//-------------------------------------------------------------------
NTSTATUS NPF_Open(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
NTSTATUS STDCALL
NPF_Open(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
PDEVICE_EXTENSION DeviceExtension;
@ -380,7 +381,7 @@ VOID NPF_OpenAdapterComplete(
//-------------------------------------------------------------------
NTSTATUS
NTSTATUS STDCALL
NPF_Close(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)
{

View file

@ -593,7 +593,7 @@ BOOLEAN createDevice(IN OUT PDRIVER_OBJECT adriverObjectP,
//-------------------------------------------------------------------
VOID
VOID STDCALL
NPF_Unload(IN PDRIVER_OBJECT DriverObject)
{
PDEVICE_OBJECT DeviceObject;
@ -648,7 +648,7 @@ NPF_Unload(IN PDRIVER_OBJECT DriverObject)
//-------------------------------------------------------------------
NTSTATUS
NTSTATUS STDCALL
NPF_IoControl(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)
{
POPEN_INSTANCE Open;
@ -1344,7 +1344,7 @@ NPF_ReadRegistry(
//-------------------------------------------------------------------
NTSTATUS
NTSTATUS STDCALL
NPF_QueryRegistryRoutine(
IN PWSTR ValueName,
IN ULONG ValueType,

View file

@ -120,14 +120,14 @@
This IOCTL is used to perform an OID set operation on the NIC driver.
*/
#define BIOCSETOID 2147483648
#define BIOCSETOID 2147483648UL
/*!
\brief IOCTL code: get an OID value
This IOCTL is used to perform an OID get operation on the NIC driver.
*/
#define BIOCQUERYOID 2147483652
#define BIOCQUERYOID 2147483652UL
/*!
\brief IOCTL code: set the name of a the file used by kernel dump mode
@ -455,7 +455,7 @@ BOOLEAN createDevice(
and buffers needed by the new instance, fills the OPEN_INSTANCE structure associated with it and opens the
adapter with a call to NdisOpenAdapter.
*/
NTSTATUS
NTSTATUS STDCALL
NPF_Open(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -487,7 +487,7 @@ NPF_OpenAdapterComplete(
It stops the capture/monitoring/dump process, deallocates the memory and the objects associated with the
instance and closing the files. The network adapter is then closed with a call to NdisCloseAdapter.
*/
NTSTATUS
NTSTATUS STDCALL
NPF_Close(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -590,7 +590,7 @@ NPF_ReceiveComplete(IN NDIS_HANDLE ProtocolBindingContext);
- #BIOCSENDPACKETSSYNC
- #BIOCSENDPACKETSNOSYNC
*/
NTSTATUS
NTSTATUS STDCALL
NPF_IoControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -625,7 +625,7 @@ NPF_RequestComplete(
associated with Irp indicates the number of copies of the packet that will be sent: more than one copy of the
packet can be sent for performance reasons.
*/
NTSTATUS
NTSTATUS STDCALL
NPF_Write(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -712,7 +712,7 @@ NPF_StatusComplete(IN NDIS_HANDLE ProtocolBindingContext);
delete the devices and deregisters the protocol. The driver can be unloaded by the user stopping the NPF
service (from control panel or with a console 'net stop npf').
*/
VOID
VOID STDCALL
NPF_Unload(IN PDRIVER_OBJECT DriverObject);
@ -734,7 +734,7 @@ NPF_Unload(IN PDRIVER_OBJECT DriverObject);
- If the instance is in statistical mode or in dump mode, the application's request is blocked until the
timeout kept in OPEN_INSTANCE::TimeOut expires.
*/
NTSTATUS
NTSTATUS STDCALL
NPF_Read(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -758,7 +758,7 @@ NPF_ReadRegistry(
Normally not used in recent versions of NPF.
*/
NTSTATUS
NTSTATUS STDCALL
NPF_QueryRegistryRoutine(
IN PWSTR ValueName,
IN ULONG ValueType,

View file

@ -96,7 +96,7 @@ UINT n,i,NBlocks;
//-------------------------------------------------------------------
NTSTATUS
NTSTATUS STDCALL
NPF_Read(IN PDEVICE_OBJECT DeviceObject,IN PIRP Irp)
{
POPEN_INSTANCE Open;

View file

@ -41,7 +41,7 @@
//-------------------------------------------------------------------
NTSTATUS
NTSTATUS STDCALL
NPF_Write(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp