mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
- Add calling convention for callback typedefs
- Ros needs msvc! svn path=/trunk/; revision=42164
This commit is contained in:
parent
91de7b5fd3
commit
77a79fb006
1 changed files with 52 additions and 39 deletions
|
@ -1104,7 +1104,7 @@ typedef enum
|
|||
|
||||
#if defined(_NTDDK_)
|
||||
/* MOVE ME */
|
||||
typedef NTSTATUS (*PFNKSCONTEXT_DISPATCH)(
|
||||
typedef NTSTATUS NTAPI NTAPI (*PFNKSCONTEXT_DISPATCH)(
|
||||
IN PVOID Context,
|
||||
IN PIRP Irp);
|
||||
#endif
|
||||
|
@ -1260,12 +1260,14 @@ typedef struct
|
|||
|
||||
typedef
|
||||
VOID
|
||||
NTAPI
|
||||
(*PFNREFERENCEDEVICEOBJECT)(
|
||||
IN PVOID Context
|
||||
);
|
||||
|
||||
typedef
|
||||
VOID
|
||||
NTAPI
|
||||
(*PFNDEREFERENCEDEVICEOBJECT)(
|
||||
IN PVOID Context
|
||||
);
|
||||
|
@ -1436,7 +1438,7 @@ typedef struct {
|
|||
} KSPROPERTY_VALUES, *PKSPROPERTY_VALUES;
|
||||
|
||||
#if defined(_NTDDK_)
|
||||
typedef NTSTATUS (*PFNKSHANDLER)(
|
||||
typedef NTSTATUS NTAPI(*PFNKSHANDLER)(
|
||||
IN PIRP Irp,
|
||||
IN PKSIDENTIFIER Request,
|
||||
IN OUT PVOID Data);
|
||||
|
@ -1868,13 +1870,14 @@ typedef struct
|
|||
LONGLONG Interval;
|
||||
} KSEVENT_TIME_INTERVAL, *PKSEVENT_TIME_INTERVAL;
|
||||
|
||||
typedef NTSTATUS (*PFNKSADDEVENT)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSADDEVENT)(
|
||||
IN PIRP Irp,
|
||||
IN PKSEVENTDATA EventData,
|
||||
IN struct _KSEVENT_ENTRY* EventEntry);
|
||||
|
||||
typedef
|
||||
VOID
|
||||
NTAPI
|
||||
(*PFNKSREMOVEEVENT)(
|
||||
IN PFILE_OBJECT FileObject,
|
||||
IN struct _KSEVENT_ENTRY* EventEntry
|
||||
|
@ -1938,6 +1941,7 @@ typedef struct {
|
|||
|
||||
typedef
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
(*PFNKSPINHANDSHAKE)(
|
||||
IN PKSPIN Pin,
|
||||
IN PKSHANDSHAKE In,
|
||||
|
@ -1946,6 +1950,7 @@ NTSTATUS
|
|||
|
||||
typedef
|
||||
void
|
||||
NTAPI
|
||||
(*PFNKSPINPOWER)(
|
||||
IN PKSPIN Pin,
|
||||
IN DEVICE_POWER_STATE State
|
||||
|
@ -1953,6 +1958,7 @@ void
|
|||
|
||||
typedef
|
||||
void
|
||||
NTAPI
|
||||
(*PFNKSPINFRAMERETURN)(
|
||||
IN PKSPIN Pin,
|
||||
IN PVOID Data OPTIONAL,
|
||||
|
@ -1964,6 +1970,7 @@ void
|
|||
|
||||
typedef
|
||||
void
|
||||
NTAPI
|
||||
(*PFNKSPINIRPCOMPLETION)(
|
||||
IN PKSPIN Pin,
|
||||
IN PIRP Irp
|
||||
|
@ -1971,6 +1978,7 @@ void
|
|||
|
||||
typedef
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
(*PFNKSPINIRP)(
|
||||
IN PKSPIN Pin,
|
||||
IN PIRP Irp
|
||||
|
@ -1978,18 +1986,21 @@ NTSTATUS
|
|||
|
||||
typedef
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
(*PFNKSPIN)(
|
||||
IN PKSPIN Pin
|
||||
);
|
||||
|
||||
typedef
|
||||
void
|
||||
NTAPI
|
||||
(*PFNKSPINVOID)(
|
||||
IN PKSPIN Pin
|
||||
);
|
||||
|
||||
typedef
|
||||
void
|
||||
NTAPI
|
||||
(*PFNKSSTREAMPOINTER)(
|
||||
IN PKSSTREAM_POINTER StreamPointer
|
||||
);
|
||||
|
@ -2001,6 +2012,7 @@ typedef struct {
|
|||
|
||||
typedef
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
(*PFNKSPINSETDATAFORMAT)(
|
||||
IN PKSPIN Pin,
|
||||
IN PKSDATAFORMAT OldFormat OPTIONAL,
|
||||
|
@ -2011,6 +2023,7 @@ NTSTATUS
|
|||
|
||||
typedef
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
(*PFNKSPINSETDEVICESTATE)(
|
||||
IN PKSPIN Pin,
|
||||
IN KSSTATE ToState,
|
||||
|
@ -2036,7 +2049,7 @@ typedef struct
|
|||
|
||||
typedef
|
||||
BOOLEAN
|
||||
(*PFNKSPINSETTIMER)(
|
||||
NTAPI (*PFNKSPINSETTIMER)(
|
||||
IN PKSPIN Pin,
|
||||
IN PKTIMER Timer,
|
||||
IN LARGE_INTEGER DueTime,
|
||||
|
@ -2045,7 +2058,7 @@ BOOLEAN
|
|||
|
||||
typedef
|
||||
BOOLEAN
|
||||
(*PFNKSPINCANCELTIMER)(
|
||||
NTAPI (*PFNKSPINCANCELTIMER)(
|
||||
IN PKSPIN Pin,
|
||||
IN PKTIMER Timer
|
||||
);
|
||||
|
@ -2059,7 +2072,7 @@ LONGLONG
|
|||
|
||||
typedef
|
||||
void
|
||||
(*PFNKSPINRESOLUTION)(
|
||||
NTAPI (*PFNKSPINRESOLUTION)(
|
||||
IN PKSPIN Pin,
|
||||
OUT PKSRESOLUTION Resolution
|
||||
);
|
||||
|
@ -2073,19 +2086,19 @@ struct _KSCLOCK_DISPATCH {
|
|||
|
||||
typedef
|
||||
NTSTATUS
|
||||
(*PFNKSPININITIALIZEALLOCATOR)(
|
||||
NTAPI (*PFNKSPININITIALIZEALLOCATOR)(
|
||||
IN PKSPIN Pin,
|
||||
IN PKSALLOCATOR_FRAMING AllocatorFraming,
|
||||
OUT PVOID* Context
|
||||
);
|
||||
|
||||
typedef PVOID (*PFNKSDELETEALLOCATOR)(
|
||||
typedef PVOID NTAPI (*PFNKSDELETEALLOCATOR)(
|
||||
IN PVOID Context);
|
||||
|
||||
typedef PVOID (*PFNKSDEFAULTALLOCATE)(
|
||||
typedef PVOID NTAPI (*PFNKSDEFAULTALLOCATE)(
|
||||
IN PVOID Context);
|
||||
|
||||
typedef PVOID (*PFNKSDEFAULTFREE)(
|
||||
typedef PVOID NTAPI (*PFNKSDEFAULTFREE)(
|
||||
IN PVOID Context,
|
||||
IN PVOID Buffer);
|
||||
|
||||
|
@ -2137,7 +2150,7 @@ typedef struct
|
|||
|
||||
typedef
|
||||
NTSTATUS
|
||||
(*PFNKSINTERSECTHANDLER)(
|
||||
NTAPI (*PFNKSINTERSECTHANDLER)(
|
||||
IN PIRP Irp,
|
||||
IN PKSP_PIN Pin,
|
||||
IN PKSDATARANGE DataRange,
|
||||
|
@ -2146,7 +2159,7 @@ NTSTATUS
|
|||
|
||||
typedef
|
||||
NTSTATUS
|
||||
(*PFNKSINTERSECTHANDLEREX)(
|
||||
NTAPI (*PFNKSINTERSECTHANDLEREX)(
|
||||
IN PVOID Context,
|
||||
IN PIRP Irp,
|
||||
IN PKSP_PIN Pin,
|
||||
|
@ -2367,7 +2380,7 @@ DEFINE_KSPROPERTY_TABLE(PinSet) {\
|
|||
|
||||
typedef
|
||||
void
|
||||
(*PFNKSFREE)(
|
||||
NTAPI (*PFNKSFREE)(
|
||||
IN PVOID Data
|
||||
);
|
||||
|
||||
|
@ -2465,12 +2478,12 @@ typedef PVOID NTAPI(*PFNKSINITIALIZEALLOCATOR)(
|
|||
OUT PVOID* Context);
|
||||
|
||||
#if defined(_NTDDK_)
|
||||
typedef NTSTATUS (*PFNKSALLOCATOR)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSALLOCATOR)(
|
||||
IN PIRP Irp,
|
||||
IN ULONG BufferSize,
|
||||
IN BOOLEAN InputOperation);
|
||||
|
||||
typedef NTSTATUS (*PFNKINTERSECTHANDLEREX)(
|
||||
typedef NTSTATUS NTAPI (*PFNKINTERSECTHANDLEREX)(
|
||||
IN PVOID Context,
|
||||
IN PIRP Irp,
|
||||
IN PKSP_PIN Pin,
|
||||
|
@ -2484,7 +2497,7 @@ typedef NTSTATUS (*PFNKINTERSECTHANDLEREX)(
|
|||
typedef
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
(*PFNALLOCATOR_ALLOCATEFRAME)(
|
||||
NTAPI (*PFNALLOCATOR_ALLOCATEFRAME)(
|
||||
IN PFILE_OBJECT FileObject,
|
||||
PVOID *Frame
|
||||
);
|
||||
|
@ -2492,7 +2505,7 @@ NTAPI
|
|||
typedef
|
||||
VOID
|
||||
NTAPI
|
||||
(*PFNALLOCATOR_FREEFRAME)(
|
||||
NTAPI (*PFNALLOCATOR_FREEFRAME)(
|
||||
IN PFILE_OBJECT FileObject,
|
||||
IN PVOID Frame
|
||||
);
|
||||
|
@ -2619,32 +2632,32 @@ typedef struct _KSNODE_DESCRIPTOR KSNODE_DESCRIPTOR, *PKSNODE_DESCRIPTOR;
|
|||
typedef struct _KSFILTER_DESCRIPTOR KSFILTER_DESCRIPTOR, *PKSFILTER_DESCRIPTOR;
|
||||
typedef struct _KSDEVICE_DESCRIPTOR KSDEVICE_DESCRIPTOR, *PKSDEVICE_DESCRIPTOR;
|
||||
|
||||
typedef NTSTATUS (*PFNKSDEVICECREATE)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSDEVICECREATE)(
|
||||
IN PKSDEVICE Device);
|
||||
|
||||
typedef NTSTATUS (*PFNKSDEVICEPNPSTART)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSDEVICEPNPSTART)(
|
||||
IN PKSDEVICE Device,
|
||||
IN PIRP Irp,
|
||||
IN PCM_RESOURCE_LIST TranslatedResourceList OPTIONAL,
|
||||
IN PCM_RESOURCE_LIST UntranslatedResourceList OPTIONAL);
|
||||
|
||||
typedef NTSTATUS (*PFNKSDEVICE)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSDEVICE)(
|
||||
IN PKSDEVICE Device);
|
||||
|
||||
typedef NTSTATUS (*PFNKSDEVICEIRP)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSDEVICEIRP)(
|
||||
IN PKSDEVICE Device,
|
||||
IN PIRP Irp);
|
||||
|
||||
typedef VOID (*PFNKSDEVICEIRPVOID)(
|
||||
typedef VOID NTAPI (*PFNKSDEVICEIRPVOID)(
|
||||
IN PKSDEVICE Device,
|
||||
IN PIRP Irp);
|
||||
|
||||
typedef NTSTATUS (*PFNKSDEVICEQUERYCAPABILITIES)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSDEVICEQUERYCAPABILITIES)(
|
||||
IN PKSDEVICE Device,
|
||||
IN PIRP Irp,
|
||||
IN OUT PDEVICE_CAPABILITIES Capabilities);
|
||||
|
||||
typedef NTSTATUS (*PFNKSDEVICEQUERYPOWER)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSDEVICEQUERYPOWER)(
|
||||
IN PKSDEVICE Device,
|
||||
IN PIRP Irp,
|
||||
IN DEVICE_POWER_STATE DeviceTo,
|
||||
|
@ -2653,7 +2666,7 @@ typedef NTSTATUS (*PFNKSDEVICEQUERYPOWER)(
|
|||
IN SYSTEM_POWER_STATE SystemFrom,
|
||||
IN POWER_ACTION Action);
|
||||
|
||||
typedef VOID (*PFNKSDEVICESETPOWER)(
|
||||
typedef VOID NTAPI (*PFNKSDEVICESETPOWER)(
|
||||
IN PKSDEVICE Device,
|
||||
IN PIRP Irp,
|
||||
IN DEVICE_POWER_STATE To,
|
||||
|
@ -2708,20 +2721,20 @@ struct _KSFILTER
|
|||
|
||||
typedef
|
||||
void
|
||||
(*PFNKSFILTERPOWER)(
|
||||
NTAPI (*PFNKSFILTERPOWER)(
|
||||
IN PKSFILTER Filter,
|
||||
IN DEVICE_POWER_STATE State
|
||||
);
|
||||
|
||||
typedef NTSTATUS (*PFNKSFILTERIRP)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSFILTERIRP)(
|
||||
IN PKSFILTER Filter,
|
||||
IN PIRP Irp);
|
||||
|
||||
typedef NTSTATUS (*PFNKSFILTERPROCESS)(
|
||||
IN PKSFILTER FIlter,
|
||||
typedef NTSTATUS NTAPI (*PFNKSFILTERPROCESS)(
|
||||
IN PKSFILTER Filter,
|
||||
IN PKSPROCESSPIN_INDEXENTRY ProcessPinsIndex);
|
||||
|
||||
typedef NTSTATUS (*PFNKSFILTERVOID)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSFILTERVOID)(
|
||||
IN PKSFILTER Filter);
|
||||
|
||||
struct _KSFILTER_DISPATCH
|
||||
|
@ -2779,12 +2792,12 @@ struct _KSFILTERFACTORY {
|
|||
Minidriver Callbacks
|
||||
*/
|
||||
#if defined(_NTDDK_)
|
||||
typedef NTSTATUS (*KStrMethodHandler)(
|
||||
typedef NTSTATUS NTAPI (*KStrMethodHandler)(
|
||||
IN PIRP Irp,
|
||||
IN PKSIDENTIFIER Request,
|
||||
IN OUT PVOID Data);
|
||||
|
||||
typedef NTSTATUS (*KStrSupportHandler)(
|
||||
typedef NTSTATUS NTAPI (*KStrSupportHandler)(
|
||||
IN PIRP Irp,
|
||||
IN PKSIDENTIFIER Request,
|
||||
IN OUT PVOID Data);
|
||||
|
@ -2829,13 +2842,13 @@ KsValidateAllocatorFramingEx(
|
|||
Clock Functions
|
||||
*/
|
||||
#if defined(_NTDDK_)
|
||||
typedef BOOLEAN (*PFNKSSETTIMER)(
|
||||
typedef BOOLEAN NTAPI (*PFNKSSETTIMER)(
|
||||
IN PVOID Context,
|
||||
IN PKTIMER Timer,
|
||||
IN LARGE_INTEGER DueTime,
|
||||
IN PKDPC Dpc);
|
||||
|
||||
typedef BOOLEAN (*PFNKSCANCELTIMER)(
|
||||
typedef BOOLEAN NTAPI (*PFNKSCANCELTIMER)(
|
||||
IN PVOID Context,
|
||||
IN PKTIMER Timer);
|
||||
|
||||
|
@ -3001,7 +3014,7 @@ KsFastPropertyHandler(
|
|||
|
||||
typedef
|
||||
BOOLEAN
|
||||
(*PFNKSGENERATEEVENTCALLBACK)(
|
||||
NTAPI (*PFNKSGENERATEEVENTCALLBACK)(
|
||||
IN PVOID Context,
|
||||
IN PKSEVENT_ENTRY EventEntry
|
||||
);
|
||||
|
@ -3152,7 +3165,7 @@ KsHandleSizedListQuery(
|
|||
IRP Helper Functions
|
||||
*/
|
||||
|
||||
typedef NTSTATUS (*PFNKSIRPLISTCALLBACK)(
|
||||
typedef NTSTATUS NTAPI (*PFNKSIRPLISTCALLBACK)(
|
||||
IN PIRP Irp,
|
||||
IN PVOID Context);
|
||||
|
||||
|
@ -3585,7 +3598,7 @@ KsInitializeDevice (
|
|||
IN const KSDEVICE_DESCRIPTOR* Descriptor OPTIONAL);
|
||||
|
||||
|
||||
typedef void (*PFNKSFILTERFACTORYPOWER)(
|
||||
typedef void NTAPI (*PFNKSFILTERFACTORYPOWER)(
|
||||
IN PKSFILTERFACTORY FilterFactory,
|
||||
IN DEVICE_POWER_STATE State);
|
||||
|
||||
|
|
Loading…
Reference in a new issue