- Kill off more STDCALL

svn path=/trunk/; revision=37762
This commit is contained in:
Stefan Ginsberg 2008-11-30 11:16:55 +00:00
parent 2bafd1ffc3
commit b137725c9a
107 changed files with 628 additions and 636 deletions

View file

@ -57,7 +57,7 @@ typedef struct
INT_PTR CALLBACK HexEditWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
ATOM
STDCALL
WINAPI
RegisterHexEditorClass(HINSTANCE hInstance)
{
WNDCLASSEX WndClass;
@ -76,7 +76,7 @@ RegisterHexEditorClass(HINSTANCE hInstance)
}
BOOL
STDCALL
WINAPI
UnregisterHexEditorClass(HINSTANCE hInstance)
{
return UnregisterClass(HEX_EDIT_CLASS_NAME, hInstance);

View file

@ -3,9 +3,9 @@
#define HEX_EDIT_CLASS_NAME _T("HexEdit32")
ATOM STDCALL
ATOM WINAPI
RegisterHexEditorClass(HINSTANCE hInstance);
BOOL STDCALL
BOOL WINAPI
UnregisterHexEditorClass(HINSTANCE hInstance);
/* styles */

View file

@ -177,13 +177,13 @@ VOID SystemTimeToEventTime(SYSTEMTIME * pSystemTime,
DWORD * pEventTime);
/* logport.c */
NTSTATUS STDCALL PortThreadRoutine(PVOID Param);
NTSTATUS WINAPI PortThreadRoutine(PVOID Param);
NTSTATUS InitLogPort(VOID);
NTSTATUS ProcessPortMessage(VOID);
/* rpc.c */
DWORD STDCALL RpcThreadRoutine(LPVOID lpParameter);
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter);
#endif /* __EVENTLOG_H__ */

View file

