Author: sginsberg
Date: Thu Aug 20 14:09:16 2009
New Revision: 42800
URL:
http://svn.reactos.org/svn/reactos?rev=42800&view=rev
Log:
- Remove several assumptions that the default calling convention is stdcall (it isn't
under gcc)
- Fix even more definitions of function pointer protypes to define the calling convention
compatibly for MSVC
- Don't use dllexport in scsiport -- fixes linking under msvc
Modified:
trunk/reactos/dll/win32/psapi/psapi.c
trunk/reactos/include/ddk/ntddpcm.h
trunk/reactos/include/ddk/ntifs.h
trunk/reactos/include/ddk/parallel.h
trunk/reactos/include/ddk/pfhook.h
trunk/reactos/include/ddk/smbus.h
trunk/reactos/include/ddk/srb.h
trunk/reactos/include/ddk/storport.h
trunk/reactos/include/ddk/usbcamdi.h
trunk/reactos/include/ddk/video.h
trunk/reactos/include/ddk/winddk.h
trunk/reactos/include/ndk/ldrtypes.h
trunk/reactos/include/ndk/rtltypes.h
trunk/reactos/include/psdk/ntsecapi.h
trunk/reactos/include/psdk/psapi.h
trunk/reactos/include/psdk/wintrust.h
trunk/reactos/include/psdk/winwlx.h
Modified: trunk/reactos/dll/win32/psapi/psapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/psapi/psapi.c?re…
==============================================================================
--- trunk/reactos/dll/win32/psapi/psapi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/psapi/psapi.c [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -587,7 +587,7 @@
} INTERNAL_ENUM_PAGE_FILES_CONTEXT, *PINTERNAL_ENUM_PAGE_FILES_CONTEXT;
-static BOOL
+static BOOL CALLBACK
InternalAnsiPageFileCallback(LPVOID pContext,
PENUM_PAGE_FILE_INFORMATION pPageFileInfo,
LPCWSTR lpFilename)
Modified: trunk/reactos/include/ddk/ntddpcm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ntddpcm.h?rev=…
==============================================================================
--- trunk/reactos/include/ddk/ntddpcm.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/ntddpcm.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -90,8 +90,8 @@
typedef ULONG MEMORY_SPACE;
-typedef ULONG NTAPI
-(*PPCMCIA_READ_WRITE_CONFIG)(
+typedef ULONG
+(NTAPI *PPCMCIA_READ_WRITE_CONFIG)(
IN PVOID Context,
IN ULONG WhichSpace,
IN PUCHAR Buffer,
@@ -117,8 +117,8 @@
#define PCMCIA_MEMORY_8BIT_ACCESS 0
#define PCMCIA_MEMORY_16BIT_ACCESS 1
-typedef BOOLEAN NTAPI
-(*PPCMCIA_MODIFY_MEMORY_WINDOW)(
+typedef BOOLEAN
+(NTAPI *PPCMCIA_MODIFY_MEMORY_WINDOW)(
IN PVOID Context,
IN ULONGLONG HostBase,
IN ULONGLONG CardBase,
@@ -132,13 +132,13 @@
#define PCMCIA_VPP_12V 1
#define PCMCIA_VPP_IS_VCC 2
-typedef BOOLEAN NTAPI
-(*PPCMCIA_SET_VPP)(
+typedef BOOLEAN
+(NTAPI *PPCMCIA_SET_VPP)(
IN PVOID Context,
IN UCHAR VppLevel);
-typedef BOOLEAN NTAPI
-(*PPCMCIA_IS_WRITE_PROTECTED)(
+typedef BOOLEAN
+(NTAPI *PPCMCIA_IS_WRITE_PROTECTED)(
IN PVOID Context);
typedef struct _PCMCIA_INTERFACE_STANDARD {
Modified: trunk/reactos/include/ddk/ntifs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ntifs.h?rev=42…
==============================================================================
--- trunk/reactos/include/ddk/ntifs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/ntifs.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -2378,7 +2378,7 @@
OUT PIO_STATUS_BLOCK IoStatus OPTIONAL
);
-typedef VOID (*PDIRTY_PAGE_ROUTINE) (
+typedef VOID (NTAPI *PDIRTY_PAGE_ROUTINE) (
IN PFILE_OBJECT FileObject,
IN PLARGE_INTEGER FileOffset,
IN ULONG Length,
@@ -3601,7 +3601,7 @@
IN PVOID FsContext
);
-typedef BOOLEAN (*PCHECK_FOR_TRAVERSE_ACCESS) (
+typedef BOOLEAN (NTAPI *PCHECK_FOR_TRAVERSE_ACCESS) (
IN PVOID NotifyContext,
IN PVOID TargetContext,
IN PSECURITY_SUBJECT_CONTEXT SubjectContext
@@ -5522,7 +5522,7 @@
((PSECURITY_SUBJECT_CONTEXT) SubjectContext)->ClientToken : \
((PSECURITY_SUBJECT_CONTEXT) SubjectContext)->PrimaryToken )
-typedef NTSTATUS (*PSE_LOGON_SESSION_TERMINATED_ROUTINE) (
+typedef NTSTATUS (NTAPI *PSE_LOGON_SESSION_TERMINATED_ROUTINE) (
IN PLUID LogonId
);
Modified: trunk/reactos/include/ddk/parallel.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/parallel.h?rev…
==============================================================================
--- trunk/reactos/include/ddk/parallel.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/parallel.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -79,28 +79,28 @@
KINTERRUPT_MODE InterruptMode;
} MORE_PARALLEL_PORT_INFORMATION, *PMORE_PARALLEL_PORT_INFORMATION;
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_SET_CHIP_MODE)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_SET_CHIP_MODE)(
IN PVOID SetChipContext,
IN UCHAR ChipMode);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_CLEAR_CHIP_MODE)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_CLEAR_CHIP_MODE)(
IN PVOID ClearChipContext,
IN UCHAR ChipMode);
-typedef NTSTATUS DDKAPI
-(*PPARCHIP_CLEAR_CHIP_MODE)(
+typedef NTSTATUS
+(DDKAPI *PPARCHIP_CLEAR_CHIP_MODE)(
IN PVOID ClearChipContext,
IN UCHAR ChipMode);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_TRY_SELECT_ROUTINE)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_TRY_SELECT_ROUTINE)(
IN PVOID TrySelectContext,
IN PVOID TrySelectCommand);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_DESELECT_ROUTINE)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_DESELECT_ROUTINE)(
IN PVOID DeselectContext,
IN PVOID DeselectCommand);
@@ -133,16 +133,16 @@
PWSTR PortName;
} PARALLEL_PNP_INFORMATION, *PPARALLEL_PNP_INFORMATION;
-typedef BOOLEAN DDKAPI
-(*PPARALLEL_TRY_ALLOCATE_ROUTINE)(
+typedef BOOLEAN
+(DDKAPI *PPARALLEL_TRY_ALLOCATE_ROUTINE)(
IN PVOID TryAllocateContext);
-typedef VOID DDKAPI
-(*PPARALLEL_FREE_ROUTINE)(
+typedef VOID
+(DDKAPI *PPARALLEL_FREE_ROUTINE)(
IN PVOID FreeContext);
-typedef ULONG DDKAPI
-(*PPARALLEL_QUERY_WAITERS_ROUTINE)(
+typedef ULONG
+(DDKAPI *PPARALLEL_QUERY_WAITERS_ROUTINE)(
IN PVOID QueryAllocsContext);
typedef struct _PARALLEL_PORT_INFORMATION {
@@ -164,8 +164,8 @@
BOOLEAN success;
} PARALLEL_CHIP_MODE, *PPARALLEL_CHIP_MODE;
-typedef VOID DDKAPI
-(*PPARALLEL_DEFERRED_ROUTINE)(
+typedef VOID
+(DDKAPI *PPARALLEL_DEFERRED_ROUTINE)(
IN PVOID DeferredContext);
typedef struct _PARALLEL_INTERRUPT_SERVICE_ROUTINE {
@@ -191,8 +191,8 @@
#define IOCTL_INTERNAL_UNLOCK_PORT_NO_DESELECT \
CTL_CODE (FILE_DEVICE_PARALLEL_PORT, 53, METHOD_BUFFERED, FILE_ANY_ACCESS)
-typedef USHORT DDKAPI
-(*PDETERMINE_IEEE_MODES)(
+typedef USHORT
+(DDKAPI *PDETERMINE_IEEE_MODES)(
IN PVOID Context);
typedef enum _PARALLEL_SAFETY {
@@ -200,49 +200,49 @@
UNSAFE_MODE
} PARALLEL_SAFETY;
-typedef NTSTATUS DDKAPI
-(*PNEGOTIATE_IEEE_MODE)(
+typedef NTSTATUS
+(DDKAPI *PNEGOTIATE_IEEE_MODE)(
IN PVOID Context,
IN USHORT ModeMaskFwd,
IN USHORT ModeMaskRev,
IN PARALLEL_SAFETY ModeSafety,
IN BOOLEAN IsForward);
-typedef NTSTATUS DDKAPI
-(*PTERMINATE_IEEE_MODE)(
+typedef NTSTATUS
+(DDKAPI *PTERMINATE_IEEE_MODE)(
IN PVOID Context);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_IEEE_FWD_TO_REV)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_IEEE_FWD_TO_REV)(
IN PVOID Context);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_IEEE_REV_TO_FWD)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_IEEE_REV_TO_FWD)(
IN PVOID Context);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_READ)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_READ)(
IN PVOID Context,
OUT PVOID Buffer,
IN ULONG NumBytesToRead,
OUT PULONG NumBytesRead,
IN UCHAR Channel);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_WRITE)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_WRITE)(
IN PVOID Context,
OUT PVOID Buffer,
IN ULONG NumBytesToWrite,
OUT PULONG NumBytesWritten,
IN UCHAR Channel);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_TRYSELECT_DEVICE)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_TRYSELECT_DEVICE)(
IN PVOID Context,
IN PARALLEL_1284_COMMAND Command);
-typedef NTSTATUS DDKAPI
-(*PPARALLEL_DESELECT_DEVICE)(
+typedef NTSTATUS
+(DDKAPI *PPARALLEL_DESELECT_DEVICE)(
IN PVOID Context,
IN PARALLEL_1284_COMMAND Command);
Modified: trunk/reactos/include/ddk/pfhook.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/pfhook.h?rev=4…
==============================================================================
--- trunk/reactos/include/ddk/pfhook.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/pfhook.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -41,8 +41,8 @@
PF_ICMP_ON_DROP = 3
} PF_FORWARD_ACTION;
-typedef PF_FORWARD_ACTION NTAPI
-(*PacketFilterExtensionPtr)(
+typedef PF_FORWARD_ACTION
+(NTAPI *PacketFilterExtensionPtr)(
IN unsigned char *PacketHeader,
IN unsigned char *Packet,
IN unsigned int PacketLength,
Modified: trunk/reactos/include/ddk/smbus.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/smbus.h?rev=42…
==============================================================================
--- trunk/reactos/include/ddk/smbus.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/smbus.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -82,8 +82,8 @@
UCHAR Data[SMB_MAX_DATA_SIZE];
} SMB_REQUEST, *PSMB_REQUEST;
-typedef VOID NTAPI
-(*SMB_ALARM_NOTIFY)(
+typedef VOID
+(NTAPI *SMB_ALARM_NOTIFY)(
PVOID Context,
UCHAR Address,
USHORT Data);
@@ -99,18 +99,18 @@
#define SMB_CLASS_MAJOR_VERSION 0x0001
#define SMB_CLASS_MINOR_VERSION 0x0000
-typedef NTSTATUS DDKAPI
-(*SMB_RESET_DEVICE)(
+typedef NTSTATUS
+(DDKAPI *SMB_RESET_DEVICE)(
IN struct _SMB_CLASS *SmbClass,
IN PVOID SmbMiniport);
-typedef VOID DDKAPI
-(*SMB_START_IO)(
+typedef VOID
+(DDKAPI *SMB_START_IO)(
IN struct _SMB_CLASS *SmbClass,
IN PVOID SmbMiniport);
-typedef NTSTATUS DDKAPI
-(*SMB_STOP_DEVICE)(
+typedef NTSTATUS
+(DDKAPI *SMB_STOP_DEVICE)(
IN struct _SMB_CLASS *SmbClass,
IN PVOID SmbMiniport);
@@ -142,8 +142,8 @@
SmbClassCompleteRequest(
IN PSMB_CLASS SmbClass);
-typedef NTSTATUS DDKAPI
-(*PSMB_INITIALIZE_MINIPORT)(
+typedef NTSTATUS
+(DDKAPI *PSMB_INITIALIZE_MINIPORT)(
IN PSMB_CLASS SmbClass,
IN PVOID MiniportExtension,
IN PVOID MiniportContext);
Modified: trunk/reactos/include/ddk/srb.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/srb.h?rev=4280…
==============================================================================
--- trunk/reactos/include/ddk/srb.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/srb.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -28,7 +28,7 @@
#endif
#if defined(_SCSIPORT_)
- #define SCSIPORTAPI DECLSPEC_EXPORT
+ #define SCSIPORTAPI
#else
#define SCSIPORTAPI DECLSPEC_IMPORT
#endif
Modified: trunk/reactos/include/ddk/storport.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/storport.h?rev…
==============================================================================
--- trunk/reactos/include/ddk/storport.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/storport.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -391,8 +391,8 @@
IN PVOID DeviceExtension,
IN PSCSI_REQUEST_BLOCK Srb);
-typedef BOOLEAN DDKAPI
-(*PSTOR_SYNCHRONIZED_ACCESS)(
+typedef BOOLEAN
+(DDKAPI *PSTOR_SYNCHRONIZED_ACCESS)(
IN PVOID HwDeviceExtension,
IN PVOID Context);
Modified: trunk/reactos/include/ddk/usbcamdi.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/usbcamdi.h?rev…
==============================================================================
--- trunk/reactos/include/ddk/usbcamdi.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/usbcamdi.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -74,23 +74,23 @@
USBCAMD_CamControlFlag_EnableDeviceEvents = 8
} USBCAMD_CamControlFlags;
-typedef NTSTATUS DDKAPI
-(*PCAM_ALLOCATE_BW_ROUTINE)(
+typedef NTSTATUS
+(DDKAPI *PCAM_ALLOCATE_BW_ROUTINE)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PULONG RawFrameLength,
PVOID Format);
-typedef NTSTATUS DDKAPI
-(*PCAM_ALLOCATE_BW_ROUTINE_EX)(
+typedef NTSTATUS
+(DDKAPI *PCAM_ALLOCATE_BW_ROUTINE_EX)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PULONG RawFrameLength,
PVOID Format,
ULONG StreamNumber);
-typedef NTSTATUS DDKAPI
-(*PCAM_CONFIGURE_ROUTINE)(
+typedef NTSTATUS
+(DDKAPI *PCAM_CONFIGURE_ROUTINE)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PUSBD_INTERFACE_INFORMATION Interface,
@@ -98,8 +98,8 @@
PLONG DataPipeIndex,
PLONG SyncPipeIndex);
-typedef NTSTATUS DDKAPI
-(*PCAM_CONFIGURE_ROUTINE_EX)(
+typedef NTSTATUS
+(DDKAPI *PCAM_CONFIGURE_ROUTINE_EX)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PUSBD_INTERFACE_INFORMATION Interface,
@@ -108,36 +108,36 @@
PUSBCAMD_Pipe_Config_Descriptor PipeConfig,
PUSB_DEVICE_DESCRIPTOR DeviceDescriptor);
-typedef NTSTATUS DDKAPI
-(*PCAM_FREE_BW_ROUTINE)(
- PDEVICE_OBJECT BusDeviceObject,
- PVOID DeviceContext);
-
-typedef NTSTATUS DDKAPI
-(*PCAM_FREE_BW_ROUTINE_EX)(
- PDEVICE_OBJECT BusDeviceObject,
- PVOID DeviceContext,
- ULONG StreamNumber);
-
-typedef NTSTATUS DDKAPI
-(*PCAM_INITIALIZE_ROUTINE)(
- PDEVICE_OBJECT BusDeviceObject,
- PVOID DeviceContext);
-
-typedef VOID DDKAPI
-(*PCAM_NEW_FRAME_ROUTINE)(
+typedef NTSTATUS
+(DDKAPI *PCAM_FREE_BW_ROUTINE)(
+ PDEVICE_OBJECT BusDeviceObject,
+ PVOID DeviceContext);
+
+typedef NTSTATUS
+(DDKAPI *PCAM_FREE_BW_ROUTINE_EX)(
+ PDEVICE_OBJECT BusDeviceObject,
+ PVOID DeviceContext,
+ ULONG StreamNumber);
+
+typedef NTSTATUS
+(DDKAPI *PCAM_INITIALIZE_ROUTINE)(
+ PDEVICE_OBJECT BusDeviceObject,
+ PVOID DeviceContext);
+
+typedef VOID
+(DDKAPI *PCAM_NEW_FRAME_ROUTINE)(
PVOID DeviceContext,
PVOID FrameContext);
-typedef VOID DDKAPI
-(*PCAM_NEW_FRAME_ROUTINE_EX)(
+typedef VOID
+(DDKAPI *PCAM_NEW_FRAME_ROUTINE_EX)(
PVOID DeviceContext,
PVOID FrameContext,
ULONG StreamNumber,
PULONG FrameLength);
-typedef NTSTATUS DDKAPI
-(*PCAM_PROCESS_RAW_FRAME_ROUTINE)(
+typedef NTSTATUS
+(DDKAPI *PCAM_PROCESS_RAW_FRAME_ROUTINE)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PVOID FrameContext,
@@ -148,8 +148,8 @@
ULONG NumberOfPackets,
PULONG BytesReturned);
-typedef NTSTATUS DDKAPI
-(*PCAM_PROCESS_RAW_FRAME_ROUTINE_EX)(
+typedef NTSTATUS
+(DDKAPI *PCAM_PROCESS_RAW_FRAME_ROUTINE_EX)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PVOID FrameContext,
@@ -162,8 +162,8 @@
ULONG ActualRawFrameLength,
ULONG StreamNumber);
-typedef ULONG DDKAPI
-(*PCAM_PROCESS_PACKET_ROUTINE)(
+typedef ULONG
+(DDKAPI *PCAM_PROCESS_PACKET_ROUTINE)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PVOID CurrentFrameContext,
@@ -174,8 +174,8 @@
PBOOLEAN FrameComplete,
PBOOLEAN NextFrameIsStill);
-typedef ULONG DDKAPI
-(*PCAM_PROCESS_PACKET_ROUTINE_EX)(
+typedef ULONG
+(DDKAPI *PCAM_PROCESS_PACKET_ROUTINE_EX)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
PVOID CurrentFrameContext,
@@ -187,29 +187,29 @@
PULONG PacketFlag,
PULONG ValidDataOffset);
-typedef NTSTATUS DDKAPI
-(*PCAM_STATE_ROUTINE)(
- PDEVICE_OBJECT BusDeviceObject,
- PVOID DeviceContext);
-
-typedef NTSTATUS DDKAPI
-(*PCAM_START_CAPTURE_ROUTINE)(
- PDEVICE_OBJECT BusDeviceObject,
- PVOID DeviceContext);
-
-typedef NTSTATUS DDKAPI
-(*PCAM_START_CAPTURE_ROUTINE_EX)(
- PDEVICE_OBJECT BusDeviceObject,
- PVOID DeviceContext,
- ULONG StreamNumber);
-
-typedef NTSTATUS DDKAPI
-(*PCAM_STOP_CAPTURE_ROUTINE)(
- PDEVICE_OBJECT BusDeviceObject,
- PVOID DeviceContext);
-
-typedef NTSTATUS DDKAPI
-(*PCAM_STOP_CAPTURE_ROUTINE_EX)(
+typedef NTSTATUS
+(DDKAPI *PCAM_STATE_ROUTINE)(
+ PDEVICE_OBJECT BusDeviceObject,
+ PVOID DeviceContext);
+
+typedef NTSTATUS
+(DDKAPI *PCAM_START_CAPTURE_ROUTINE)(
+ PDEVICE_OBJECT BusDeviceObject,
+ PVOID DeviceContext);
+
+typedef NTSTATUS
+(DDKAPI *PCAM_START_CAPTURE_ROUTINE_EX)(
+ PDEVICE_OBJECT BusDeviceObject,
+ PVOID DeviceContext,
+ ULONG StreamNumber);
+
+typedef NTSTATUS
+(DDKAPI *PCAM_STOP_CAPTURE_ROUTINE)(
+ PDEVICE_OBJECT BusDeviceObject,
+ PVOID DeviceContext);
+
+typedef NTSTATUS
+(DDKAPI *PCAM_STOP_CAPTURE_ROUTINE_EX)(
PDEVICE_OBJECT BusDeviceObject,
PVOID DeviceContext,
ULONG StreamNumber);
@@ -255,14 +255,14 @@
IN ULONG Version,
IN ULONG CamControlFlag);
-typedef VOID DDKAPI
-(*PCOMMAND_COMPLETE_FUNCTION)(
+typedef VOID
+(DDKAPI *PCOMMAND_COMPLETE_FUNCTION)(
PVOID DeviceContext,
PVOID CommandContext,
NTSTATUS NtStatus);
-typedef NTSTATUS DDKAPI
-(*PFNUSBCAMD_BulkReadWrite)(
+typedef NTSTATUS
+(DDKAPI *PFNUSBCAMD_BulkReadWrite)(
IN PVOID DeviceContext,
IN USHORT PipeIndex,
IN PVOID Buffer,
@@ -270,23 +270,23 @@
IN PCOMMAND_COMPLETE_FUNCTION CommandComplete,
IN PVOID CommandContext);
-typedef NTSTATUS DDKAPI
-(*PFNUSBCAMD_SetIsoPipeState)(
+typedef NTSTATUS
+(DDKAPI *PFNUSBCAMD_SetIsoPipeState)(
IN PVOID DeviceContext,
IN ULONG PipeStateFlags);
-typedef NTSTATUS DDKAPI
-(*PFNUSBCAMD_CancelBulkReadWrite)(
+typedef NTSTATUS
+(DDKAPI *PFNUSBCAMD_CancelBulkReadWrite)(
IN PVOID DeviceContext,
IN ULONG PipeIndex);
-typedef NTSTATUS DDKAPI
-(*PFNUSBCAMD_SetVideoFormat)(
+typedef NTSTATUS
+(DDKAPI *PFNUSBCAMD_SetVideoFormat)(
IN PVOID DeviceContext,
IN PHW_STREAM_REQUEST_BLOCK pSrb);
-typedef NTSTATUS DDKAPI
-(*PFNUSBCAMD_WaitOnDeviceEvent)(
+typedef NTSTATUS
+(DDKAPI *PFNUSBCAMD_WaitOnDeviceEvent)(
IN PVOID DeviceContext,
IN ULONG PipeIndex,
IN PVOID Buffer,
@@ -318,8 +318,8 @@
IN PCOMMAND_COMPLETE_FUNCTION CommandComplete,
IN PVOID CommandContext);
-typedef VOID DDKAPI
-(*PADAPTER_RECEIVE_PACKET_ROUTINE)(
+typedef VOID
+(DDKAPI *PADAPTER_RECEIVE_PACKET_ROUTINE)(
IN PHW_STREAM_REQUEST_BLOCK Srb);
USBCAMAPI
@@ -360,8 +360,8 @@
PFNUSBCAMD_CancelBulkReadWrite USBCAMD_CancelBulkReadWrite;
} USBCAMD_INTERFACE, *PUSBCAMD_INTERFACE;
-typedef VOID DDKAPI
-(*PSTREAM_RECEIVE_PACKET)(
+typedef VOID
+(DDKAPI *PSTREAM_RECEIVE_PACKET)(
IN PVOID Srb,
IN PVOID DeviceContext,
IN PBOOLEAN Completed);
Modified: trunk/reactos/include/ddk/video.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/video.h?rev=42…
==============================================================================
--- trunk/reactos/include/ddk/video.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/video.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -76,7 +76,7 @@
} HW_DMA_RETURN, *PHW_DMA_RETURN;
typedef HW_DMA_RETURN
-(*PVIDEO_HW_START_DMA)(
+(DDKAPI *PVIDEO_HW_START_DMA)(
PVOID HwDeviceExtension,
PDMA pDma);
Modified: trunk/reactos/include/ddk/winddk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddk.h?rev=4…
==============================================================================
--- trunk/reactos/include/ddk/winddk.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/winddk.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -4948,7 +4948,7 @@
} PHYSICAL_MEMORY_RANGE, *PPHYSICAL_MEMORY_RANGE;
typedef ULONG_PTR
-(*PDRIVER_VERIFIER_THUNK_ROUTINE)(
+(NTAPI *PDRIVER_VERIFIER_THUNK_ROUTINE)(
IN PVOID Context);
typedef struct _DRIVER_VERIFIER_THUNK_PAIRS {
Modified: trunk/reactos/include/ndk/ldrtypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/ldrtypes.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/ldrtypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/ldrtypes.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -156,7 +156,7 @@
} LDR_DLL_LOADED_NOTIFICATION_DATA, *PLDR_DLL_LOADED_NOTIFICATION_DATA;
typedef VOID
-(*PLDR_DLL_LOADED_NOTIFICATION_CALLBACK)(
+(NTAPI *PLDR_DLL_LOADED_NOTIFICATION_CALLBACK)(
IN BOOLEAN Type,
IN struct _LDR_DLL_LOADED_NOTIFICATION_DATA *Data
);
Modified: trunk/reactos/include/ndk/rtltypes.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/rtltypes.h?rev…
==============================================================================
--- trunk/reactos/include/ndk/rtltypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/rtltypes.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -435,7 +435,7 @@
// Callback for RTL Heap Enumeration
//
typedef NTSTATUS
-(*PHEAP_ENUMERATION_ROUTINE)(
+(NTAPI *PHEAP_ENUMERATION_ROUTINE)(
IN PVOID HeapHandle,
IN PVOID UserParam
);
Modified: trunk/reactos/include/psdk/ntsecapi.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/ntsecapi.h?re…
==============================================================================
--- trunk/reactos/include/psdk/ntsecapi.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/ntsecapi.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -728,10 +728,10 @@
TRUSTED_INFORMATION_CLASS,PVOID);
NTSTATUS NTAPI LsaStorePrivateData(LSA_HANDLE,PLSA_UNICODE_STRING,
PLSA_UNICODE_STRING);
-typedef NTSTATUS (*PSAM_PASSWORD_NOTIFICATION_ROUTINE)(PUNICODE_STRING,
+typedef NTSTATUS (NTAPI *PSAM_PASSWORD_NOTIFICATION_ROUTINE)(PUNICODE_STRING,
ULONG,PUNICODE_STRING);
-typedef BOOLEAN (*PSAM_INIT_NOTIFICATION_ROUTINE)(void);
-typedef BOOLEAN (*PSAM_PASSWORD_FILTER_ROUTINE)(PUNICODE_STRING,PUNICODE_STRING,
+typedef BOOLEAN (NTAPI *PSAM_INIT_NOTIFICATION_ROUTINE)(void);
+typedef BOOLEAN (NTAPI *PSAM_PASSWORD_FILTER_ROUTINE)(PUNICODE_STRING,PUNICODE_STRING,
PUNICODE_STRING,BOOLEAN);
#ifdef __cplusplus
}
Modified: trunk/reactos/include/psdk/psapi.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/psapi.h?rev=4…
==============================================================================
--- trunk/reactos/include/psdk/psapi.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/psapi.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -72,8 +72,8 @@
SIZE_T PeakUsage;
} ENUM_PAGE_FILE_INFORMATION, *PENUM_PAGE_FILE_INFORMATION;
-typedef BOOL (*PENUM_PAGE_FILE_CALLBACKA)(LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCSTR);
-typedef BOOL (*PENUM_PAGE_FILE_CALLBACKW)(LPVOID, PENUM_PAGE_FILE_INFORMATION, LPCWSTR);
+typedef BOOL (CALLBACK *PENUM_PAGE_FILE_CALLBACKA)(LPVOID, PENUM_PAGE_FILE_INFORMATION,
LPCSTR);
+typedef BOOL (CALLBACK *PENUM_PAGE_FILE_CALLBACKW)(LPVOID, PENUM_PAGE_FILE_INFORMATION,
LPCWSTR);
/* Grouped by application,not in alphabetical order. */
BOOL WINAPI EnumProcesses(DWORD *,DWORD,DWORD *);
Modified: trunk/reactos/include/psdk/wintrust.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/wintrust.h?re…
==============================================================================
--- trunk/reactos/include/psdk/wintrust.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/wintrust.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -371,7 +371,7 @@
#define CPD_UISTATE_MODE_ALLOW 0x00000002
#define CPD_UISTATE_MODE_MASK 0x00000003
-typedef BOOL (*PFN_PROVUI_CALL)(HWND hWndSecurityDialog,
+typedef BOOL (CALLBACK *PFN_PROVUI_CALL)(HWND hWndSecurityDialog,
struct _CRYPT_PROVIDER_DATA *pProvData);
typedef struct _CRYPT_PROVUI_FUNCS {
Modified: trunk/reactos/include/psdk/winwlx.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winwlx.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/winwlx.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winwlx.h [iso-8859-1] Thu Aug 20 14:09:16 2009
@@ -633,7 +633,7 @@
/* non-GINA notification DLLs*/
typedef
-DWORD (*PFNMSGECALLBACK)(
+DWORD (CALLBACK *PFNMSGECALLBACK)(
BOOL bVerbose,
LPWSTR lpMessage);