- Get rid of some more assumptions that the default calling convention is stdcall
authorStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 20 Aug 2009 14:45:32 +0000 (14:45 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 20 Aug 2009 14:45:32 +0000 (14:45 +0000)
svn path=/trunk/; revision=42808

reactos/include/ddk/punknown.h
reactos/include/ddk/unknown.h
reactos/include/reactos/subsys/csr/server.h

index 8bea925..9300a3a 100644 (file)
@@ -80,7 +80,7 @@ typedef IUnknown *PUNKNOWN;
     Constructor callback definition\r
 */\r
 \r
-typedef HRESULT (*PFNCREATEINSTANCE)(\r
+typedef HRESULT (NTAPI *PFNCREATEINSTANCE)(\r
     OUT PUNKNOWN* Unknown,\r
     IN  REFCLSID ClassId,\r
     IN  PUNKNOWN OuterUnknown,\r
index fd00a64..bdeb26d 100644 (file)
@@ -44,7 +44,7 @@ DECLARE_INTERFACE(IUnknown)
 typedef IUnknown *PUNKNOWN;
 typedef
 HRESULT
-(*PFNCREATEINSTANCE)
+(NTAPI *PFNCREATEINSTANCE)
 (
   OUT PUNKNOWN *  Unknown,
   IN  REFCLSID    ClassId,
index 2e0ae7f..ca63a6d 100644 (file)
@@ -107,7 +107,7 @@ typedef enum _CSR_DEBUG_FLAGS
 /* FUNCTION TYPES ************************************************************/
 typedef
 NTSTATUS
-(*PCSR_CONNECT_CALLBACK)(
+(NTAPI *PCSR_CONNECT_CALLBACK)(
     IN PCSR_PROCESS CsrProcess,
     IN OUT PVOID ConnectionInfo,
     IN OUT PULONG ConnectionInfoLength
@@ -115,25 +115,25 @@ NTSTATUS
 
 typedef
 VOID
-(*PCSR_DISCONNECT_CALLBACK)(IN PCSR_PROCESS CsrProcess);
+(NTAPI *PCSR_DISCONNECT_CALLBACK)(IN PCSR_PROCESS CsrProcess);
 
 typedef
 NTSTATUS
-(*PCSR_NEWPROCESS_CALLBACK)(
+(NTAPI *PCSR_NEWPROCESS_CALLBACK)(
     IN PCSR_PROCESS Parent,
     IN PCSR_PROCESS CsrProcess
 );
 
 typedef
 VOID
-(*PCSR_HARDERROR_CALLBACK)(
+(NTAPI *PCSR_HARDERROR_CALLBACK)(
     IN PCSR_THREAD CsrThread,
     IN PHARDERROR_MSG HardErrorMessage
 );
 
 typedef
 ULONG
-(*PCSR_SHUTDOWNPROCESS_CALLBACK)(
+(NTAPI *PCSR_SHUTDOWNPROCESS_CALLBACK)(
     IN PCSR_PROCESS CsrProcess,
     IN ULONG Flags,
     IN BOOLEAN FirstPhase