@ -20,7 +20,7 @@ extern BOOL onLiveCD;
/* FUNCTIONS ****************************************************************/
NTSTATUS STDCALL PortThreadRoutine(PVOID Param)
NTSTATUS WINAPI PortThreadRoutine(PVOID Param)
{
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -12,7 +12,7 @@
/* FUNCTIONS ****************************************************************/
DWORD STDCALL RpcThreadRoutine(LPVOID lpParameter)
DWORD WINAPI RpcThreadRoutine(LPVOID lpParameter)
{
RPC_STATUS Status;

View file

@ -34,7 +34,7 @@
#include <debug.h>
typedef DWORD (STDCALL *PINSTALL_REACTOS)(HINSTANCE hInstance);
typedef DWORD (WINAPI *PINSTALL_REACTOS)(HINSTANCE hInstance);
/* FUNCTIONS ****************************************************************/
@ -113,7 +113,7 @@ RunLiveCD (HINSTANCE hInstance)
FreeLibrary (hDll);
}
int STDCALL
int WINAPI
_tWinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,

View file

@ -448,7 +448,7 @@ InstTerminateInstaller(BOOL Wait)
}
}
static DWORD STDCALL
static DWORD WINAPI
InstInstallationThread(LPVOID lpParameter)
{
HANDLE hThread;

View file

@ -153,7 +153,7 @@ static int ParseCommandLine( int argc, TCHAR *argv[] )
// can interpret. If we wanted to halt the chkdsk we could return FALSE.
//
//----------------------------------------------------------------------
BOOLEAN STDCALL
BOOLEAN WINAPI
FormatExCallback (
CALLBACKCOMMAND Command,
ULONG Modifier,

View file

@ -77,7 +77,7 @@ ScmSetServiceGroup(PSERVICE lpService,
}
static NTSTATUS STDCALL
static NTSTATUS WINAPI
CreateGroupOrderListRoutine(PWSTR ValueName,
ULONG ValueType,
PVOID ValueData,
@ -126,7 +126,7 @@ CreateGroupOrderListRoutine(PWSTR ValueName,
}
static NTSTATUS STDCALL
static NTSTATUS WINAPI
CreateGroupListRoutine(PWSTR ValueName,
ULONG ValueType,
PVOID ValueData,

View file

@ -292,7 +292,7 @@ ShutdownHandlerRoutine(DWORD dwCtrlType)
}
int STDCALL
int WINAPI
wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPWSTR lpCmdLine,

View file

@ -56,7 +56,7 @@ SmpSetClientInitialized (PSM_CLIENT_DATA Client)
*
* NOTE: call it holding SmpClientDirectory.Lock only
*/
static INT STDCALL SmpGetFirstFreeClientEntry (VOID)
static INT NTAPI SmpGetFirstFreeClientEntry (VOID)
{
INT ClientIndex = 0;
@ -122,7 +122,7 @@ SmpLookupClient (USHORT SubsystemId)
* WARNING
* SmpClientDirectory.Lock must be held by the caller.
*/
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpDestroyClientObject (PSM_CLIENT_DATA Client, NTSTATUS DestroyReason)
{
DPRINT("SM:%s(%p,%08lx) called\n", __FUNCTION__, Client, DestroyReason);
@ -146,7 +146,7 @@ SmpDestroyClientObject (PSM_CLIENT_DATA Client, NTSTATUS DestroyReason)
* RETURN VALUES
* NTSTATUS
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
SmBeginClientInitialization (IN PSM_PORT_MESSAGE Request,
OUT PSM_CLIENT_DATA * ClientData)
{
@ -273,7 +273,7 @@ SmBeginClientInitialization (IN PSM_PORT_MESSAGE Request,
* Lookup the subsystem server descriptor given the process ID
* of the subsystem server process.
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
SmCompleteClientInitialization (ULONG ProcessId)
{
NTSTATUS Status = STATUS_NOT_FOUND;
@ -301,7 +301,7 @@ SmCompleteClientInitialization (ULONG ProcessId)
/**********************************************************************
* SmpDestroyClientByClientIndex/1 PRIVATE
*/
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpDestroyClientByClientIndex (INT ClientIndex)
{
NTSTATUS Status = STATUS_SUCCESS;
@ -344,7 +344,7 @@ SmpDestroyClientByClientIndex (INT ClientIndex)
* RETURN VALUE
* NONE.
*/
static VOID STDCALL SmpTimeoutCandidateClient (PVOID x)
static VOID NTAPI SmpTimeoutCandidateClient (PVOID x)
{
NTSTATUS Status = STATUS_SUCCESS;
HANDLE CandidateClientProcessHandle = (HANDLE) x;
@ -390,7 +390,7 @@ static VOID STDCALL SmpTimeoutCandidateClient (PVOID x)
*
*
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
SmCreateClient (PRTL_USER_PROCESS_INFORMATION ProcessInfo, PWSTR ProgramName)
{
NTSTATUS Status = STATUS_SUCCESS;
@ -480,7 +480,7 @@ SmCreateClient (PRTL_USER_PROCESS_INFORMATION ProcessInfo, PWSTR ProgramName)
* 2. kill client process
* 3. release resources
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
SmDestroyClient (ULONG SubsystemId)
{
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -21,7 +21,7 @@ HANDLE hSmDbgApiPort = (HANDLE) 0;
/* FUNCTIONS *********************************************************/
static VOID STDCALL
static VOID NTAPI
DbgSsApiPortThread (PVOID dummy)
{
NTSTATUS Status = STATUS_SUCCESS;
@ -41,7 +41,7 @@ DbgSsApiPortThread (PVOID dummy)
NtTerminateThread(NtCurrentThread(),Status);
}
static VOID STDCALL
static VOID NTAPI
DbgUiApiPortThread (PVOID dummy)
{
NTSTATUS Status = STATUS_SUCCESS;
@ -61,13 +61,13 @@ DbgUiApiPortThread (PVOID dummy)
NtTerminateThread(NtCurrentThread(),Status);
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpCreatePT (IN OUT PHANDLE hPort,
IN LPWSTR wcPortName,
IN ULONG ulMaxDataSize,
IN ULONG ulMaxMessageSize,
IN ULONG ulPoolCharge OPTIONAL,
IN VOID (STDCALL * procServingThread)(PVOID) OPTIONAL,
IN VOID (NTAPI * procServingThread)(PVOID) OPTIONAL,
IN OUT PHANDLE phServingThread OPTIONAL)
{
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -12,7 +12,7 @@
#define NDEBUG
#include <debug.h>
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpDosDevicesQueryRoutine(PWSTR ValueName,
ULONG ValueType,
PVOID ValueData,

View file

@ -44,7 +44,7 @@ SmpSetEnvironmentVariable(IN PVOID Context,
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpEnvironmentQueryRoutine(IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,

View file

@ -356,7 +356,7 @@ SmpMoveFile( IN LPCWSTR lpExistingFileName,
*
*
*--*/
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpMoveFilesQueryRoutine(IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,

View file

@ -12,7 +12,7 @@
#define NDEBUG
#include <debug.h>
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpObjectDirectoryQueryRoutine(PWSTR ValueName,
ULONG ValueType,
PVOID ValueData,

View file

@ -14,7 +14,7 @@
#define GIGABYTE (1024 * 1024 * 1024) /* One Gigabyte */
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpPagingFilesQueryRoutine(PWSTR ValueName,
ULONG ValueType,
PVOID ValueData,

View file

@ -18,7 +18,7 @@
/**********************************************************************
* SmpRunBootAppsQueryRoutine/6
*/
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpRunBootAppsQueryRoutine(PWSTR ValueName,
ULONG ValueType,
PVOID ValueData,

View file

@ -29,7 +29,7 @@ HANDLE hSmApiPort = (HANDLE) 0;
* Register with itself for ImageSubsystemId
* (programmatically).
*/
NTSTATUS STDCALL SmRegisterInternalSubsystem (LPWSTR PgmName,
NTSTATUS NTAPI SmRegisterInternalSubsystem (LPWSTR PgmName,
USHORT ImageSubsystemId,
PHANDLE ApiPort)
{

View file

@ -12,7 +12,7 @@
#define NDEBUG
#include <debug.h>
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SmpKnownDllsQueryRoutine(PWSTR ValueName,
ULONG ValueType,
PVOID ValueData,

View file

@ -12,7 +12,7 @@
#define NDEBUG
#include <debug.h>
VOID STDCALL DisplayString(LPCWSTR lpwString)
VOID NTAPI DisplayString(LPCWSTR lpwString)
{
UNICODE_STRING us;
@ -20,7 +20,7 @@ VOID STDCALL DisplayString(LPCWSTR lpwString)
NtDisplayString (&us);
}
VOID STDCALL PrintString (char* fmt, ...)
VOID NTAPI PrintString (char* fmt, ...)
{
char buffer[512];
va_list ap;

View file

@ -46,7 +46,7 @@ PSM_CONNECT_DATA FASTCALL SmpGetConnectData (PSM_PORT_MESSAGE Request)
return (PSM_CONNECT_DATA)(PortMessage + 1);
}
NTSTATUS STDCALL
NTSTATUS NTAPI
SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request);
/**********************************************************************
@ -109,7 +109,7 @@ SmpCallbackServer (PSM_PORT_MESSAGE Request,
* DESCRIPTION
* Entry point for the listener thread of LPC port "\SmApiPort".
*/
VOID STDCALL
VOID NTAPI
SmpApiConnectedThread(PVOID pConnectedPort)
{
NTSTATUS Status = STATUS_SUCCESS;
@ -177,7 +177,7 @@ SmpApiConnectedThread(PVOID pConnectedPort)
* REMARKS
* Quoted in http://support.microsoft.com/kb/258060/EN-US/
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
{
PSM_CONNECT_DATA ConnectData = SmpGetConnectData (Request);
@ -293,7 +293,7 @@ SmpHandleConnectionRequest (PSM_PORT_MESSAGE Request)
* necessary in NT LPC, because server side connected ports are
* never used to receive requests.
*/
VOID STDCALL
VOID NTAPI
SmpApiThread (HANDLE ListeningPort)
{
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -34,7 +34,7 @@ static const WCHAR szSystemDirectory[] = L"\\System32";
* NTSTATUS:
*
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
SmCreateUserProcess (LPWSTR ImagePath,
LPWSTR CommandLine,
ULONG Flags,

View file

@ -50,7 +50,7 @@ NTSTATUS SmCreatePagingFiles(VOID);
NTSTATUS SmInitializeRegistry(VOID);
/* initss.c */
NTSTATUS STDCALL SmRegisterInternalSubsystem(LPWSTR,USHORT,PHANDLE);
NTSTATUS NTAPI SmRegisterInternalSubsystem(LPWSTR,USHORT,PHANDLE);
NTSTATUS SmLoadSubsystems(VOID);
/* smapi.c */
@ -58,13 +58,13 @@ NTSTATUS SmLoadSubsystems(VOID);
NTSTATUS FASTCALL n (PSM_PORT_MESSAGE Request)
PSM_CONNECT_DATA FASTCALL SmpGetConnectData (PSM_PORT_MESSAGE);
NTSTATUS SmCreateApiPort(VOID);
VOID STDCALL SmpApiThread(PVOID);
VOID NTAPI SmpApiThread(PVOID);
/* smapiexec.c */
#define SM_CREATE_FLAG_WAIT 0x01
#define SM_CREATE_FLAG_RESERVE_1MB 0x02
NTSTATUS STDCALL SmCreateUserProcess(LPWSTR ImagePath,
NTSTATUS NTAPI SmCreateUserProcess(LPWSTR ImagePath,
LPWSTR CommandLine,
ULONG Flags,
PLARGE_INTEGER Timeout OPTIONAL,
@ -97,10 +97,10 @@ typedef struct _SM_CLIENT_DATA
} SM_CLIENT_DATA, *PSM_CLIENT_DATA;
NTSTATUS SmInitializeClientManagement (VOID);
NTSTATUS STDCALL SmCreateClient (PRTL_USER_PROCESS_INFORMATION,PWSTR);
NTSTATUS STDCALL SmDestroyClient (ULONG);
NTSTATUS STDCALL SmBeginClientInitialization (PSM_PORT_MESSAGE,PSM_CLIENT_DATA*);
NTSTATUS STDCALL SmCompleteClientInitialization (ULONG);
NTSTATUS NTAPI SmCreateClient (PRTL_USER_PROCESS_INFORMATION,PWSTR);
NTSTATUS NTAPI SmDestroyClient (ULONG);
NTSTATUS NTAPI SmBeginClientInitialization (PSM_PORT_MESSAGE,PSM_CLIENT_DATA*);
NTSTATUS NTAPI SmCompleteClientInitialization (ULONG);
NTSTATUS FASTCALL SmGetClientBasicInformation (PSM_BASIC_INFORMATION);
NTSTATUS FASTCALL SmGetSubSystemInformation (PSM_SUBSYSTEM_INFORMATION);
@ -110,8 +110,8 @@ extern HANDLE DbgUiApiPort;
NTSTATUS SmInitializeDbgSs(VOID);
/* print.c */
VOID STDCALL DisplayString(LPCWSTR lpwString);
VOID STDCALL PrintString (char* fmt, ...);
VOID NTAPI DisplayString(LPCWSTR lpwString);
VOID NTAPI PrintString (char* fmt, ...);
#endif /* _SMSS_H_INCLUDED_ */

View file

@ -29,7 +29,7 @@ CHECK_PAGED_CODE_RTL(char *file, int line)
#endif
PVOID
STDCALL
NTAPI
RtlpAllocateMemory(ULONG Bytes,
ULONG Tag)
{
@ -38,7 +38,7 @@ RtlpAllocateMemory(ULONG Bytes,
VOID
STDCALL
NTAPI
RtlpFreeMemory(PVOID Mem,
ULONG Tag)
{

View file

@ -77,7 +77,7 @@ NullWrite(IN PFILE_OBJECT FileObject,
}
NTSTATUS
STDCALL
NTAPI
NullDispatch(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
{
@ -151,7 +151,7 @@ NullDispatch(IN PDEVICE_OBJECT DeviceObject,
}
NTSTATUS
STDCALL
NTAPI
DriverEntry(IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)
{

View file

@ -13,7 +13,7 @@
#include <debug.h>
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
@ -30,7 +30,7 @@ DriverEntry(
NTSTATUS
STDCALL
NTAPI
ACPIDispatchDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -65,7 +65,7 @@ ACPIDispatchDeviceControl(
NTSTATUS
STDCALL
NTAPI
ACPIPnpControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -96,7 +96,7 @@ ACPIPnpControl(
NTSTATUS
STDCALL
NTAPI
ACPIPowerControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -119,7 +119,7 @@ ACPIPowerControl(
NTSTATUS
STDCALL
NTAPI
ACPIAddDevice(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PhysicalDeviceObject)
@ -165,7 +165,7 @@ ACPIAddDevice(
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)

View file

@ -848,7 +848,7 @@ FdoSetPower(
/*** PUBLIC ******************************************************************/
NTSTATUS
STDCALL
NTAPI
FdoPnpControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@ -937,7 +937,7 @@ FdoPnpControl(
NTSTATUS
STDCALL
NTAPI
FdoPowerControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)

View file

@ -99,13 +99,13 @@ ACPIEnumerateDevices(
/* fdo.c */
NTSTATUS
STDCALL
NTAPI
FdoPnpControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp);
NTSTATUS
STDCALL
NTAPI
FdoPowerControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp);
@ -113,13 +113,13 @@ FdoPowerControl(
/* pdo.c */
NTSTATUS
STDCALL
NTAPI
PdoPnpControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp);
NTSTATUS
STDCALL
NTAPI
PdoPowerControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp);

View file

@ -36,7 +36,7 @@ static KDPC AcpiDpc;
static PVOID IVTVirtualAddress = NULL;
VOID STDCALL
VOID NTAPI
OslDpcStub(
IN PKDPC Dpc,
IN PVOID DeferredContext,
@ -182,7 +182,7 @@ acpi_os_get_physical_address(void *virt, ACPI_PHYSICAL_ADDRESS *phys)
return AE_OK;
}
BOOLEAN STDCALL
BOOLEAN NTAPI
OslIsrStub(
PKINTERRUPT Interrupt,
PVOID ServiceContext)

View file

@ -233,7 +233,7 @@ PdoSetPower(
/*** PUBLIC ******************************************************************/
NTSTATUS
STDCALL
NTAPI
PdoPnpControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@ -341,7 +341,7 @@ PdoPnpControl(
}
NTSTATUS
STDCALL
NTAPI
PdoPowerControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)

View file

@ -1574,7 +1574,7 @@ ISAPNPStopDevice(
static DRIVER_DISPATCH ISAPNPDispatchOpenClose;
static NTSTATUS
STDCALL
NTAPI
ISAPNPDispatchOpenClose(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -1590,7 +1590,7 @@ ISAPNPDispatchOpenClose(
static DRIVER_DISPATCH ISAPNPDispatchReadWrite;
static NTSTATUS
STDCALL
NTAPI
ISAPNPDispatchReadWrite(
IN PDEVICE_OBJECT PhysicalDeviceObject,
IN PIRP Irp)
@ -1606,7 +1606,7 @@ ISAPNPDispatchReadWrite(
static DRIVER_DISPATCH ISAPNPDispatchDeviceControl;
static NTSTATUS
STDCALL
NTAPI
ISAPNPDispatchDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -1638,7 +1638,7 @@ ISAPNPDispatchDeviceControl(
static DRIVER_DISPATCH ISAPNPControl;
static NTSTATUS
STDCALL
NTAPI
ISAPNPControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -1680,7 +1680,7 @@ ISAPNPControl(
static NTSTATUS
STDCALL
NTAPI
ISAPNPAddDevice(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PhysicalDeviceObject)
@ -1721,7 +1721,7 @@ ISAPNPAddDevice(
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)

View file

@ -3,10 +3,6 @@
#include <ntddk.h>
#ifdef _MSC_VER
#define STDCALL
#endif
#ifdef __cplusplus
extern "C" {
#endif
@ -334,7 +330,7 @@ typedef struct _ISAPNP_DEVICE_EXTENSION
} ISAPNP_DEVICE_EXTENSION, *PISAPNP_DEVICE_EXTENSION;
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath);

View file

@ -16,16 +16,16 @@
#include <debug.h>
static DRIVER_DISPATCH PciDispatchDeviceControl;
static NTSTATUS STDCALL PciDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
static NTSTATUS NTAPI PciDispatchDeviceControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
static DRIVER_ADD_DEVICE PciAddDevice;
static NTSTATUS STDCALL PciAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject);
static NTSTATUS NTAPI PciAddDevice(IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT PhysicalDeviceObject);
static DRIVER_DISPATCH PciPowerControl;
static NTSTATUS STDCALL PciPowerControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
static NTSTATUS NTAPI PciPowerControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
static DRIVER_DISPATCH PciPnpControl;
static NTSTATUS STDCALL PciPnpControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
static NTSTATUS NTAPI PciPnpControl(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp);
#ifdef ALLOC_PRAGMA
@ -44,7 +44,7 @@ PPCI_DRIVER_EXTENSION DriverExtension = NULL;
/*** PRIVATE *****************************************************************/
static NTSTATUS
STDCALL
NTAPI
PciDispatchDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -79,7 +79,7 @@ PciDispatchDeviceControl(
static NTSTATUS
STDCALL
NTAPI
PciPnpControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -110,7 +110,7 @@ PciPnpControl(
static NTSTATUS
STDCALL
NTAPI
PciPowerControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -139,7 +139,7 @@ PciPowerControl(
static NTSTATUS
STDCALL
NTAPI
PciAddDevice(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PhysicalDeviceObject)
@ -181,7 +181,7 @@ PciAddDevice(
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)

View file

@ -6,10 +6,6 @@
#include <stdio.h>
#include <ntddk.h>
#ifdef _MSC_VER
#define STDCALL
#endif
#define TAG(A, B, C, D) (ULONG)(((A)<<0) + ((B)<<8) + ((C)<<16) + ((D)<<24))
#define TAG_PCI TAG('P', 'C', 'I', '0')
@ -176,7 +172,7 @@ PdoPowerControl(
PIRP Irp);
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath);

View file

@ -91,10 +91,10 @@ extern PEPROCESS gpepSession;
extern PLARGE_INTEGER gpLockShortDelay;
/* Driver list export functions */
DWORD STDCALL DxDxgGenericThunk(ULONG_PTR ulIndex, ULONG_PTR ulHandle, SIZE_T *pdwSizeOfPtr1, PVOID pvPtr1, SIZE_T *pdwSizeOfPtr2, PVOID pvPtr2);
DWORD STDCALL DxDdIoctl(ULONG ulIoctl, PVOID pBuffer, ULONG ulBufferSize);
PDD_SURFACE_LOCAL STDCALL DxDdLockDirectDrawSurface(HANDLE hDdSurface);
BOOL STDCALL DxDdUnlockDirectDrawSurface(PDD_SURFACE_LOCAL pSurface);
DWORD NTAPI DxDxgGenericThunk(ULONG_PTR ulIndex, ULONG_PTR ulHandle, SIZE_T *pdwSizeOfPtr1, PVOID pvPtr1, SIZE_T *pdwSizeOfPtr2, PVOID pvPtr2);
DWORD NTAPI DxDdIoctl(ULONG ulIoctl, PVOID pBuffer, ULONG ulBufferSize);
PDD_SURFACE_LOCAL NTAPI DxDdLockDirectDrawSurface(HANDLE hDdSurface);
BOOL NTAPI DxDdUnlockDirectDrawSurface(PDD_SURFACE_LOCAL pSurface);
/* Internal functions */
BOOL FASTCALL VerifyObjectOwner(PDD_ENTRY pEntry);

View file

@ -13,7 +13,7 @@
PDD_SURFACE_LOCAL
STDCALL
NTAPI
DxDdLockDirectDrawSurface(HANDLE hDdSurface)
{
PEDD_SURFACE pEDDSurface = NULL;
@ -29,7 +29,7 @@ DxDdLockDirectDrawSurface(HANDLE hDdSurface)
}
BOOL
STDCALL
NTAPI
DxDdUnlockDirectDrawSurface(PDD_SURFACE_LOCAL pSurface)
{
BOOL retVal = FALSE;

View file

@ -43,7 +43,7 @@
*
*--*/
DWORD
STDCALL
NTAPI
DxDxgGenericThunk(ULONG_PTR ulIndex,
ULONG_PTR ulHandle,
SIZE_T *pdwSizeOfPtr1,
@ -78,7 +78,7 @@ DxDxgGenericThunk(ULONG_PTR ulIndex,
*
*--*/
DWORD
STDCALL
NTAPI
DxDdIoctl(ULONG ulIoctl,
PVOID pBuffer,
ULONG ulBufferSize)

View file

@ -131,7 +131,7 @@ static NTSTATUS InitDevice(
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
MPU401Create(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
@ -165,7 +165,7 @@ MPU401Create(PDEVICE_OBJECT DeviceObject,
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
MPU401Close(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
@ -194,7 +194,7 @@ MPU401Close(PDEVICE_OBJECT DeviceObject,
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
MPU401Cleanup(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
@ -227,7 +227,7 @@ MPU401Cleanup(PDEVICE_OBJECT DeviceObject,
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
MPU401DeviceControl(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
@ -350,14 +350,14 @@ MPU401DeviceControl(PDEVICE_OBJECT DeviceObject,
}
static VOID STDCALL
static VOID NTAPI
MPU401Unload(PDRIVER_OBJECT DriverObject)
{
DPRINT("MPU401Unload() called!\n");
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*

View file

@ -134,13 +134,13 @@ BOOLEAN InitUARTMode(ULONG BasePort);
Prototypes for functions in settings.c :
*/
NTSTATUS STDCALL EnumDeviceKeys(
NTSTATUS NTAPI EnumDeviceKeys(
IN PUNICODE_STRING RegistryPath,
IN PWSTR SubKey,
IN PREGISTRY_CALLBACK_ROUTINE Callback,
IN PVOID Context);
NTSTATUS STDCALL LoadSettings(
NTSTATUS NTAPI LoadSettings(
IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,
@ -148,7 +148,7 @@ NTSTATUS STDCALL LoadSettings(
IN PVOID Context,
IN PVOID EntryContext);
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath);

View file

@ -70,7 +70,7 @@ OpenDevicesKey(
#endif
NTSTATUS STDCALL EnumDeviceKeys(
NTSTATUS NTAPI EnumDeviceKeys(
IN PUNICODE_STRING RegistryPath,
IN PWSTR SubKey,
IN PREGISTRY_CALLBACK_ROUTINE Callback,
@ -230,7 +230,7 @@ NTSTATUS STDCALL EnumDeviceKeys(
NTSTATUS STDCALL LoadSettings(
NTSTATUS NTAPI LoadSettings(
IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,

View file

@ -18,7 +18,7 @@
IRP DISPATCH ROUTINES
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
CreateSoundBlaster(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@ -38,7 +38,7 @@ CreateSoundBlaster(
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
CloseSoundBlaster(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@ -55,7 +55,7 @@ CloseSoundBlaster(
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
CleanupSoundBlaster(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@ -72,7 +72,7 @@ CleanupSoundBlaster(
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
ControlSoundBlaster(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@ -97,7 +97,7 @@ ControlSoundBlaster(
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
WriteSoundBlaster(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
@ -114,14 +114,14 @@ WriteSoundBlaster(
return STATUS_SUCCESS;
}
VOID STDCALL
VOID NTAPI
UnloadSoundBlaster(
PDRIVER_OBJECT DriverObject)
{
DPRINT("Sound Blaster driver unload\n");
}
NTSTATUS STDCALL
NTSTATUS NTAPI
OpenSubkey(
PUNICODE_STRING RegistryPath,
PWSTR Subkey,
@ -164,7 +164,7 @@ OpenSubkey(
}
PWSTR STDCALL
PWSTR NTAPI
AllocateRegistryPathInfo(
PUNICODE_STRING BasePath,
PUNICODE_STRING ParametersPath,
@ -210,7 +210,7 @@ AllocateRegistryPathInfo(
#define TAG_REG_INFO TAG('I','g','e','R')
#define TAG_REG_NAME TAG('N','g','e','R')
NTSTATUS STDCALL
NTSTATUS NTAPI
EnumerateSubkey(
PUNICODE_STRING RegistryPath,
PWSTR Subkey,
@ -362,7 +362,7 @@ CreateDeviceName(
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
InitializeSoundBlaster(
PDRIVER_OBJECT DriverObject,
PWSTR RegistryPath)
@ -466,7 +466,7 @@ InitializeSoundBlaster(
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(
PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)

View file

@ -67,7 +67,7 @@ typedef struct _SOUND_BLASTER_PARAMETERS
} SOUND_BLASTER_PARAMETERS, *PSOUND_BLASTER_PARAMETERS;
typedef STDCALL NTSTATUS REGISTRY_CALLBACK_ROUTINE(PDRIVER_OBJECT DriverObject, PWSTR RegistryPath);
typedef NTAPI NTSTATUS REGISTRY_CALLBACK_ROUTINE(PDRIVER_OBJECT DriverObject, PWSTR RegistryPath);
typedef REGISTRY_CALLBACK_ROUTINE *PREGISTRY_CALLBACK_ROUTINE;

View file

@ -34,7 +34,7 @@ BOOLEAN CheckDMA(PDEVICE_EXTENSION Device)
#endif
static IO_ALLOCATION_ACTION STDCALL SoundProgramDMA(
static IO_ALLOCATION_ACTION NTAPI SoundProgramDMA(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID MapRegisterBase,

View file

@ -67,7 +67,7 @@ OpenDevicesKey(
#endif
NTSTATUS STDCALL EnumDeviceKeys(
NTSTATUS NTAPI EnumDeviceKeys(
IN PUNICODE_STRING RegistryPath,
IN PWSTR SubKey,
IN PREGISTRY_CALLBACK_ROUTINE Callback,
@ -227,7 +227,7 @@ NTSTATUS STDCALL EnumDeviceKeys(
NTSTATUS STDCALL LoadSettings(
NTSTATUS NTAPI LoadSettings(
IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,

View file

@ -14,7 +14,7 @@
#include <ntddk.h>
#include "sndblst.h"
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath);
@ -156,7 +156,7 @@ static NTSTATUS InitDevice(
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
BlasterCreate(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
@ -195,7 +195,7 @@ BlasterCreate(PDEVICE_OBJECT DeviceObject,
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
BlasterClose(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
@ -224,7 +224,7 @@ BlasterClose(PDEVICE_OBJECT DeviceObject,
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
BlasterCleanup(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
@ -257,7 +257,7 @@ BlasterCleanup(PDEVICE_OBJECT DeviceObject,
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
BlasterWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
PIO_STACK_LOCATION Stack;
@ -290,7 +290,7 @@ BlasterWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
BlasterDeviceControl(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
/*
@ -409,14 +409,14 @@ BlasterDeviceControl(PDEVICE_OBJECT DeviceObject,
}
static VOID STDCALL
static VOID NTAPI
BlasterUnload(PDRIVER_OBJECT DriverObject)
{
DPRINT("BlasterUnload() called!\n");
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*

View file

@ -147,13 +147,13 @@ USHORT InitSoundCard(ULONG BasePort);
Prototypes for functions in settings.c :
*/
NTSTATUS STDCALL EnumDeviceKeys(
NTSTATUS NTAPI EnumDeviceKeys(
IN PUNICODE_STRING RegistryPath,
IN PWSTR SubKey,
IN PREGISTRY_CALLBACK_ROUTINE Callback,
IN PVOID Context);
NTSTATUS STDCALL LoadSettings(
NTSTATUS NTAPI LoadSettings(
IN PWSTR ValueName,
IN ULONG ValueType,
IN PVOID ValueData,

View file

@ -14,14 +14,14 @@
#include <ntddk.h>
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath);
#define NDEBUG
#include <debug.h>
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*

View file

@ -27,7 +27,7 @@ SB16 sb16;
sb_status sb16_getenvironment(void);
#if 0
static NTSTATUS STDCALL Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
static NTSTATUS NTAPI Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/*
* FUNCTION: Handles user mode requests
* ARGUMENTS:

View file

@ -30,7 +30,7 @@ SB16 sb16;
ULONG OldIRQ;
PKINTERRUPT IrqObject;
static BOOLEAN STDCALL DMAOutputISR(PKINTERRUPT Interrupt, PVOID ServiceContext)
static BOOLEAN NTAPI DMAOutputISR(PKINTERRUPT Interrupt, PVOID ServiceContext)
{
DPRINT1("interrupt\n");
return FALSE;

View file

@ -38,7 +38,7 @@ NTSTATUS WarmSocketForBind( PAFD_FCB FCB ) {
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdBindSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp) {
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -147,7 +147,7 @@ static NTSTATUS NTAPI StreamSocketConnectComplete
/* Return the socket object for ths request only if it is a connected or
stream type. */
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdStreamSocketConnect(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp) {
NTSTATUS Status = STATUS_INVALID_PARAMETER;

View file

@ -12,7 +12,7 @@
#include "tdiconn.h"
#include "debug.h"
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdGetContext( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
NTSTATUS Status = STATUS_INVALID_PARAMETER;
@ -36,7 +36,7 @@ AfdGetContext( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return UnlockAndMaybeComplete( FCB, Status, Irp, 0, NULL );
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdSetContext( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PFILE_OBJECT FileObject = IrpSp->FileObject;

View file

@ -13,7 +13,7 @@
#include "debug.h"
#include "pseh/pseh.h"
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdGetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
NTSTATUS Status = STATUS_SUCCESS;
@ -69,7 +69,7 @@ AfdGetInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return UnlockAndMaybeComplete( FCB, Status, Irp, 0, NULL );
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdGetSockOrPeerName( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp, BOOLEAN Local ) {
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -38,10 +38,10 @@ void OskitDumpBuffer( PCHAR Data, UINT Len ) {
/* FUNCTIONS */
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath);
static NTSTATUS STDCALL
static NTSTATUS NTAPI
AfdCreateSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp) {
PAFD_FCB FCB;
@ -230,7 +230,7 @@ VOID DestroySocket( PAFD_FCB FCB ) {
AFD_DbgPrint(MIN_TRACE,("Leaving\n"));
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
AfdCloseSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp)
{
@ -260,7 +260,7 @@ AfdCloseSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
AfdDisconnect(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp) {
PFILE_OBJECT FileObject = IrpSp->FileObject;
@ -311,7 +311,7 @@ AfdDisconnect(PDEVICE_OBJECT DeviceObject, PIRP Irp,
return UnlockAndMaybeComplete( FCB, Status, Irp, 0, NULL );
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
AfdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
@ -499,12 +499,12 @@ AfdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
return (Status);
}
static VOID STDCALL
static VOID NTAPI
AfdUnload(PDRIVER_OBJECT DriverObject)
{
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
PDEVICE_OBJECT DeviceObject;

View file

@ -270,7 +270,7 @@ NTSTATUS NTAPI ReceiveComplete
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdConnectedSocketReadData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp, BOOLEAN Short) {
NTSTATUS Status = STATUS_INVALID_PARAMETER;
@ -347,7 +347,7 @@ AfdConnectedSocketReadData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
SatisfyPacketRecvRequest( PAFD_FCB FCB, PIRP Irp,
PAFD_STORED_DATAGRAM DatagramRecv,
PUINT TotalBytesCopied ) {
@ -563,7 +563,7 @@ PacketSocketRecvComplete(
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdPacketSocketReadData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -155,7 +155,7 @@ VOID KillSelectsForFCB( PAFD_DEVICE_EXTENSION DeviceExt,
AFD_DbgPrint(MID_TRACE,("Done\n"));
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
NTSTATUS Status = STATUS_NO_MEMORY;
@ -268,7 +268,7 @@ AfdSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdEventSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PFILE_OBJECT FileObject = IrpSp->FileObject;
@ -315,7 +315,7 @@ AfdEventSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
0, NULL );
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdEnumEvents( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PFILE_OBJECT FileObject = IrpSp->FileObject;

View file

@ -201,7 +201,7 @@ static NTSTATUS NTAPI PacketSocketSendComplete
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdConnectedSocketWriteData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp, BOOLEAN Short) {
NTSTATUS Status = STATUS_SUCCESS;
@ -380,7 +380,7 @@ AfdConnectedSocketWriteData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
}
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AfdPacketSocketWriteData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp) {
NTSTATUS Status = STATUS_SUCCESS;

View file

@ -166,7 +166,7 @@ typedef struct _DISCARD_HEADER {
NdisRawWritePortUchar((Adapter)->IOBase + PG0_IMR, (Adapter)->InterruptMask); \
}
VOID STDCALL MiniportHandleInterrupt(
VOID NTAPI MiniportHandleInterrupt(
IN NDIS_HANDLE MiniportAdapterContext);
#endif /* __8390_H */

View file

@ -1300,7 +1300,7 @@ static VOID HandleTransmit(
}
VOID STDCALL MiniportHandleInterrupt(
VOID NTAPI MiniportHandleInterrupt(
IN NDIS_HANDLE MiniportAdapterContext)
/*
* FUNCTION: Handler for deferred processing of interrupts

View file

@ -12,7 +12,7 @@
NTSTATUS
#ifndef _MSC_VER
STDCALL
NTAPI
#endif
DriverEntry(
PDRIVER_OBJECT DriverObject,
@ -62,7 +62,7 @@ DRIVER_INFORMATION DriverInfo = {0};
NDIS_PHYSICAL_ADDRESS HighestAcceptableMax = NDIS_PHYSICAL_ADDRESS_CONST(-1, -1);
static BOOLEAN STDCALL MiniportCheckForHang(
static BOOLEAN NTAPI MiniportCheckForHang(
IN NDIS_HANDLE MiniportAdapterContext)
/*
* FUNCTION: Examines if an adapter has hung
@ -78,7 +78,7 @@ static BOOLEAN STDCALL MiniportCheckForHang(
}
static VOID STDCALL MiniportDisableInterrupt(
static VOID NTAPI MiniportDisableInterrupt(
IN NDIS_HANDLE MiniportAdapterContext)
/*
* FUNCTION: Disables interrupts from an adapter
@ -93,7 +93,7 @@ static VOID STDCALL MiniportDisableInterrupt(
}
static VOID STDCALL MiniportEnableInterrupt(
static VOID NTAPI MiniportEnableInterrupt(
IN NDIS_HANDLE MiniportAdapterContext)
/*
* FUNCTION: Enables interrupts from an adapter
@ -108,7 +108,7 @@ static VOID STDCALL MiniportEnableInterrupt(
}
static VOID STDCALL MiniportHalt(
static VOID NTAPI MiniportHalt(
IN NDIS_HANDLE MiniportAdapterContext)
/*
* FUNCTION: Deallocates resources for and halts an adapter
@ -153,7 +153,7 @@ static VOID STDCALL MiniportHalt(
}
static VOID STDCALL MiQueryResources(
static VOID NTAPI MiQueryResources(
OUT PNDIS_STATUS Status,
IN PNIC_ADAPTER Adapter,
IN NDIS_HANDLE WrapperConfigurationContext)
@ -204,7 +204,7 @@ static VOID STDCALL MiQueryResources(
}
VOID
STDCALL
NTAPI
MiniportShutdown(PVOID Context)
{
#ifndef NOCARD
@ -212,7 +212,7 @@ MiniportShutdown(PVOID Context)
#endif
}
static NDIS_STATUS STDCALL MiniportInitialize(
static NDIS_STATUS NTAPI MiniportInitialize(
OUT PNDIS_STATUS OpenErrorStatus,
OUT PUINT SelectedMediumIndex,
IN PNDIS_MEDIUM MediumArray,
@ -437,7 +437,7 @@ static NDIS_STATUS STDCALL MiniportInitialize(
}
static VOID STDCALL MiniportISR(
static VOID NTAPI MiniportISR(
OUT PBOOLEAN InterruptRecognized,
OUT PBOOLEAN QueueMiniportHandleInterrupt,
IN NDIS_HANDLE MiniportAdapterContext)
@ -462,7 +462,7 @@ static VOID STDCALL MiniportISR(
}
static NDIS_STATUS STDCALL MiniportQueryInformation(
static NDIS_STATUS NTAPI MiniportQueryInformation(
IN NDIS_HANDLE MiniportAdapterContext,
IN NDIS_OID Oid,
IN PVOID InformationBuffer,
@ -622,7 +622,7 @@ static NDIS_STATUS STDCALL MiniportQueryInformation(
}
static NDIS_STATUS STDCALL MiniportReconfigure(
static NDIS_STATUS NTAPI MiniportReconfigure(
OUT PNDIS_STATUS OpenErrorStatus,
IN NDIS_HANDLE MiniportAdapterContext,
IN NDIS_HANDLE WrapperConfigurationContext)
@ -645,7 +645,7 @@ static NDIS_STATUS STDCALL MiniportReconfigure(
static NDIS_STATUS STDCALL MiniportReset(
static NDIS_STATUS NTAPI MiniportReset(
OUT PBOOLEAN AddressingReset,
IN NDIS_HANDLE MiniportAdapterContext)
/*
@ -667,7 +667,7 @@ static NDIS_STATUS STDCALL MiniportReset(
}
static NDIS_STATUS STDCALL MiniportSend(
static NDIS_STATUS NTAPI MiniportSend(
IN NDIS_HANDLE MiniportAdapterContext,
IN PNDIS_PACKET Packet,
IN UINT Flags)
@ -709,7 +709,7 @@ static NDIS_STATUS STDCALL MiniportSend(
}
static NDIS_STATUS STDCALL MiniportSetInformation(
static NDIS_STATUS NTAPI MiniportSetInformation(
IN NDIS_HANDLE MiniportAdapterContext,
IN NDIS_OID Oid,
IN PVOID InformationBuffer,
@ -817,7 +817,7 @@ static NDIS_STATUS STDCALL MiniportSetInformation(
}
static NDIS_STATUS STDCALL MiniportTransferData(
static NDIS_STATUS NTAPI MiniportTransferData(
OUT PNDIS_PACKET Packet,
OUT PUINT BytesTransferred,
IN NDIS_HANDLE MiniportAdapterContext,
@ -908,7 +908,7 @@ static NDIS_STATUS STDCALL MiniportTransferData(
NTSTATUS
#ifndef _MSC_VER
STDCALL
NTAPI
#endif
DriverEntry(
PDRIVER_OBJECT DriverObject,

View file

@ -47,13 +47,13 @@
#include <debug.h>
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath);
static VOID
STDCALL
NTAPI
MiniportHandleInterrupt(
IN NDIS_HANDLE MiniportAdapterContext)
/*
@ -528,7 +528,7 @@ MiFreeSharedMemory(
}
static BOOLEAN
STDCALL
NTAPI
MiSyncStop(
IN PVOID SynchronizeContext)
/*
@ -544,7 +544,7 @@ MiSyncStop(
}
static VOID
STDCALL
NTAPI
MiniportHalt(
IN NDIS_HANDLE MiniportAdapterContext)
/*
@ -590,7 +590,7 @@ MiniportHalt(
}
static BOOLEAN
STDCALL
NTAPI
MiSyncMediaDetection(
IN PVOID SynchronizeContext)
/*
@ -613,7 +613,7 @@ MiSyncMediaDetection(
}
static VOID
STDCALL
NTAPI
MiniportMediaDetectionTimer(
IN PVOID SystemSpecific1,
IN PVOID FunctionContext,
@ -785,7 +785,7 @@ MiTestCard(
#endif
VOID
STDCALL
NTAPI
MiniportShutdown( PVOID Context )
{
PADAPTER Adapter = Context;
@ -797,7 +797,7 @@ MiniportShutdown( PVOID Context )
}
static NDIS_STATUS
STDCALL
NTAPI
MiniportInitialize(
OUT PNDIS_STATUS OpenErrorStatus,
OUT PUINT SelectedMediumIndex,
@ -975,7 +975,7 @@ MiniportInitialize(
}
static VOID
STDCALL
NTAPI
MiniportISR(
OUT PBOOLEAN InterruptRecognized,
OUT PBOOLEAN QueueMiniportHandleInterrupt,
@ -1028,7 +1028,7 @@ MiniportISR(
}
static NDIS_STATUS
STDCALL
NTAPI
MiniportReset(
OUT PBOOLEAN AddressingReset,
IN NDIS_HANDLE MiniportAdapterContext)
@ -1055,7 +1055,7 @@ MiniportReset(
}
static BOOLEAN
STDCALL
NTAPI
MiSyncStartTransmit(
IN PVOID SynchronizeContext)
/*
@ -1071,7 +1071,7 @@ MiSyncStartTransmit(
}
static NDIS_STATUS
STDCALL
NTAPI
MiniportSend(
IN NDIS_HANDLE MiniportAdapterContext,
IN PNDIS_PACKET Packet,
@ -1162,7 +1162,7 @@ MiniportSend(
}
static ULONG
STDCALL
NTAPI
MiEthernetCrc(UCHAR *Address)
/*
* FUNCTION: Calculate Ethernet CRC32
@ -1189,7 +1189,7 @@ MiEthernetCrc(UCHAR *Address)
}
NDIS_STATUS
STDCALL
NTAPI
MiSetMulticast(
PADAPTER Adapter,
UCHAR *Addresses,
@ -1212,7 +1212,7 @@ MiSetMulticast(
}
NDIS_MEDIA_STATE
STDCALL
NTAPI
MiGetMediaState(PADAPTER Adapter)
/*
* FUNCTION: Determine the link state
@ -1230,7 +1230,7 @@ MiGetMediaState(PADAPTER Adapter)
}
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)

View file

@ -99,7 +99,7 @@ typedef struct _ADAPTER
/* forward declarations */
NDIS_STATUS
STDCALL
NTAPI
MiniportQueryInformation(
IN NDIS_HANDLE MiniportAdapterContext,
IN NDIS_OID Oid,
@ -109,7 +109,7 @@ MiniportQueryInformation(
OUT PULONG BytesNeeded);
NDIS_STATUS
STDCALL
NTAPI
MiniportSetInformation(
IN NDIS_HANDLE MiniportAdapterContext,
IN NDIS_OID Oid,
@ -119,14 +119,14 @@ MiniportSetInformation(
OUT PULONG BytesNeeded);
NDIS_STATUS
STDCALL
NTAPI
MiSetMulticast(
PADAPTER Adapter,
UCHAR *Addresses,
UINT AddressCount);
NDIS_MEDIA_STATE
STDCALL
NTAPI
MiGetMediaState(PADAPTER Adapter);
/* operational constants */

View file

@ -83,7 +83,7 @@ static ULONG MiniportOIDList[] =
NDIS_STATUS
STDCALL
NTAPI
MiniportQueryInformation(
IN NDIS_HANDLE MiniportAdapterContext,
IN NDIS_OID Oid,
@ -377,7 +377,7 @@ MiniportQueryInformation(
}
NDIS_STATUS
STDCALL
NTAPI
MiniportSetInformation(
IN NDIS_HANDLE MiniportAdapterContext,
IN NDIS_OID Oid,

View file

@ -78,7 +78,7 @@ VOID FreeAdapter(
}
VOID STDCALL ProtocolOpenAdapterComplete(
VOID NTAPI ProtocolOpenAdapterComplete(
NDIS_HANDLE BindingContext,
NDIS_STATUS Status,
NDIS_STATUS OpenErrorStatus)
@ -98,7 +98,7 @@ VOID STDCALL ProtocolOpenAdapterComplete(
}
VOID STDCALL ProtocolCloseAdapterComplete(
VOID NTAPI ProtocolCloseAdapterComplete(
NDIS_HANDLE BindingContext,
NDIS_STATUS Status)
/*
@ -118,7 +118,7 @@ VOID STDCALL ProtocolCloseAdapterComplete(
}
VOID STDCALL ProtocolResetComplete(
VOID NTAPI ProtocolResetComplete(
NDIS_HANDLE BindingContext,
NDIS_STATUS Status)
/*
@ -132,7 +132,7 @@ VOID STDCALL ProtocolResetComplete(
}
VOID STDCALL ProtocolRequestComplete(
VOID NTAPI ProtocolRequestComplete(
NDIS_HANDLE BindingContext,
PNDIS_REQUEST NdisRequest,
NDIS_STATUS Status)
@ -155,7 +155,7 @@ VOID STDCALL ProtocolRequestComplete(
}
VOID STDCALL ProtocolSendComplete(
VOID NTAPI ProtocolSendComplete(
NDIS_HANDLE BindingContext,
PNDIS_PACKET Packet,
NDIS_STATUS Status)
@ -175,7 +175,7 @@ VOID STDCALL ProtocolSendComplete(
}
VOID STDCALL ProtocolTransferDataComplete(
VOID NTAPI ProtocolTransferDataComplete(
NDIS_HANDLE BindingContext,
PNDIS_PACKET Packet,
NDIS_STATUS Status,
@ -303,7 +303,7 @@ VOID STDCALL ProtocolTransferDataComplete(
}
NDIS_STATUS STDCALL ProtocolReceive(
NDIS_STATUS NTAPI ProtocolReceive(
NDIS_HANDLE BindingContext,
NDIS_HANDLE MacReceiveContext,
PVOID HeaderBuffer,
@ -386,7 +386,7 @@ NDIS_STATUS STDCALL ProtocolReceive(
}
VOID STDCALL ProtocolReceiveComplete(
VOID NTAPI ProtocolReceiveComplete(
NDIS_HANDLE BindingContext)
/*
* FUNCTION: Called by NDIS when we're done receiving data
@ -398,7 +398,7 @@ VOID STDCALL ProtocolReceiveComplete(
}
VOID STDCALL ProtocolStatus(
VOID NTAPI ProtocolStatus(
NDIS_HANDLE BindingContext,
NDIS_STATUS GenerelStatus,
PVOID StatusBuffer,
@ -416,7 +416,7 @@ VOID STDCALL ProtocolStatus(
}
VOID STDCALL ProtocolStatusComplete(
VOID NTAPI ProtocolStatusComplete(
NDIS_HANDLE NdisBindingContext)
/*
* FUNCTION: Called by NDIS when a status-change has occurred
@ -427,7 +427,7 @@ VOID STDCALL ProtocolStatusComplete(
LA_DbgPrint(DEBUG_DATALINK, ("Called.\n"));
}
VOID STDCALL ProtocolBindAdapter(
VOID NTAPI ProtocolBindAdapter(
OUT PNDIS_STATUS Status,
IN NDIS_HANDLE BindContext,
IN PNDIS_STRING DeviceName,
@ -875,7 +875,7 @@ VOID LANUnregisterProtocol(VOID)
NdisDeregisterProtocol(&NdisStatus, DeviceExt->NdisProtocolHandle);
}
NTSTATUS STDCALL
NTSTATUS NTAPI
LanCreateProtocol( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PLAN_PROTOCOL Proto;
@ -928,7 +928,7 @@ LanCreateProtocol( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
LanCloseProtocol( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PLAN_DEVICE_EXT DeviceExt =
@ -988,7 +988,7 @@ PLAN_ADAPTER FindAdapterByIndex( PLAN_DEVICE_EXT DeviceExt, UINT Index ) {
* |<- 16 >| |<-- variable ... -->|
* [indx] [addrtype] [addrlen ] [ptype] [packet-data ...]
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
LanWriteData( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PLAN_PACKET_HEADER ToWrite = Irp->AssociatedIrp.SystemBuffer;
@ -1004,7 +1004,7 @@ LanWriteData( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
LanReadData( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PLAN_DEVICE_EXT DeviceExt =
@ -1026,7 +1026,7 @@ LanReadData( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return STATUS_PENDING;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
LanEnumAdapters( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PLIST_ENTRY ListEntry;
@ -1069,7 +1069,7 @@ LanEnumAdapters( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
LanAdapterInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PLAN_DEVICE_EXT DeviceExt =
@ -1174,7 +1174,7 @@ LanAdapterInfo( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
LanSetBufferedMode( PDEVICE_OBJECT DeviceObject, PIRP Irp,
PIO_STACK_LOCATION IrpSp ) {
PLAN_DEVICE_EXT DeviceExt =
@ -1206,7 +1206,7 @@ LanSetBufferedMode( PDEVICE_OBJECT DeviceObject, PIRP Irp,
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
LanDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
@ -1283,12 +1283,12 @@ LanDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
}
/* Do i need a global here? I think i need to do this a different way XXX */
VOID STDCALL LanUnload(PDRIVER_OBJECT DriverObject) {
VOID NTAPI LanUnload(PDRIVER_OBJECT DriverObject) {
LANUnregisterProtocol();
CloseNdisPools();
}
NTSTATUS STDCALL DriverEntry( PDRIVER_OBJECT DriverObject,
NTSTATUS NTAPI DriverEntry( PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegsitryPath ) {
PDEVICE_OBJECT DeviceObject;
PLAN_DEVICE_EXT DeviceExt;

View file

@ -117,7 +117,7 @@ NdisWriteEventLogEntry(
* DataSize: number of bytes in Data
* Data: binary dump data to help analyzing the event
* NOTES:
* - STDCALL, not CDECL like WriteError...
* - NTAPI, not CDECL like WriteError...
* - FIXME Needs to use the real log interface, once there is one
*/
{

View file

@ -685,7 +685,7 @@ MiniReset(
return Status;
}
VOID STDCALL
VOID NTAPI
MiniportHangDpc(
PKDPC Dpc,
PVOID DeferredContext,

View file

@ -1046,7 +1046,7 @@ NdisIMInitializeDeviceInstanceEx(
VOID
STDCALL
NTAPI
ndisProcWorkItemHandler(PVOID pContext)
{
PNDIS_WORK_ITEM pNdisItem = (PNDIS_WORK_ITEM)pContext;

View file

@ -185,7 +185,7 @@ NTSTATUS TcpipLanGetDwordOid
}
VOID STDCALL ProtocolOpenAdapterComplete(
VOID NTAPI ProtocolOpenAdapterComplete(
NDIS_HANDLE BindingContext,
NDIS_STATUS Status,
NDIS_STATUS OpenErrorStatus)
@ -207,7 +207,7 @@ VOID STDCALL ProtocolOpenAdapterComplete(
}
VOID STDCALL ProtocolCloseAdapterComplete(
VOID NTAPI ProtocolCloseAdapterComplete(
NDIS_HANDLE BindingContext,
NDIS_STATUS Status)
/*
@ -227,7 +227,7 @@ VOID STDCALL ProtocolCloseAdapterComplete(
}
VOID STDCALL ProtocolResetComplete(
VOID NTAPI ProtocolResetComplete(
NDIS_HANDLE BindingContext,
NDIS_STATUS Status)
/*
@ -247,7 +247,7 @@ VOID STDCALL ProtocolResetComplete(
}
VOID STDCALL ProtocolRequestComplete(
VOID NTAPI ProtocolRequestComplete(
NDIS_HANDLE BindingContext,
PNDIS_REQUEST NdisRequest,
NDIS_STATUS Status)
@ -270,7 +270,7 @@ VOID STDCALL ProtocolRequestComplete(
}
VOID STDCALL ProtocolSendComplete(
VOID NTAPI ProtocolSendComplete(
NDIS_HANDLE BindingContext,
PNDIS_PACKET Packet,
NDIS_STATUS Status)
@ -368,7 +368,7 @@ VOID LanSubmitReceiveWork(
ASSERT(0);
}
VOID STDCALL ProtocolTransferDataComplete(
VOID NTAPI ProtocolTransferDataComplete(
NDIS_HANDLE BindingContext,
PNDIS_PACKET Packet,
NDIS_STATUS Status,
@ -397,7 +397,7 @@ VOID STDCALL ProtocolTransferDataComplete(
LanSubmitReceiveWork( BindingContext, Packet, Status, BytesTransferred );
}
NDIS_STATUS STDCALL ProtocolReceive(
NDIS_STATUS NTAPI ProtocolReceive(
NDIS_HANDLE BindingContext,
NDIS_HANDLE MacReceiveContext,
PVOID HeaderBuffer,
@ -511,7 +511,7 @@ NDIS_STATUS STDCALL ProtocolReceive(
}
VOID STDCALL ProtocolReceiveComplete(
VOID NTAPI ProtocolReceiveComplete(
NDIS_HANDLE BindingContext)
/*
* FUNCTION: Called by NDIS when we're done receiving data
@ -523,7 +523,7 @@ VOID STDCALL ProtocolReceiveComplete(
}
VOID STDCALL ProtocolStatus(
VOID NTAPI ProtocolStatus(
NDIS_HANDLE BindingContext,
NDIS_STATUS GeneralStatus,
PVOID StatusBuffer,
@ -566,7 +566,7 @@ VOID STDCALL ProtocolStatus(
}
VOID STDCALL ProtocolStatusComplete(
VOID NTAPI ProtocolStatusComplete(
NDIS_HANDLE NdisBindingContext)
/*
* FUNCTION: Called by NDIS when a status-change has occurred
@ -577,7 +577,7 @@ VOID STDCALL ProtocolStatusComplete(
TI_DbgPrint(DEBUG_DATALINK, ("Called.\n"));
}
VOID STDCALL ProtocolBindAdapter(
VOID NTAPI ProtocolBindAdapter(
OUT PNDIS_STATUS Status,
IN NDIS_HANDLE BindContext,
IN PNDIS_STRING DeviceName,

View file

@ -223,7 +223,7 @@ BOOLEAN IPRegisterInterface(
VOID IPUnregisterInterface(
PIP_INTERFACE IF);
VOID STDCALL IPTimeout( PVOID Context );
VOID NTAPI IPTimeout( PVOID Context );
VOID IPDispatchProtocol(
PIP_INTERFACE Interface,

View file

@ -320,7 +320,7 @@ NTSTATUS TiCleanupFileObject(
}
NTSTATUS STDCALL
NTSTATUS NTAPI
TiDispatchOpenClose(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -549,7 +549,7 @@ TiDispatch(
}
VOID STDCALL TiUnload(
VOID NTAPI TiUnload(
PDRIVER_OBJECT DriverObject)
/*
* FUNCTION: Unloads the driver
@ -616,7 +616,7 @@ VOID STDCALL TiUnload(
TI_DbgPrint(MAX_TRACE, ("Leaving.\n"));
}
VOID STDCALL IPTimeoutDpcFn(
VOID NTAPI IPTimeoutDpcFn(
PKDPC Dpc,
PVOID DeferredContext,
PVOID SystemArgument1,

View file

@ -7,7 +7,7 @@
* @unimplemented
*/
BOOLEAN
STDCALL
NTAPI
CTEAllocateString (
ULONG Unknown0,
ULONG Unknown1
@ -21,7 +21,7 @@ CTEAllocateString (
* @unimplemented
*/
BOOLEAN
STDCALL
NTAPI
CTEInitString (
ULONG Unknown0,
ULONG Unknown1

View file

@ -8,7 +8,7 @@
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
CTEBlock (
ULONG Unknown0
)
@ -21,7 +21,7 @@ CTEBlock (
* @unimplemented
*/
VOID
STDCALL
NTAPI
CTEInitEvent (
ULONG Unknown0,
ULONG Unknown1
@ -34,7 +34,7 @@ CTEInitEvent (
* @unimplemented
*/
VOID
STDCALL
NTAPI
CTEInitTimer (
ULONG Unknown0
)
@ -46,7 +46,7 @@ CTEInitTimer (
* @unimplemented
*/
BOOLEAN
STDCALL
NTAPI
CTEInitialize (
VOID
)
@ -60,7 +60,7 @@ CTEInitialize (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
CTELogEvent (
ULONG Unknown0,
ULONG Unknown1,
@ -83,7 +83,7 @@ CTELogEvent (
* @unimplemented
*/
BOOLEAN
STDCALL
NTAPI
CTEScheduleEvent (
ULONG Unknown0,
ULONG Unknown1
@ -97,7 +97,7 @@ CTEScheduleEvent (
* @unimplemented
*/
LONG
STDCALL
NTAPI
CTESignal (
ULONG Unknown0,
ULONG Unknown1
@ -120,7 +120,7 @@ CTESignal (
* @unimplemented
*/
BOOLEAN
STDCALL
NTAPI
CTEStartTimer (
ULONG Unknown0,
ULONG Unknown1,
@ -136,7 +136,7 @@ CTEStartTimer (
* @unimplemented
*/
ULONG
STDCALL
NTAPI
CTESystemUpTime (
VOID
)

View file

@ -5,7 +5,7 @@
#include <ntddk.h>
NTSTATUS
STDCALL
NTAPI
DriverEntry (
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath

View file

@ -23,7 +23,7 @@ enum
static
NTSTATUS
STDCALL
NTAPI
TdiDeRegister (
IN TDI_OBJECT_ACTION Action,
IN OUT PVOID Object
@ -39,7 +39,7 @@ TdiDeRegister (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiRegisterAddressChangeHandler (
ULONG Unknown0,
ULONG Unknown1,
@ -61,7 +61,7 @@ TdiRegisterAddressChangeHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDeregisterAddressChangeHandler (
IN PVOID AddressChangeHandler
)
@ -79,7 +79,7 @@ TdiDeregisterAddressChangeHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiRegisterDeviceObject (
ULONG Unknown0,
ULONG Unknown1
@ -100,7 +100,7 @@ TdiRegisterDeviceObject (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDeregisterDeviceObject (
IN PVOID DeviceObject
)
@ -118,7 +118,7 @@ TdiDeregisterDeviceObject (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiRegisterNetAddress (
ULONG Unknown0,
ULONG Unknown1
@ -139,7 +139,7 @@ TdiRegisterNetAddress (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDeregisterNetAddress (
IN PVOID NetAddress
)
@ -157,7 +157,7 @@ TdiDeregisterNetAddress (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiRegisterNotificationHandler (
ULONG Unknown0,
ULONG Unknown1,
@ -179,7 +179,7 @@ TdiRegisterNotificationHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDeregisterNotificationHandler (
IN PVOID NotificationHandler
)

View file

@ -12,7 +12,7 @@
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDefaultChainedRcvDatagramHandler (
IN PVOID TdiEventContext,
IN LONG SourceAddressLength,
@ -36,7 +36,7 @@ TdiDefaultChainedRcvDatagramHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDefaultChainedRcvExpeditedHandler (
IN PVOID TdiEventContext,
IN CONNECTION_CONTEXT ConnectionContext,
@ -57,7 +57,7 @@ TdiDefaultChainedRcvExpeditedHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDefaultChainedReceiveHandler (
IN PVOID TdiEventContext,
IN CONNECTION_CONTEXT ConnectionContext,
@ -78,7 +78,7 @@ TdiDefaultChainedReceiveHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDefaultConnectHandler (
IN PVOID TdiEventContext,
IN LONG RemoteAddressLength,
@ -101,7 +101,7 @@ TdiDefaultConnectHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDefaultDisconnectHandler (
IN PVOID TdiEventContext,
IN CONNECTION_CONTEXT ConnectionContext,
@ -122,7 +122,7 @@ TdiDefaultDisconnectHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDefaultErrorHandler (
IN PVOID TdiEventContext,
IN NTSTATUS Status
@ -138,7 +138,7 @@ TdiDefaultErrorHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDefaultRcvDatagramHandler (
IN PVOID TdiEventContext,
IN LONG SourceAddressLength,
@ -163,7 +163,7 @@ TdiDefaultRcvDatagramHandler (
* @unimplemented
*/
TDI_STATUS
STDCALL
NTAPI
TdiDefaultRcvExpeditedHandler (
IN PVOID TdiEventContext,
IN CONNECTION_CONTEXT ConnectionContext,
@ -185,7 +185,7 @@ TdiDefaultRcvExpeditedHandler (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiDefaultReceiveHandler (
IN PVOID TdiEventContext,
IN CONNECTION_CONTEXT ConnectionContext,
@ -207,7 +207,7 @@ TdiDefaultReceiveHandler (
* @unimplemented
*/
TDI_STATUS
STDCALL
NTAPI
TdiDefaultSendPossibleHandler (
IN PVOID TdiEventContext,
IN PVOID ConnectionContext,

View file

@ -8,7 +8,7 @@
* @unimplemented
*/
VOID
STDCALL
NTAPI
TdiMapBuffer (
ULONG Unknown0
)
@ -21,7 +21,7 @@ TdiMapBuffer (
* @unimplemented
*/
VOID
STDCALL
NTAPI
TdiUnmapBuffer (
ULONG Unknown0
)

View file

@ -9,7 +9,7 @@
* @unimplemented
*/
VOID
STDCALL
NTAPI
TdiBuildNetbiosAddress (
IN PUCHAR NetbiosName,
IN BOOLEAN IsGroupName,
@ -23,7 +23,7 @@ TdiBuildNetbiosAddress (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiBuildNetbiosAddressEa (
IN PUCHAR Buffer,
IN BOOLEAN GroupName,
@ -38,7 +38,7 @@ TdiBuildNetbiosAddressEa (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiCopyBufferToMdl (
IN PVOID SourceBuffer,
IN ULONG SourceOffset,
@ -56,7 +56,7 @@ TdiCopyBufferToMdl (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiCopyMdlToBuffer (
IN PMDL SourceMdlChain,
IN ULONG SourceOffset,
@ -74,7 +74,7 @@ TdiCopyMdlToBuffer (
* @unimplemented
*/
VOID
STDCALL
NTAPI
TdiInitialize (
PVOID Unknown0
)
@ -86,7 +86,7 @@ TdiInitialize (
* @unimplemented
*/
NTSTATUS
STDCALL
NTAPI
TdiMapUserRequest (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -101,7 +101,7 @@ TdiMapUserRequest (
* @unimplemented
*/
VOID
STDCALL
NTAPI
TdiOpenNetbiosAddress (
ULONG Unknown0,
ULONG Unknown1,
@ -116,7 +116,7 @@ TdiOpenNetbiosAddress (
* @unimplemented
*/
VOID
STDCALL
NTAPI
TdiReturnChainedReceives (
IN PVOID * TsduDescriptors,
IN ULONG NumberOfTsdus

View file

@ -24,7 +24,7 @@
#define LP_S (READ_PORT_UCHAR((PUCHAR)(LP_B+1)))
#define LP_C (LP_B+2)
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath);
static void Parallel_Reset(void)
@ -72,7 +72,7 @@ static void Parallel_putchar(unsigned char ch)
}
static DRIVER_DISPATCH Dispatch;
static NTSTATUS STDCALL
static NTSTATUS NTAPI
Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/*
* FUNCTION: Handles user mode requests
@ -120,7 +120,7 @@ Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
return(status);
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
/*
* FUNCTION: Called by the system to initalize the driver

View file

@ -226,11 +226,11 @@ ScrAcquireOwnership(PDEVICE_EXTENSION DeviceExtension)
DeviceExtension->ScanLines);
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry (PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath);
static DRIVER_DISPATCH ScrCreate;
static NTSTATUS STDCALL
static NTSTATUS NTAPI
ScrCreate(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@ -264,7 +264,7 @@ ScrCreate(PDEVICE_OBJECT DeviceObject,
}
static DRIVER_DISPATCH ScrWrite;
static NTSTATUS STDCALL
static NTSTATUS NTAPI
ScrWrite(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@ -406,7 +406,7 @@ ScrWrite(PDEVICE_OBJECT DeviceObject,
}
static DRIVER_DISPATCH ScrIoControl;
static NTSTATUS STDCALL
static NTSTATUS NTAPI
ScrIoControl(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@ -745,7 +745,7 @@ ScrIoControl(PDEVICE_OBJECT DeviceObject,
}
static DRIVER_DISPATCH ScrDispatch;
static NTSTATUS STDCALL
static NTSTATUS NTAPI
ScrDispatch(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@ -774,7 +774,7 @@ ScrDispatch(PDEVICE_OBJECT DeviceObject,
/*
* Module entry point
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry (PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
PDEVICE_OBJECT DeviceObject;

View file

@ -232,14 +232,14 @@ typedef struct _CDROM_DATA {
#endif
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
);
BOOLEAN
STDCALL
NTAPI
ScsiCdRomFindDevices(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath,
@ -249,21 +249,21 @@ ScsiCdRomFindDevices(
);
NTSTATUS
STDCALL
NTAPI
ScsiCdRomOpenClose(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiCdRomReadVerification(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiCdRomSwitchMode(
IN PDEVICE_OBJECT DeviceObject,
IN ULONG SectorSize,
@ -271,7 +271,7 @@ ScsiCdRomSwitchMode(
);
NTSTATUS
STDCALL
NTAPI
CdRomDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -279,7 +279,7 @@ CdRomDeviceControl(
IO_COMPLETION_ROUTINE CdRomDeviceControlCompletion;
NTSTATUS
STDCALL
NTAPI
CdRomDeviceControlCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -288,7 +288,7 @@ CdRomDeviceControlCompletion(
IO_COMPLETION_ROUTINE CdRomSetVolumeIntermediateCompletion;
NTSTATUS
STDCALL
NTAPI
CdRomSetVolumeIntermediateCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -297,7 +297,7 @@ CdRomSetVolumeIntermediateCompletion(
IO_COMPLETION_ROUTINE CdRomSwitchModeCompletion;
NTSTATUS
STDCALL
NTAPI
CdRomSwitchModeCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -306,7 +306,7 @@ CdRomSwitchModeCompletion(
IO_COMPLETION_ROUTINE CdRomXACompletion;
NTSTATUS
STDCALL
NTAPI
CdRomXACompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -315,7 +315,7 @@ CdRomXACompletion(
IO_COMPLETION_ROUTINE CdRomClassIoctlCompletion;
NTSTATUS
STDCALL
NTAPI
CdRomClassIoctlCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -323,28 +323,28 @@ CdRomClassIoctlCompletion(
);
VOID
STDCALL
NTAPI
ScsiCdRomStartIo(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
VOID
STDCALL
NTAPI
CdRomTickHandler(
IN PDEVICE_OBJECT DeviceObject,
IN PVOID Context
);
BOOLEAN
STDCALL
NTAPI
CdRomCheckRegistryForMediaChangeValue(
IN PUNICODE_STRING RegistryPath,
IN ULONG DeviceNumber
);
NTSTATUS
STDCALL
NTAPI
CdRomUpdateCapacity(
IN PDEVICE_EXTENSION DeviceExtension,
IN PIRP IrpToComplete,
@ -352,7 +352,7 @@ CdRomUpdateCapacity(
);
NTSTATUS
STDCALL
NTAPI
CreateCdRomDeviceObject(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PortDeviceObject,
@ -365,7 +365,7 @@ CreateCdRomDeviceObject(
);
VOID
STDCALL
NTAPI
ScanForSpecial(
PDEVICE_OBJECT DeviceObject,
PINQUIRYDATA InquiryData,
@ -373,13 +373,13 @@ ScanForSpecial(
);
BOOLEAN
STDCALL
NTAPI
CdRomIsPlayActive(
IN PDEVICE_OBJECT DeviceObject
);
VOID
STDCALL
NTAPI
HitachProcessError(
PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
@ -389,7 +389,7 @@ HitachProcessError(
IO_COMPLETION_ROUTINE ToshibaProcessErrorCompletion;
VOID
STDCALL
NTAPI
ToshibaProcessError(
PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
@ -398,14 +398,14 @@ ToshibaProcessError(
);
BOOLEAN
STDCALL
NTAPI
IsThisAnAtapiChanger(
IN PDEVICE_OBJECT DeviceObject,
OUT PULONG DiscsPresent
);
BOOLEAN
STDCALL
NTAPI
IsThisASanyo(
IN PDEVICE_OBJECT DeviceObject,
IN UCHAR PathId,
@ -413,14 +413,14 @@ IsThisASanyo(
);
BOOLEAN
STDCALL
NTAPI
IsThisAMultiLunDevice(
IN PDEVICE_OBJECT DeviceObject,
IN PDEVICE_OBJECT PortDeviceObject
);
VOID
STDCALL
NTAPI
CdRomCreateNamedEvent(
IN PDEVICE_EXTENSION DeviceExtension,
IN ULONG DeviceNumber
@ -457,7 +457,7 @@ FindScsiAdapter (
ULONG NoLoad = 0;
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
@ -524,7 +524,7 @@ Return Value:
} // end DriverEntry()
BOOLEAN
STDCALL
NTAPI
ScsiCdRomFindDevices(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath,
@ -669,7 +669,7 @@ Return Value:
} // end FindScsiCdRoms()
VOID
STDCALL
NTAPI
CdRomCreateNamedEvent(
IN PDEVICE_EXTENSION DeviceExtension,
IN ULONG DeviceNumber
@ -731,7 +731,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
CreateCdRomDeviceObject(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT PortDeviceObject,
@ -1364,7 +1364,7 @@ CreateCdRomDeviceObjectExit:
} // end CreateCdRomDeviceObject()
VOID
STDCALL
NTAPI
ScsiCdRomStartIo(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -2779,7 +2779,7 @@ ScsiCdRomStartIo(
NTSTATUS
STDCALL
NTAPI
ScsiCdRomReadVerification(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -2859,7 +2859,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
CdRomDeviceControlCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -3428,7 +3428,7 @@ CdRomDeviceControlCompletion(
}
NTSTATUS
STDCALL
NTAPI
CdRomSetVolumeIntermediateCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -3760,7 +3760,7 @@ CdRomSetVolumeIntermediateCompletion(
NTSTATUS
STDCALL
NTAPI
CdRomSwitchModeCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -4126,7 +4126,7 @@ CdRomSwitchModeCompletion(
}
NTSTATUS
STDCALL
NTAPI
CdRomXACompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -4283,7 +4283,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
CdRomDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -4834,7 +4834,7 @@ RetryControl:
} // end ScsiCdRomDeviceControl()
VOID
STDCALL
NTAPI
ScanForSpecial(
PDEVICE_OBJECT DeviceObject,
PINQUIRYDATA InquiryData,
@ -4996,7 +4996,7 @@ Return Value:
}
VOID
STDCALL
NTAPI
HitachProcessError(
PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
@ -5195,7 +5195,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
ToshibaProcessErrorCompletion(
PDEVICE_OBJECT DeviceObject,
PIRP Irp,
@ -5258,7 +5258,7 @@ Return Value:
}
VOID
STDCALL
NTAPI
ToshibaProcessError(
PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
@ -5432,7 +5432,7 @@ Return Value:
}
BOOLEAN
STDCALL
NTAPI
CdRomIsPlayActive(
IN PDEVICE_OBJECT DeviceObject
)
@ -5524,7 +5524,7 @@ Return Value:
IO_COMPLETION_ROUTINE CdRomMediaChangeCompletion;
NTSTATUS
STDCALL
NTAPI
CdRomMediaChangeCompletion(
PDEVICE_OBJECT DeviceObject,
PIRP Irp,
@ -5695,7 +5695,7 @@ Return Value:
}
VOID
STDCALL
NTAPI
CdRomTickHandler(
IN PDEVICE_OBJECT DeviceObject,
IN PVOID Context
@ -5949,7 +5949,7 @@ Return Value:
}
BOOLEAN
STDCALL
NTAPI
CdRomCheckRegistryForMediaChangeValue(
IN PUNICODE_STRING RegistryPath,
IN ULONG DeviceNumber
@ -6160,7 +6160,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
IsThisASanyo(
IN PDEVICE_OBJECT DeviceObject,
IN UCHAR PathId,
@ -6261,7 +6261,7 @@ Return Value:
}
BOOLEAN
STDCALL
NTAPI
IsThisAnAtapiChanger(
IN PDEVICE_OBJECT DeviceObject,
OUT PULONG DiscsPresent
@ -6369,7 +6369,7 @@ Return Value:
}
BOOLEAN
STDCALL
NTAPI
IsThisAMultiLunDevice(
IN PDEVICE_OBJECT DeviceObject,
IN PDEVICE_OBJECT PortDeviceObject
@ -6462,7 +6462,7 @@ Return Value:
IO_COMPLETION_ROUTINE CdRomUpdateGeometryCompletion;
NTSTATUS
STDCALL
NTAPI
CdRomUpdateGeometryCompletion(
PDEVICE_OBJECT DeviceObject,
PIRP Irp,
@ -6714,7 +6714,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
CdRomUpdateCapacity(
IN PDEVICE_EXTENSION DeviceExtension,
IN PIRP IrpToComplete,
@ -6886,7 +6886,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
CdRomClassIoctlCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,

View file

@ -18,7 +18,7 @@
#include <debug.h>
NTSTATUS
STDCALL
NTAPI
FindScsiAdapter (
IN HANDLE KeyHandle,
IN UNICODE_STRING ScsiUnicodeString[],
@ -42,7 +42,7 @@ FindScsiAdapter (
NTSTATUS
STDCALL
NTAPI
FindScsiAdapter (
IN HANDLE KeyHandle,
IN UNICODE_STRING ScsiUnicodeString[],

View file

@ -31,49 +31,49 @@
#define START_UNIT_TIMEOUT 30
NTSTATUS
STDCALL
NTAPI
ScsiClassCreateClose(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiClassReadWrite(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiClassDeviceControlDispatch(
PDEVICE_OBJECT DeviceObject,
PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiClassDeviceControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiClassInternalIoControl (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiClassShutdownFlush(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
@ -85,7 +85,7 @@ DriverEntry(
VOID
STDCALL
NTAPI
RetryRequest(
PDEVICE_OBJECT DeviceObject,
PIRP Irp,
@ -94,13 +94,13 @@ RetryRequest(
);
VOID
STDCALL
NTAPI
StartUnit(
IN PDEVICE_OBJECT DeviceObject
);
NTSTATUS
STDCALL
NTAPI
ClassIoCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -108,14 +108,14 @@ ClassIoCompletion(
);
NTSTATUS
STDCALL
NTAPI
ClassCompletionRoutine(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID Context);
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
@ -126,7 +126,7 @@ DriverEntry(
ULONG
STDCALL
NTAPI
ScsiClassInitialize(
IN PVOID Argument1,
IN PVOID Argument2,
@ -262,7 +262,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassCreateClose(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -310,7 +310,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassReadWrite(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -492,7 +492,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassGetCapabilities(
IN PDEVICE_OBJECT PortDeviceObject,
OUT PIO_SCSI_CAPABILITIES *PortCapabilities
@ -573,7 +573,7 @@ Notes:
NTSTATUS
STDCALL
NTAPI
ScsiClassGetInquiryData(
IN PDEVICE_OBJECT PortDeviceObject,
OUT PSCSI_ADAPTER_BUS_INFO *ConfigInfo
@ -675,7 +675,7 @@ Notes:
NTSTATUS
STDCALL
NTAPI
ScsiClassReadDriveCapacity(
IN PDEVICE_OBJECT DeviceObject
)
@ -897,7 +897,7 @@ Retry:
VOID
STDCALL
NTAPI
ScsiClassReleaseQueue(
IN PDEVICE_OBJECT DeviceObject
)
@ -1038,7 +1038,7 @@ Return Value:
VOID
STDCALL
NTAPI
StartUnit(
IN PDEVICE_OBJECT DeviceObject
)
@ -1171,7 +1171,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassAsynchronousCompletion(
PDEVICE_OBJECT DeviceObject,
PIRP Irp,
@ -1252,7 +1252,7 @@ Return Value:
VOID
STDCALL
NTAPI
ScsiClassSplitRequest(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -1444,7 +1444,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassIoComplete(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -1591,7 +1591,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassIoCompleteAssociated(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -1804,7 +1804,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassSendSrbSynchronous(
PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
@ -2094,7 +2094,7 @@ retry:
BOOLEAN
STDCALL
NTAPI
ScsiClassInterpretSenseInfo(
IN PDEVICE_OBJECT DeviceObject,
IN PSCSI_REQUEST_BLOCK Srb,
@ -2790,7 +2790,7 @@ Return Value:
VOID
STDCALL
NTAPI
RetryRequest(
PDEVICE_OBJECT DeviceObject,
PIRP Irp,
@ -2913,7 +2913,7 @@ Return Value:
} // end RetryRequest()
VOID
STDCALL
NTAPI
ScsiClassBuildRequest(
PDEVICE_OBJECT DeviceObject,
PIRP Irp
@ -3140,7 +3140,7 @@ Return Value:
} // end ScsiClassBuildRequest()
ULONG
STDCALL
NTAPI
ScsiClassModeSense(
IN PDEVICE_OBJECT DeviceObject,
IN PCHAR ModeSenseBuffer,
@ -3235,7 +3235,7 @@ Retry:
PVOID
STDCALL
NTAPI
ScsiClassFindModePage(
IN PCHAR ModeSenseBuffer,
IN ULONG Length,
@ -3309,7 +3309,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
ScsiClassSendSrbAsynchronous(
PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
@ -3496,7 +3496,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassDeviceControlDispatch(
PDEVICE_OBJECT DeviceObject,
PIRP Irp
@ -3539,7 +3539,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassDeviceControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp
@ -4092,7 +4092,7 @@ SetStatusAndReturn:
NTSTATUS
STDCALL
NTAPI
ScsiClassShutdownFlush(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -4143,7 +4143,7 @@ Return Value:
ULONG
STDCALL
NTAPI
ScsiClassFindUnclaimedDevices(
IN PCLASS_INIT_DATA InitializationData,
IN PSCSI_ADAPTER_BUS_INFO AdapterInformation
@ -4191,7 +4191,7 @@ ScsiClassFindUnclaimedDevices(
NTSTATUS
STDCALL
NTAPI
ScsiClassCreateDeviceObject(
IN PDRIVER_OBJECT DriverObject,
IN PCCHAR ObjectNameBuffer,
@ -4317,7 +4317,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassClaimDevice(
IN PDEVICE_OBJECT PortDeviceObject,
IN PSCSI_INQUIRY_DATA LunInfo,
@ -4483,7 +4483,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiClassInternalIoControl (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -4556,7 +4556,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
ClassIoCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -4604,7 +4604,7 @@ Return Value:
VOID
STDCALL
NTAPI
ScsiClassInitializeSrbLookasideList(
IN PDEVICE_EXTENSION DeviceExtension,
IN ULONG NumberElements
@ -4642,7 +4642,7 @@ Return Value:
ULONG
STDCALL
NTAPI
ScsiClassQueryTimeOutRegistryValue(
IN PUNICODE_STRING RegistryPath
)
@ -4735,7 +4735,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
ScsiClassCheckVerifyComplete(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -4797,7 +4797,7 @@ Return Value:
}
NTSTATUS
STDCALL
NTAPI
ClassCompletionRoutine(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID Context)

View file

@ -160,20 +160,20 @@ BAD_CONTROLLER_INFORMATION const ScsiDiskBadControllers[] = {
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
);
BOOLEAN
STDCALL
NTAPI
ScsiDiskDeviceVerification(
IN PINQUIRYDATA InquiryData
);
BOOLEAN
STDCALL
NTAPI
FindScsiDisks(
IN PDRIVER_OBJECT DriveObject,
IN PUNICODE_STRING RegistryPath,
@ -183,28 +183,28 @@ FindScsiDisks(
);
NTSTATUS
STDCALL
NTAPI
ScsiDiskCreateClose (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiDiskReadWriteVerification(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
ScsiDiskDeviceControl(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
VOID
STDCALL
NTAPI
ScsiDiskProcessError(
PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
@ -213,21 +213,21 @@ ScsiDiskProcessError(
);
NTSTATUS
STDCALL
NTAPI
ScsiDiskShutdownFlush(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
VOID
STDCALL
NTAPI
DisableWriteCache(
IN PDEVICE_OBJECT DeviceObject,
IN PSCSI_INQUIRY_DATA LunInfo
);
BOOLEAN
STDCALL
NTAPI
ScsiDiskModeSelect(
IN PDEVICE_OBJECT DeviceObject,
IN PCHAR ModeSelectBuffer,
@ -236,20 +236,20 @@ ScsiDiskModeSelect(
);
BOOLEAN
STDCALL
NTAPI
IsFloppyDevice(
IN PDEVICE_OBJECT DeviceObject
);
BOOLEAN
STDCALL
NTAPI
CalculateMbrCheckSum(
IN PDEVICE_EXTENSION DeviceExtension,
OUT PULONG Checksum
);
BOOLEAN
STDCALL
NTAPI
EnumerateBusKey(
IN PDEVICE_EXTENSION DeviceExtension,
HANDLE BusKey,
@ -257,20 +257,20 @@ EnumerateBusKey(
);
VOID
STDCALL
NTAPI
UpdateGeometry(
IN PDEVICE_EXTENSION DeviceExtension
);
NTSTATUS
STDCALL
NTAPI
UpdateRemovableGeometry (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
NTSTATUS
STDCALL
NTAPI
CreateDiskDeviceObject(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath,
@ -283,21 +283,21 @@ CreateDiskDeviceObject(
);
NTSTATUS
STDCALL
NTAPI
CreatePartitionDeviceObjects(
IN PDEVICE_OBJECT PhysicalDeviceObject,
IN PUNICODE_STRING RegistryPath
);
VOID
STDCALL
NTAPI
UpdateDeviceObjects(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
);
VOID
STDCALL
NTAPI
ScanForSpecial(
PDEVICE_OBJECT DeviceObject,
PSCSI_INQUIRY_DATA LunInfo,
@ -305,7 +305,7 @@ ScanForSpecial(
);
VOID
STDCALL
NTAPI
ResetScsiBus(
IN PDEVICE_OBJECT DeviceObject
);
@ -325,7 +325,7 @@ ResetScsiBus(
NTSTATUS
STDCALL
NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath
@ -391,7 +391,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
ScsiDiskDeviceVerification(
IN PINQUIRYDATA InquiryData
)
@ -426,7 +426,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
FindScsiDisks(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath,
@ -605,7 +605,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
CreateDiskDeviceObject(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath,
@ -1055,7 +1055,7 @@ CreateDiskDeviceObjectsExit:
NTSTATUS
STDCALL
NTAPI
CreatePartitionDeviceObjects(
IN PDEVICE_OBJECT PhysicalDeviceObject,
IN PUNICODE_STRING RegistryPath
@ -1472,7 +1472,7 @@ CreatePartitionDeviceObjectsExit:
NTSTATUS
STDCALL
NTAPI
ScsiDiskReadWriteVerification(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -1546,7 +1546,7 @@ Return Value:
NTSTATUS
STDCALL
NTAPI
ScsiDiskDeviceControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp
@ -2748,7 +2748,7 @@ Return Value:
} // end ScsiDiskDeviceControl()
NTSTATUS
STDCALL
NTAPI
ScsiDiskShutdownFlush (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -2926,7 +2926,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
IsFloppyDevice(
PDEVICE_OBJECT DeviceObject
)
@ -3066,7 +3066,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
ScsiDiskModeSelect(
IN PDEVICE_OBJECT DeviceObject,
IN PCHAR ModeSelectBuffer,
@ -3202,7 +3202,7 @@ Retry:
VOID
STDCALL
NTAPI
DisableWriteCache(
IN PDEVICE_OBJECT DeviceObject,
IN PSCSI_INQUIRY_DATA LunInfo
@ -3409,7 +3409,7 @@ DisableWriteCache(
BOOLEAN
STDCALL
NTAPI
CalculateMbrCheckSum(
IN PDEVICE_EXTENSION DeviceExtension,
OUT PULONG Checksum
@ -3531,7 +3531,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
EnumerateBusKey(
IN PDEVICE_EXTENSION DeviceExtension,
HANDLE BusKey,
@ -3847,7 +3847,7 @@ Return Value:
VOID
STDCALL
NTAPI
UpdateGeometry(
IN PDEVICE_EXTENSION DeviceExtension
)
@ -4183,7 +4183,7 @@ diskMatched:
NTSTATUS
STDCALL
NTAPI
UpdateRemovableGeometry (
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp
@ -4316,7 +4316,7 @@ Return Value:
VOID
STDCALL
NTAPI
ScsiDiskProcessError(
PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
@ -4380,7 +4380,7 @@ Return Value:
}
VOID
STDCALL
NTAPI
ScanForSpecial(
PDEVICE_OBJECT DeviceObject,
PSCSI_INQUIRY_DATA LunInfo,
@ -4482,7 +4482,7 @@ Return Value:
}
VOID
STDCALL
NTAPI
ResetScsiBus(
IN PDEVICE_OBJECT DeviceObject
)
@ -4588,7 +4588,7 @@ Return Value:
VOID
STDCALL
NTAPI
UpdateDeviceObjects(
IN PDEVICE_OBJECT PhysicalDisk,
IN PIRP Irp

View file

@ -47,35 +47,35 @@
struct _CLASS_INIT_DATA;
typedef VOID
(STDCALL *PCLASS_ERROR)(IN PDEVICE_OBJECT DeviceObject,
(NTAPI *PCLASS_ERROR)(IN PDEVICE_OBJECT DeviceObject,
IN PSCSI_REQUEST_BLOCK Srb,
IN OUT NTSTATUS *Status,
IN OUT BOOLEAN *Retry);
typedef BOOLEAN
(STDCALL *PCLASS_DEVICE_CALLBACK)(IN PINQUIRYDATA);
(NTAPI *PCLASS_DEVICE_CALLBACK)(IN PINQUIRYDATA);
typedef NTSTATUS
(STDCALL *PCLASS_READ_WRITE)(IN PDEVICE_OBJECT DeviceObject,
(NTAPI *PCLASS_READ_WRITE)(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
typedef BOOLEAN
(STDCALL *PCLASS_FIND_DEVICES)(IN PDRIVER_OBJECT DriverObject,
(NTAPI *PCLASS_FIND_DEVICES)(IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath,
IN struct _CLASS_INIT_DATA *InitializationData,
IN PDEVICE_OBJECT PortDeviceObject,
IN ULONG PortNumber);
typedef NTSTATUS
(STDCALL *PCLASS_DEVICE_CONTROL)(IN PDEVICE_OBJECT DeviceObject,
(NTAPI *PCLASS_DEVICE_CONTROL)(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
typedef NTSTATUS
(STDCALL *PCLASS_SHUTDOWN_FLUSH)(IN PDEVICE_OBJECT DeviceObject,
(NTAPI *PCLASS_SHUTDOWN_FLUSH)(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
typedef NTSTATUS
(STDCALL *PCLASS_CREATE_CLOSE)(IN PDEVICE_OBJECT DeviceObject,
(NTAPI *PCLASS_CREATE_CLOSE)(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
@ -147,64 +147,64 @@ typedef struct _COMPLETION_CONTEXT
/* FUNCTIONS ****************************************************************/
IO_COMPLETION_ROUTINE ScsiClassAsynchronousCompletion;
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassAsynchronousCompletion(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID Context);
VOID STDCALL
VOID NTAPI
ScsiClassBuildRequest(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassClaimDevice(IN PDEVICE_OBJECT PortDeviceObject,
IN PSCSI_INQUIRY_DATA LunInfo,
IN BOOLEAN Release,
OUT PDEVICE_OBJECT *NewPortDeviceObject OPTIONAL);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassCreateDeviceObject(IN PDRIVER_OBJECT DriverObject,
IN PCCHAR ObjectNameBuffer,
IN PDEVICE_OBJECT PhysicalDeviceObject OPTIONAL,
IN OUT PDEVICE_OBJECT *DeviceObject,
IN PCLASS_INIT_DATA InitializationData);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassDeviceControl(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
PVOID STDCALL
PVOID NTAPI
ScsiClassFindModePage(IN PCHAR ModeSenseBuffer,
IN ULONG Length,
IN UCHAR PageMode,
IN BOOLEAN Use6Byte);
ULONG STDCALL
ULONG NTAPI
ScsiClassFindUnclaimedDevices(IN PCLASS_INIT_DATA InitializationData,
OUT PSCSI_ADAPTER_BUS_INFO AdapterInformation);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassGetCapabilities(IN PDEVICE_OBJECT PortDeviceObject,
OUT PIO_SCSI_CAPABILITIES *PortCapabilities);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassGetInquiryData(IN PDEVICE_OBJECT PortDeviceObject,
OUT PSCSI_ADAPTER_BUS_INFO *ConfigInfo);
ULONG STDCALL
ULONG NTAPI
ScsiClassInitialize(IN PVOID Argument1,
IN PVOID Argument2,
IN PCLASS_INIT_DATA InitializationData);
VOID STDCALL
VOID NTAPI
ScsiClassInitializeSrbLookasideList(IN PDEVICE_EXTENSION DeviceExtension,
IN ULONG NumberElements);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassInternalIoControl(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
BOOLEAN STDCALL
BOOLEAN NTAPI
ScsiClassInterpretSenseInfo(IN PDEVICE_OBJECT DeviceObject,
IN PSCSI_REQUEST_BLOCK Srb,
IN UCHAR MajorFunctionCode,
@ -212,32 +212,32 @@ ScsiClassInterpretSenseInfo(IN PDEVICE_OBJECT DeviceObject,
IN ULONG RetryCount,
OUT NTSTATUS *Status);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassIoComplete(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID Context);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassIoCompleteAssociated(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN PVOID Context);
ULONG STDCALL
ULONG NTAPI
ScsiClassModeSense(IN PDEVICE_OBJECT DeviceObject,
IN PCHAR ModeSenseBuffer,
IN ULONG Length,
IN UCHAR PageMode);
ULONG STDCALL
ULONG NTAPI
ScsiClassQueryTimeOutRegistryValue(IN PUNICODE_STRING RegistryPath);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassReadDriveCapacity(IN PDEVICE_OBJECT DeviceObject);
VOID STDCALL
VOID NTAPI
ScsiClassReleaseQueue(IN PDEVICE_OBJECT DeviceObject);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassSendSrbAsynchronous(PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
PIRP Irp,
@ -245,20 +245,20 @@ ScsiClassSendSrbAsynchronous(PDEVICE_OBJECT DeviceObject,
ULONG BufferLength,
BOOLEAN WriteToDevice);
NTSTATUS STDCALL
NTSTATUS NTAPI
ScsiClassSendSrbSynchronous(PDEVICE_OBJECT DeviceObject,
PSCSI_REQUEST_BLOCK Srb,
PVOID BufferAddress,
ULONG BufferLength,
BOOLEAN WriteToDevice);
VOID STDCALL
VOID NTAPI
ScsiClassSplitRequest(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
IN ULONG MaximumBytes);
NTSTATUS
STDCALL
NTAPI
ScsiClassCheckVerifyComplete(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,

View file

@ -165,7 +165,7 @@ typedef struct _HW_LU_EXTENSION {
} HW_LU_EXTENSION, *PHW_LU_EXTENSION;
PSCSI_REQUEST_BLOCK
STDCALL
NTAPI
BuildMechanismStatusSrb (
IN PVOID HwDeviceExtension,
IN ULONG PathId,
@ -173,7 +173,7 @@ BuildMechanismStatusSrb (
);
PSCSI_REQUEST_BLOCK
STDCALL
NTAPI
BuildRequestSenseSrb (
IN PVOID HwDeviceExtension,
IN ULONG PathId,
@ -181,7 +181,7 @@ BuildRequestSenseSrb (
);
VOID
STDCALL
NTAPI
AtapiHwInitializeChanger (
IN PVOID HwDeviceExtension,
IN ULONG TargetId,
@ -189,28 +189,28 @@ AtapiHwInitializeChanger (
);
ULONG
STDCALL
NTAPI
AtapiSendCommand(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
);
VOID
STDCALL
NTAPI
AtapiZeroMemory(
IN PUCHAR Buffer,
IN ULONG Count
);
VOID
STDCALL
NTAPI
AtapiHexToString (
ULONG Value,
PCHAR *Buffer
);
LONG
STDCALL
NTAPI
AtapiStringCmp (
PCHAR FirstStr,
PCHAR SecondStr,
@ -218,26 +218,26 @@ AtapiStringCmp (
);
BOOLEAN
STDCALL
NTAPI
AtapiInterrupt(
IN PVOID HwDeviceExtension
);
BOOLEAN
STDCALL
NTAPI
AtapiHwInitialize(
IN PVOID HwDeviceExtension
);
ULONG
STDCALL
NTAPI
IdeBuildSenseBuffer(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
);
VOID
STDCALL
NTAPI
IdeMediaStatus(
IN BOOLEAN EnableMSN,
IN PVOID HwDeviceExtension,
@ -247,7 +247,7 @@ IdeMediaStatus(
BOOLEAN
STDCALL
NTAPI
IssueIdentify(
IN PVOID HwDeviceExtension,
IN ULONG DeviceNumber,
@ -632,7 +632,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
SetDriveParameters(
IN PVOID HwDeviceExtension,
IN ULONG DeviceNumber,
@ -729,7 +729,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
AtapiResetController(
IN PVOID HwDeviceExtension,
IN ULONG PathId
@ -901,7 +901,7 @@ Return Value:
ULONG
STDCALL
NTAPI
MapError(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
@ -1278,7 +1278,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
AtapiHwInitialize(
IN PVOID HwDeviceExtension
)
@ -1467,7 +1467,7 @@ Return Value:
VOID
STDCALL
NTAPI
AtapiHwInitializeChanger (
IN PVOID HwDeviceExtension,
IN ULONG TargetId,
@ -1487,7 +1487,7 @@ AtapiHwInitializeChanger (
BOOLEAN
STDCALL
NTAPI
FindDevices(
IN PVOID HwDeviceExtension,
IN BOOLEAN AtapiOnly,
@ -1850,7 +1850,7 @@ atapiIssueId:
ULONG
STDCALL
NTAPI
AtapiParseArgumentString(
IN PCHAR String,
IN PCHAR KeyWord
@ -2104,7 +2104,7 @@ ContinueSearch:
ULONG
STDCALL
NTAPI
AtapiFindController(
IN PVOID HwDeviceExtension,
IN PVOID Context,
@ -2573,7 +2573,7 @@ retryIdentifier:
BOOLEAN
STDCALL
NTAPI
FindBrokenController(
IN PVOID DeviceExtension,
IN PUCHAR VendorID,
@ -2710,7 +2710,7 @@ Return Value:
ULONG
STDCALL
NTAPI
AtapiFindNativeModeController(
IN PVOID HwDeviceExtension,
IN PVOID Context,
@ -3012,7 +3012,7 @@ setStatusAndExit:
ULONG
STDCALL
NTAPI
AtapiFindPCIController(
IN PVOID HwDeviceExtension,
IN PVOID Context,
@ -3358,7 +3358,7 @@ setStatusAndExit:
ULONG
STDCALL
NTAPI
Atapi2Scsi(
IN PSCSI_REQUEST_BLOCK Srb,
IN char *DataBuffer,
@ -3409,7 +3409,7 @@ Atapi2Scsi(
VOID
STDCALL
NTAPI
AtapiCallBack(
IN PVOID HwDeviceExtension
)
@ -3482,7 +3482,7 @@ AtapiCallBack(
BOOLEAN
STDCALL
NTAPI
AtapiInterrupt(
IN PVOID HwDeviceExtension
)
@ -4341,7 +4341,7 @@ CompleteRequest:
ULONG
STDCALL
NTAPI
IdeSendSmartCommand(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
@ -4497,7 +4497,7 @@ Return Value:
ULONG
STDCALL
NTAPI
IdeReadWrite(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
@ -4741,7 +4741,7 @@ Return Value:
ULONG
STDCALL
NTAPI
IdeVerify(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
@ -4911,7 +4911,7 @@ Return Value:
VOID
STDCALL
NTAPI
Scsi2Atapi(
IN PSCSI_REQUEST_BLOCK Srb
)
@ -4979,7 +4979,7 @@ Return Value:
ULONG
STDCALL
NTAPI
AtapiSendCommand(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
@ -5334,7 +5334,7 @@ Return Value:
} // end AtapiSendCommand()
ULONG
STDCALL
NTAPI
IdeSendCommand(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
@ -5648,7 +5648,7 @@ Return Value:
} // end IdeSendCommand()
VOID
STDCALL
NTAPI
IdeMediaStatus(
BOOLEAN EnableMSN,
IN PVOID HwDeviceExtension,
@ -5730,7 +5730,7 @@ HwDeviceExtension - ATAPI driver storage.
}
ULONG
STDCALL
NTAPI
IdeBuildSenseBuffer(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
@ -5804,7 +5804,7 @@ Return Value:
BOOLEAN
STDCALL
NTAPI
AtapiStartIo(
IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
@ -6170,7 +6170,7 @@ Return Value:
ULONG
STDCALL
NTAPI
DriverEntry(
IN PVOID DriverObject,
IN PVOID Argument2
@ -6326,7 +6326,7 @@ Return Value:
LONG
STDCALL
NTAPI
AtapiStringCmp (
PCHAR FirstStr,
PCHAR SecondStr,
@ -6374,7 +6374,7 @@ AtapiStringCmp (
VOID
STDCALL
NTAPI
AtapiZeroMemory(
IN PUCHAR Buffer,
IN ULONG Count
@ -6389,7 +6389,7 @@ AtapiZeroMemory(
VOID
STDCALL
NTAPI
AtapiHexToString (
IN ULONG Value,
IN OUT PCHAR *Buffer
@ -6440,7 +6440,7 @@ AtapiHexToString (
PSCSI_REQUEST_BLOCK
STDCALL
NTAPI
BuildMechanismStatusSrb (
IN PVOID HwDeviceExtension,
IN ULONG PathId,
@ -6486,7 +6486,7 @@ BuildMechanismStatusSrb (
PSCSI_REQUEST_BLOCK
STDCALL
NTAPI
BuildRequestSenseSrb (
IN PVOID HwDeviceExtension,
IN ULONG PathId,

View file

@ -80,7 +80,7 @@ v1.2.0.2 // Fix PR 40284 correctly, disable interrupts in the initialization ro
#include "BusLogic958.h"
ULONG
STDCALL
NTAPI
DriverEntry(IN PVOID DriverObject,
IN PVOID Argument2
)
@ -169,7 +169,7 @@ DriverEntry(IN PVOID DriverObject,
ULONG
STDCALL
NTAPI
BT958HwFindAdapter(IN PVOID HwDeviceExtension,
IN PVOID Context,
IN PVOID BusInformation,
@ -1456,7 +1456,7 @@ VOID BusLogic_InitializeCCB( PBuslogic_CCB_T CCB)
}
BOOLEAN
STDCALL
NTAPI
BT958HwStartIO(IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
)
@ -1971,7 +1971,7 @@ BusLogic_QueueCommand(IN PVOID HwDeviceExtension ,
BOOLEAN
STDCALL
NTAPI
BT958HwInterrupt(IN PVOID HwDeviceExtension)
//_________________________________________________________________________
// Routine Description:
@ -2446,7 +2446,7 @@ BusLogic_ComputeResultCode(BusLogic_HostAdapter_T *HostAdapter,
BOOLEAN
STDCALL
NTAPI
BT958HwResetBus(IN PVOID HwDeviceExtension,
IN ULONG PathId)
//_____________________________________________________________________________________
@ -2618,7 +2618,7 @@ Done:
}
BOOLEAN
STDCALL
NTAPI
BT958HwInitialize(IN PVOID HwDeviceExtension)
//_______________________________________________________________________________
// Routine Description:
@ -2649,7 +2649,7 @@ BT958HwInitialize(IN PVOID HwDeviceExtension)
}// end BT958HwInitialize
SCSI_ADAPTER_CONTROL_STATUS
STDCALL
NTAPI
BT958HwAdapterControl(IN PVOID HwDeviceExtension,
IN SCSI_ADAPTER_CONTROL_TYPE ControlType,
IN PVOID Parameters)

View file

@ -816,13 +816,13 @@ typedef struct BusLogic_WmiExtendedSetupInformation
// function declaractions
//_________________________________________________________________________________________
ULONG
STDCALL
NTAPI
DriverEntry(IN PVOID DriverObject,
IN PVOID Argument2
);
ULONG
STDCALL
NTAPI
BT958HwFindAdapter(IN PVOID HwDeviceExtension,
IN PVOID Context,
IN PVOID BusInformation,
@ -832,27 +832,27 @@ BT958HwFindAdapter(IN PVOID HwDeviceExtension,
);
BOOLEAN
STDCALL
NTAPI
BT958HwInitialize(IN PVOID HwDeviceExtension);
BOOLEAN
STDCALL
NTAPI
BT958HwStartIO(IN PVOID HwDeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb
);
BOOLEAN
STDCALL
NTAPI
BT958HwInterrupt(IN PVOID HwDeviceExtension);
BOOLEAN
STDCALL
NTAPI
BT958HwResetBus(IN PVOID HwDeviceExtension,
IN ULONG PathId
);
SCSI_ADAPTER_CONTROL_STATUS
STDCALL
NTAPI
BT958HwAdapterControl(IN PVOID HwDeviceExtension,
IN SCSI_ADAPTER_CONTROL_TYPE ControlType,
IN PVOID Parameters

View file

@ -47,7 +47,7 @@
#undef KeGetCurrentIrql
/* PROTOTYPES ***************************************************************/
NTSTATUS STDCALL
NTSTATUS NTAPI
DiskDumpPrepare(PDEVICE_OBJECT DeviceObject, PDUMP_POINTERS DumpPointers);
VOID
DiskDumpScsiInvalid(VOID);
@ -55,11 +55,11 @@ VOID
_DiskDumpScsiPortNotification(IN SCSI_NOTIFICATION_TYPE NotificationType,
IN PVOID HwDeviceExtension,
...);
NTSTATUS STDCALL
NTSTATUS NTAPI
DiskDumpInit(VOID);
NTSTATUS STDCALL
NTSTATUS NTAPI
DiskDumpFinish(VOID);
NTSTATUS STDCALL
NTSTATUS NTAPI
DiskDumpWrite(LARGE_INTEGER StartAddress, PMDL Mdl);
typedef VOID (*SCSIPORTNOTIFICATION)(IN SCSI_NOTIFICATION_TYPE NotificationType,
@ -141,7 +141,7 @@ DiskDumpScsiInvalid(VOID)
KeBugCheck(0);
}
VOID STDCALL
VOID NTAPI
DiskDumpBuildRequest(LARGE_INTEGER StartingOffset, PMDL Mdl)
{
LARGE_INTEGER StartingBlock;
@ -208,7 +208,7 @@ DiskDumpBuildRequest(LARGE_INTEGER StartingOffset, PMDL Mdl)
/* Leave caching disabled. */
}
BOOLEAN STDCALL
BOOLEAN NTAPI
DiskDumpIsr(PKINTERRUPT Interrupt, PVOID ServiceContext)
{
if (!CoreDumpPortDeviceExtension->HwInterrupt(&CoreDumpPortDeviceExtension->MiniPortDeviceExtension))
@ -218,7 +218,7 @@ DiskDumpIsr(PKINTERRUPT Interrupt, PVOID ServiceContext)
return(TRUE);
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DiskDumpInit(VOID)
{
KIRQL CurrentIrql = KeGetCurrentIrql();
@ -233,13 +233,13 @@ DiskDumpInit(VOID)
return(STATUS_SUCCESS);
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DiskDumpFinish(VOID)
{
return(STATUS_SUCCESS);
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DiskDumpWrite(LARGE_INTEGER Address, PMDL Mdl)
{
KIRQL OldIrql = 0, OldIrql2 = 0;
@ -292,7 +292,7 @@ DiskDumpWrite(LARGE_INTEGER Address, PMDL Mdl)
return(STATUS_SUCCESS);
}
NTSTATUS STDCALL
NTSTATUS NTAPI
DiskDumpPrepare(PDEVICE_OBJECT DeviceObject, PDUMP_POINTERS DumpPointers)
{
PIMAGE_NT_HEADERS NtHeader;
@ -428,7 +428,7 @@ DiskDumpPrepare(PDEVICE_OBJECT DeviceObject, PDUMP_POINTERS DumpPointers)
* Status
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)
{

View file

@ -2,7 +2,7 @@
#include <windows.h>
#include <usbdi.h>
typedef ULONG STDCALL
typedef ULONG NTAPI
(*USBD_GetInterfaceLengthTYPE)(
PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor,
PUCHAR BufferEnd

View file

@ -41,7 +41,7 @@ typedef struct _USBD_INTERFACE_LIST_ENTRY {
PUSBD_INTERFACE_INFORMATION Interface;
} USBD_INTERFACE_LIST_ENTRY, *PUSBD_INTERFACE_LIST_ENTRY;
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
{
@ -51,7 +51,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
/*
* @implemented
*/
DWORD STDCALL
DWORD NTAPI
DllInitialize(DWORD Unknown)
{
return 0;
@ -60,7 +60,7 @@ DllInitialize(DWORD Unknown)
/*
* @implemented
*/
DWORD STDCALL
DWORD NTAPI
DllUnload(VOID)
{
return 0;
@ -69,7 +69,7 @@ DllUnload(VOID)
/*
* @implemented
*/
PVOID STDCALL
PVOID NTAPI
USBD_Debug_GetHeap(DWORD Unknown1, POOL_TYPE PoolType, ULONG NumberOfBytes,
ULONG Tag)
{
@ -79,7 +79,7 @@ USBD_Debug_GetHeap(DWORD Unknown1, POOL_TYPE PoolType, ULONG NumberOfBytes,
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_Debug_RetHeap(PVOID Heap, DWORD Unknown2, DWORD Unknown3)
{
ExFreePool(Heap);
@ -88,7 +88,7 @@ USBD_Debug_RetHeap(PVOID Heap, DWORD Unknown2, DWORD Unknown3)
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_Debug_LogEntry(PCHAR Name, ULONG_PTR Info1, ULONG_PTR Info2,
ULONG_PTR Info3)
{
@ -97,7 +97,7 @@ USBD_Debug_LogEntry(PCHAR Name, ULONG_PTR Info1, ULONG_PTR Info2,
/*
* @implemented
*/
PVOID STDCALL
PVOID NTAPI
USBD_AllocateDeviceName(DWORD Unknown)
{
return NULL;
@ -106,7 +106,7 @@ USBD_AllocateDeviceName(DWORD Unknown)
/*
* @implemented
*/
DWORD STDCALL
DWORD NTAPI
USBD_CalculateUsbBandwidth(
ULONG MaxPacketSize,
UCHAR EndpointType,
@ -134,7 +134,7 @@ USBD_CalculateUsbBandwidth(
/*
* @implemented
*/
DWORD STDCALL
DWORD NTAPI
USBD_Dispatch(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3, DWORD Unknown4)
{
return 1;
@ -143,7 +143,7 @@ USBD_Dispatch(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3, DWORD Unknown4)
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_FreeDeviceMutex(PVOID Unknown)
{
}
@ -151,7 +151,7 @@ USBD_FreeDeviceMutex(PVOID Unknown)
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_FreeDeviceName(PVOID Unknown)
{
}
@ -159,7 +159,7 @@ USBD_FreeDeviceName(PVOID Unknown)
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_WaitDeviceMutex(PVOID Unknown)
{
}
@ -167,7 +167,7 @@ USBD_WaitDeviceMutex(PVOID Unknown)
/*
* @implemented
*/
DWORD STDCALL
DWORD NTAPI
USBD_GetSuspendPowerState(DWORD Unknown1)
{
return 0;
@ -176,7 +176,7 @@ USBD_GetSuspendPowerState(DWORD Unknown1)
/*
* @implemented
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
USBD_InitializeDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
DWORD Unknown4, DWORD Unknown5, DWORD Unknown6)
{
@ -186,7 +186,7 @@ USBD_InitializeDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
/*
* @implemented
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
USBD_RegisterHostController(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
DWORD Unknown4, DWORD Unknown5, DWORD Unknown6, DWORD Unknown7,
DWORD Unknown8, DWORD Unknown9, DWORD Unknown10)
@ -197,7 +197,7 @@ USBD_RegisterHostController(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
/*
* @implemented
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
USBD_GetDeviceInformation(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
{
return STATUS_NOT_SUPPORTED;
@ -206,7 +206,7 @@ USBD_GetDeviceInformation(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
/*
* @implemented
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
USBD_CreateDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
DWORD Unknown4, DWORD Unknown5)
{
@ -216,7 +216,7 @@ USBD_CreateDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3,
/*
* @implemented
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
USBD_RemoveDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
{
return STATUS_NOT_SUPPORTED;
@ -225,7 +225,7 @@ USBD_RemoveDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_CompleteRequest(DWORD Unknown1, DWORD Unknown2)
{
}
@ -233,7 +233,7 @@ USBD_CompleteRequest(DWORD Unknown1, DWORD Unknown2)
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_RegisterHcFilter(
PDEVICE_OBJECT DeviceObject,
PDEVICE_OBJECT FilterDeviceObject
@ -244,7 +244,7 @@ USBD_RegisterHcFilter(
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_SetSuspendPowerState(DWORD Unknown1, DWORD Unknown2)
{
}
@ -252,7 +252,7 @@ USBD_SetSuspendPowerState(DWORD Unknown1, DWORD Unknown2)
/*
* @implemented
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
USBD_MakePdoName(DWORD Unknown1, DWORD Unknown2)
{
return STATUS_NOT_SUPPORTED;
@ -261,7 +261,7 @@ USBD_MakePdoName(DWORD Unknown1, DWORD Unknown2)
/*
* @implemented
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
USBD_QueryBusTime(
PDEVICE_OBJECT RootHubPdo,
PULONG CurrentFrame
@ -273,7 +273,7 @@ USBD_QueryBusTime(
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_GetUSBDIVersion(
PUSBD_VERSION_INFORMATION Version
)
@ -288,7 +288,7 @@ USBD_GetUSBDIVersion(
/*
* @implemented
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
USBD_RestoreDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
{
return STATUS_NOT_SUPPORTED;
@ -297,7 +297,7 @@ USBD_RestoreDevice(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
/*
* @implemented
*/
VOID STDCALL
VOID NTAPI
USBD_RegisterHcDeviceCapabilities(DWORD Unknown1, DWORD Unknown2,
DWORD Unknown3)
{
@ -308,7 +308,7 @@ USBD_RegisterHcDeviceCapabilities(DWORD Unknown1, DWORD Unknown2,
* FIXME: Test
*/
PURB
STDCALL
NTAPI
USBD_CreateConfigurationRequestEx(
PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
PUSBD_INTERFACE_LIST_ENTRY InterfaceList
@ -343,7 +343,7 @@ USBD_CreateConfigurationRequestEx(
/*
* @unimplemented
*/
PURB STDCALL
PURB NTAPI
USBD_CreateConfigurationRequest(
PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
PUSHORT Size
@ -355,7 +355,7 @@ USBD_CreateConfigurationRequest(
/*
* @unimplemented
*/
ULONG STDCALL
ULONG NTAPI
USBD_GetInterfaceLength(
PUSB_INTERFACE_DESCRIPTOR InterfaceDescriptor,
PUCHAR BufferEnd
@ -381,7 +381,7 @@ USBD_GetInterfaceLength(
/*
* @implemented
*/
PUSB_COMMON_DESCRIPTOR STDCALL
PUSB_COMMON_DESCRIPTOR NTAPI
USBD_ParseDescriptors(
PVOID DescriptorBuffer,
ULONG TotalLength,
@ -406,7 +406,7 @@ USBD_ParseDescriptors(
/*
* @implemented
*/
PUSB_INTERFACE_DESCRIPTOR STDCALL
PUSB_INTERFACE_DESCRIPTOR NTAPI
USBD_ParseConfigurationDescriptorEx(
PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
PVOID StartPosition,
@ -462,7 +462,7 @@ USBD_ParseConfigurationDescriptorEx(
/*
* @implemented
*/
PUSB_INTERFACE_DESCRIPTOR STDCALL
PUSB_INTERFACE_DESCRIPTOR NTAPI
USBD_ParseConfigurationDescriptor(
PUSB_CONFIGURATION_DESCRIPTOR ConfigurationDescriptor,
UCHAR InterfaceNumber,
@ -478,7 +478,7 @@ USBD_ParseConfigurationDescriptor(
/*
* @implemented
*/
DWORD STDCALL
DWORD NTAPI
USBD_GetPdoRegistryParameter(
PDEVICE_OBJECT PhysicalDeviceObject,
PVOID Parameter,

View file

@ -10,7 +10,7 @@
#define NDEBUG
#include "usbhub.h"
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubCreate(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -23,7 +23,7 @@ UsbhubCreate(
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubClose(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -36,7 +36,7 @@ UsbhubClose(
return STATUS_SUCCESS;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubCleanup(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)

View file

@ -224,7 +224,7 @@ ByeBye:
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubPnpFdo(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)

View file

@ -11,7 +11,7 @@
#include "usbhub.h"
#include <stdarg.h>
NTSTATUS STDCALL
NTSTATUS NTAPI
ForwardIrpAndWaitCompletion(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp,
@ -50,7 +50,7 @@ ForwardIrpAndWait(
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
ForwardIrpAndForget(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)

View file

@ -226,7 +226,7 @@ UsbhubPdoQueryDeviceText(
}
}
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubPnpPdo(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)

View file

@ -68,7 +68,7 @@ GetRootHubPointer(
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubAddDevice(
IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT Pdo)
@ -121,7 +121,7 @@ UsbhubAddDevice(
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
IrpStub(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
@ -154,7 +154,7 @@ IrpStub(
return Status;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
if (((PHUB_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->IsFDO)
@ -163,7 +163,7 @@ DispatchDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
return IrpStub(DeviceObject, Irp);
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchInternalDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
if (((PHUB_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->IsFDO)
@ -172,7 +172,7 @@ DispatchInternalDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
return UsbhubInternalDeviceControlPdo(DeviceObject, Irp);
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchPnp(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
if (((PHUB_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->IsFDO)
@ -184,7 +184,7 @@ DispatchPnp(PDEVICE_OBJECT DeviceObject, PIRP Irp)
/*
* Standard DriverEntry method.
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(
IN PDRIVER_OBJECT DriverObject,
IN PUNICODE_STRING RegistryPath)

View file

@ -25,23 +25,23 @@ typedef struct _HUB_DEVICE_EXTENSION
} HUB_DEVICE_EXTENSION, *PHUB_DEVICE_EXTENSION;
/* createclose.c */
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubCreate(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubClose(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubCleanup(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
/* fdo.c */
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubPnpFdo(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
@ -57,7 +57,7 @@ ForwardIrpAndWait(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
NTSTATUS STDCALL
NTSTATUS NTAPI
ForwardIrpAndForget(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
@ -74,7 +74,7 @@ UsbhubInitMultiSzString(
... /* list of PCSZ */);
/* pdo.c */
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbhubPnpPdo(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);

View file

@ -15,7 +15,7 @@
/* PUBLIC AND PRIVATE FUNCTIONS **********************************************/
NTSTATUS STDCALL
NTSTATUS NTAPI
IrpStub(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
{
@ -25,25 +25,25 @@ IrpStub(IN PDEVICE_OBJECT DeviceObject,
return Status;
}
NTSTATUS STDCALL
NTSTATUS NTAPI
AddDevice(IN PDRIVER_OBJECT DriverObject,
IN PDEVICE_OBJECT pdo)
{
return STATUS_SUCCESS;
}
VOID STDCALL
VOID NTAPI
DriverUnload(PDRIVER_OBJECT DriverObject)
{
}
VOID STDCALL
VOID NTAPI
StartIo(PUSBSTOR_DEVICE_EXTENSION DeviceExtension,
PIRP Irp)
{
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchClose(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
Irp->IoStatus.Information = 0;
@ -52,44 +52,44 @@ DispatchClose(PDEVICE_OBJECT DeviceObject, PIRP Irp)
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchCleanup(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchDeviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchScsi(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchReadWrite(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchSystemControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchPnp(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
return STATUS_SUCCESS;
}
static NTSTATUS STDCALL
static NTSTATUS NTAPI
DispatchPower(PDEVICE_OBJECT fido, PIRP Irp)
{
DPRINT1("USBSTOR: IRP_MJ_POWER unimplemented\n");
@ -104,7 +104,7 @@ DispatchPower(PDEVICE_OBJECT fido, PIRP Irp)
/*
* Standard DriverEntry method.
*/
NTSTATUS STDCALL
NTSTATUS NTAPI
DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegPath)
{
ULONG i;

View file

@ -7,7 +7,7 @@
#define USB_STOR_TAG TAG('u','s','b','s')
#define USB_MAXCHILDREN (16)
NTSTATUS STDCALL
NTSTATUS NTAPI
IoAttachDeviceToDeviceStackSafe(
IN PDEVICE_OBJECT SourceDevice,
IN PDEVICE_OBJECT TargetDevice,
@ -32,13 +32,13 @@ typedef struct _USBSTOR_DEVICE_EXTENSION
/* cleanup.c */
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbStorCleanup(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
/* fdo.c */
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbStorPnpFdo(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
@ -54,7 +54,7 @@ ForwardIrpAndWait(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
NTSTATUS STDCALL
NTSTATUS NTAPI
ForwardIrpAndForget(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);
@ -71,7 +71,7 @@ UsbStorInitMultiSzString(
... /* list of PCSZ */);
/* pdo.c */
NTSTATUS STDCALL
NTSTATUS NTAPI
UsbStorPnpPdo(
IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp);

View file

@ -36,7 +36,7 @@
/* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/
VP_STATUS STDCALL
VP_STATUS NTAPI
DriverEntry(IN PVOID Context1, IN PVOID Context2)
{
VIDEO_HW_INITIALIZATION_DATA InitData;
@ -63,7 +63,7 @@ DriverEntry(IN PVOID Context1, IN PVOID Context2)
* so we always return NO_ERROR and do the real work in VBEInitialize.
*/
VP_STATUS STDCALL
VP_STATUS NTAPI
VBEFindAdapter(
IN PVOID HwDeviceExtension,
IN PVOID HwContext,
@ -165,7 +165,7 @@ VBESortModes(PVBE_DEVICE_EXTENSION DeviceExtension)
* the VBE.
*/
BOOLEAN STDCALL
BOOLEAN NTAPI
VBEInitialize(PVOID HwDeviceExtension)
{
INT10_BIOS_ARGUMENTS BiosRegisters;
@ -416,7 +416,7 @@ VBEInitialize(PVOID HwDeviceExtension)
* Processes the specified Video Request Packet.
*/
BOOLEAN STDCALL
BOOLEAN NTAPI
VBEStartIO(
PVOID HwDeviceExtension,
PVIDEO_REQUEST_PACKET RequestPacket)
@ -540,7 +540,7 @@ VBEStartIO(
* This function is called to reset the hardware to a known state.
*/
BOOLEAN STDCALL
BOOLEAN NTAPI
VBEResetHw(
PVOID DeviceExtension,
ULONG Columns,
@ -604,7 +604,7 @@ VBEResetHw(
* Queries whether the device can support the requested power state.
*/
VP_STATUS STDCALL
VP_STATUS NTAPI
VBEGetPowerState(
PVOID HwDeviceExtension,
ULONG HwId,
@ -674,7 +674,7 @@ VBEGetPowerState(
* Sets the power state of the specified device
*/
VP_STATUS STDCALL
VP_STATUS NTAPI
VBESetPowerState(
PVOID HwDeviceExtension,
ULONG HwId,

Some files were not shown because too many files have changed in this diff Show more