Fixed callback calling conventions (part 1).

svn path=/trunk/; revision=2200
This commit is contained in:
Eric Kohl 2001-08-26 17:30:21 +00:00
parent a9a6bae87b
commit 20f65a3fb9
32 changed files with 173 additions and 164 deletions

View file

@ -1,6 +1,6 @@
#ifndef _INCLUDE_DDK_OBTYPES_H #ifndef _INCLUDE_DDK_OBTYPES_H
#define _INCLUDE_DDK_OBTYPES_H #define _INCLUDE_DDK_OBTYPES_H
/* $Id: obtypes.h,v 1.12 2001/05/05 09:30:28 ekohl Exp $ */ /* $Id: obtypes.h,v 1.13 2001/08/26 17:23:39 ekohl Exp $ */
struct _DIRECTORY_OBJECT; struct _DIRECTORY_OBJECT;
struct _OBJECT_ATTRIBUTES; struct _OBJECT_ATTRIBUTES;
@ -62,23 +62,24 @@ typedef struct _OBJECT_TYPE
* PURPOSE: Dumps the object * PURPOSE: Dumps the object
* NOTE: To be defined * NOTE: To be defined
*/ */
VOID (*Dump)(VOID); VOID STDCALL (*Dump)(VOID);
/* /*
* PURPOSE: Opens the object * PURPOSE: Opens the object
* NOTE: To be defined * NOTE: To be defined
*/ */
VOID (*Open)(VOID); VOID STDCALL (*Open)(VOID);
/* /*
* PURPOSE: Called to close an object if OkayToClose returns true * PURPOSE: Called to close an object if OkayToClose returns true
*/ */
VOID (*Close)(PVOID ObjectBody, ULONG HandleCount); VOID STDCALL (*Close)(PVOID ObjectBody,
ULONG HandleCount);
/* /*
* PURPOSE: Called to delete an object when the last reference is removed * PURPOSE: Called to delete an object when the last reference is removed
*/ */
VOID (*Delete)(PVOID ObjectBody); VOID STDCALL (*Delete)(PVOID ObjectBody);
/* /*
* PURPOSE: Called when an open attempts to open a file apparently * PURPOSE: Called when an open attempts to open a file apparently
@ -88,7 +89,7 @@ typedef struct _OBJECT_TYPE
* STATUS_UNSUCCESSFUL NextObject not found * STATUS_UNSUCCESSFUL NextObject not found
* STATUS_REPARSE Path changed, restart parsing the path * STATUS_REPARSE Path changed, restart parsing the path
*/ */
NTSTATUS (*Parse)(PVOID ParsedObject, NTSTATUS STDCALL (*Parse)(PVOID ParsedObject,
PVOID *NextObject, PVOID *NextObject,
PUNICODE_STRING FullPath, PUNICODE_STRING FullPath,
PWSTR *Path, PWSTR *Path,
@ -97,21 +98,21 @@ typedef struct _OBJECT_TYPE
/* /*
*/ */
NTSTATUS (*Security)(PVOID Object, NTSTATUS STDCALL (*Security)(PVOID Object,
ULONG InfoClass, ULONG InfoClass,
PVOID Info, PVOID Info,
PULONG InfoLength); PULONG InfoLength);
/* /*
*/ */
VOID (*QueryName)(VOID); VOID STDCALL (*QueryName)(VOID);
/* /*
* PURPOSE: Called when a process asks to close the object * PURPOSE: Called when a process asks to close the object
*/ */
VOID (*OkayToClose)(VOID); VOID STDCALL (*OkayToClose)(VOID);
NTSTATUS (*Create)(PVOID ObjectBody, NTSTATUS STDCALL (*Create)(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes); struct _OBJECT_ATTRIBUTES* ObjectAttributes);

View file

@ -148,15 +148,13 @@ typedef enum _IO_NOTIFICATION_EVENT_CATEGORY {
} IO_NOTIFICATION_EVENT_CATEGORY; } IO_NOTIFICATION_EVENT_CATEGORY;
// CallbackRoutine for IoRegisterPlugPlayNotification // CallbackRoutine for IoRegisterPlugPlayNotification
typedef typedef NTSTATUS STDCALL
NTSTATUS
(*PDRIVER_NOTIFICATION_CALLBACK_ROUTINE)( (*PDRIVER_NOTIFICATION_CALLBACK_ROUTINE)(
IN PVOID NotificationStructure, IN PVOID NotificationStructure,
IN PVOID Context); IN PVOID Context);
// Callback for IoReportTargetDeviceChangeAsynchronous // Callback for IoReportTargetDeviceChangeAsynchronous
typedef typedef VOID STDCALL
VOID
(*PDEVICE_CHANGE_COMPLETE_CALLBACK)( (*PDEVICE_CHANGE_COMPLETE_CALLBACK)(
IN PVOID Context); IN PVOID Context);

View file

@ -59,8 +59,7 @@ typedef enum _POWER_STATE_TYPE {
} POWER_STATE_TYPE, *PPOWER_STATE_TYPE; } POWER_STATE_TYPE, *PPOWER_STATE_TYPE;
// CompletionFunction for PoRequestPowerIrp // CompletionFunction for PoRequestPowerIrp
typedef typedef VOID STDCALL
VOID
(*PREQUEST_POWER_COMPLETE) ( (*PREQUEST_POWER_COMPLETE) (
IN struct _DEVICE_OBJECT *DeviceObject, IN struct _DEVICE_OBJECT *DeviceObject,
IN UCHAR MinorFunction, IN UCHAR MinorFunction,
@ -75,8 +74,8 @@ typedef struct _POWER_SEQUENCE {
ULONG SequenceD3; ULONG SequenceD3;
} POWER_SEQUENCE, *PPOWER_SEQUENCE; } POWER_SEQUENCE, *PPOWER_SEQUENCE;
typedef VOID (*PINTERFACE_REFERENCE)(PVOID Context); typedef VOID STDCALL (*PINTERFACE_REFERENCE)(PVOID Context);
typedef VOID (*PINTERFACE_DEREFERENCE)(PVOID Context); typedef VOID STDCALL (*PINTERFACE_DEREFERENCE)(PVOID Context);
typedef struct _INTERFACE { typedef struct _INTERFACE {
USHORT Size; USHORT Size;

View file

@ -18,7 +18,7 @@ struct _KPROCESS;
struct _ETHREAD; struct _ETHREAD;
struct _KTHREAD; struct _KTHREAD;
typedef NTSTATUS (*PKSTART_ROUTINE)(PVOID StartContext); typedef NTSTATUS STDCALL (*PKSTART_ROUTINE)(PVOID StartContext);
typedef struct _STACK_INFORMATION typedef struct _STACK_INFORMATION
{ {

View file

@ -1,7 +1,7 @@
#include <ntos/kdbgsyms.h> #include <ntos/kdbgsyms.h>
#include "../ntoskrnl/include/internal/config.h" #include "../ntoskrnl/include/internal/config.h"
typedef NTSTATUS (*PEPFUNC)(PPEB); typedef NTSTATUS STDCALL (*PEPFUNC)(PPEB);
typedef struct _LDR_MODULE typedef struct _LDR_MODULE
{ {

View file

@ -421,8 +421,7 @@ typedef struct _SMALL_RECT {
} SMALL_RECT, *PSMALL_RECT; } SMALL_RECT, *PSMALL_RECT;
typedef typedef VOID STDCALL
VOID
(*PTIMERAPCROUTINE)( (*PTIMERAPCROUTINE)(
LPVOID lpArgToCompletionRoutine, LPVOID lpArgToCompletionRoutine,
DWORD dwTimerLowValue, DWORD dwTimerLowValue,

View file

@ -157,18 +157,22 @@ typedef struct _KEY_OBJECT
} KEY_OBJECT, *PKEY_OBJECT; } KEY_OBJECT, *PKEY_OBJECT;
NTSTATUS CmiObjectParse(PVOID ParsedObject, NTSTATUS STDCALL
CmiObjectParse(PVOID ParsedObject,
PVOID *NextObject, PVOID *NextObject,
PUNICODE_STRING FullPath, PUNICODE_STRING FullPath,
PWSTR *Path, PWSTR *Path,
POBJECT_TYPE ObjectType, POBJECT_TYPE ObjectType,
ULONG Attribute); ULONG Attribute);
NTSTATUS CmiObjectCreate(PVOID ObjectBody, NTSTATUS STDCALL
CmiObjectCreate(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes); struct _OBJECT_ATTRIBUTES* ObjectAttributes);
void CmiObjectDelete(PVOID DeletedObject);
VOID STDCALL
CmiObjectDelete(PVOID DeletedObject);
VOID CmiAddKeyToList(PKEY_OBJECT ParentKey,PKEY_OBJECT NewKey); VOID CmiAddKeyToList(PKEY_OBJECT ParentKey,PKEY_OBJECT NewKey);
NTSTATUS CmiRemoveKeyFromList(PKEY_OBJECT NewKey); NTSTATUS CmiRemoveKeyFromList(PKEY_OBJECT NewKey);

View file

@ -11,7 +11,8 @@
extern POBJECT_TYPE CmiKeyType; extern POBJECT_TYPE CmiKeyType;
extern KSPIN_LOCK CmiKeyListLock; extern KSPIN_LOCK CmiKeyListLock;
NTSTATUS CmiObjectParse(PVOID ParsedObject, NTSTATUS STDCALL
CmiObjectParse(PVOID ParsedObject,
PVOID *NextObject, PVOID *NextObject,
PUNICODE_STRING FullPath, PUNICODE_STRING FullPath,
PWSTR *Path, PWSTR *Path,
@ -106,7 +107,8 @@ DPRINT("CmiObjectParse %s\n",FoundObject->Name);
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
NTSTATUS CmiObjectCreate(PVOID ObjectBody, NTSTATUS STDCALL
CmiObjectCreate(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes) struct _OBJECT_ATTRIBUTES* ObjectAttributes)
@ -132,7 +134,7 @@ NTSTATUS CmiObjectCreate(PVOID ObjectBody,
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
void VOID STDCALL
CmiObjectDelete(PVOID DeletedObject) CmiObjectDelete(PVOID DeletedObject)
{ {
PKEY_OBJECT KeyObject; PKEY_OBJECT KeyObject;

View file

@ -52,9 +52,8 @@ static GENERIC_MAPPING ExpDesktopMapping = {
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/
NTSTATUS NTSTATUS STDCALL
ExpWinStaObjectCreate( ExpWinStaObjectCreate(PVOID ObjectBody,
PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes) struct _OBJECT_ATTRIBUTES* ObjectAttributes)
@ -121,9 +120,8 @@ ExpWinStaObjectCreate(
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
VOID VOID STDCALL
ExpWinStaObjectDelete( ExpWinStaObjectDelete(PVOID DeletedObject)
PVOID DeletedObject)
{ {
PWINSTATION_OBJECT WinSta = (PWINSTATION_OBJECT)DeletedObject; PWINSTATION_OBJECT WinSta = (PWINSTATION_OBJECT)DeletedObject;
@ -135,8 +133,7 @@ ExpWinStaObjectDelete(
} }
PVOID PVOID
ExpWinStaObjectFind( ExpWinStaObjectFind(PWINSTATION_OBJECT WinStaObject,
PWINSTATION_OBJECT WinStaObject,
PWSTR Name, PWSTR Name,
ULONG Attributes) ULONG Attributes)
{ {
@ -179,9 +176,8 @@ ExpWinStaObjectFind(
return NULL; return NULL;
} }
NTSTATUS NTSTATUS STDCALL
ExpWinStaObjectParse( ExpWinStaObjectParse(PVOID Object,
PVOID Object,
PVOID *NextObject, PVOID *NextObject,
PUNICODE_STRING FullPath, PUNICODE_STRING FullPath,
PWSTR *Path, PWSTR *Path,
@ -226,9 +222,8 @@ ExpWinStaObjectParse(
return Status; return Status;
} }
NTSTATUS NTSTATUS STDCALL
ExpDesktopObjectCreate( ExpDesktopObjectCreate(PVOID ObjectBody,
PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes) struct _OBJECT_ATTRIBUTES* ObjectAttributes)
@ -263,9 +258,8 @@ ExpDesktopObjectCreate(
return RtlCreateUnicodeString(&Desktop->Name, UnicodeString.Buffer); return RtlCreateUnicodeString(&Desktop->Name, UnicodeString.Buffer);
} }
VOID VOID STDCALL
ExpDesktopObjectDelete( ExpDesktopObjectDelete(PVOID DeletedObject)
PVOID DeletedObject)
{ {
PDESKTOP_OBJECT Desktop = (PDESKTOP_OBJECT)DeletedObject; PDESKTOP_OBJECT Desktop = (PDESKTOP_OBJECT)DeletedObject;
KIRQL OldIrql; KIRQL OldIrql;

View file

@ -1,4 +1,4 @@
/* $Id: work.c,v 1.10 2001/06/04 11:26:11 chorns Exp $ /* $Id: work.c,v 1.11 2001/08/26 17:26:23 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -60,7 +60,8 @@ WORK_QUEUE EiHyperCriticalWorkQueue;
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/
static NTSTATUS ExWorkerThreadEntryPoint(PVOID context) static NTSTATUS STDCALL
ExWorkerThreadEntryPoint(PVOID context)
/* /*
* FUNCTION: Entry point for a worker thread * FUNCTION: Entry point for a worker thread
* ARGUMENTS: * ARGUMENTS:

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: io.h,v 1.11 2001/08/22 03:53:52 rex Exp $ /* $Id: io.h,v 1.12 2001/08/26 17:25:29 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -133,11 +133,13 @@ PIRP IoBuildFilesystemControlRequest(ULONG MinorFunction,
PDEVICE_OBJECT DeviceToMount); PDEVICE_OBJECT DeviceToMount);
VOID IoSecondStageCompletion(PIRP Irp, CCHAR PriorityBoost); VOID IoSecondStageCompletion(PIRP Irp, CCHAR PriorityBoost);
NTSTATUS IopCreateFile (PVOID ObjectBody, NTSTATUS STDCALL
IopCreateFile(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes); POBJECT_ATTRIBUTES ObjectAttributes);
NTSTATUS IopCreateDevice(PVOID ObjectBody, NTSTATUS STDCALL
IopCreateDevice(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes); POBJECT_ATTRIBUTES ObjectAttributes);

View file

@ -60,12 +60,12 @@ typedef struct _QUEUEDMESSAGE
/* Code in ntoskrnl/lpc/close.h */ /* Code in ntoskrnl/lpc/close.h */
VOID VOID STDCALL
NiClosePort ( NiClosePort (
PVOID ObjectBody, PVOID ObjectBody,
ULONG HandleCount ULONG HandleCount
); );
VOID VOID STDCALL
NiDeletePort ( NiDeletePort (
IN PVOID ObjectBody IN PVOID ObjectBody
); );
@ -98,7 +98,7 @@ EiDequeueMessagePort (
/* Code in ntoskrnl/lpc/create.c */ /* Code in ntoskrnl/lpc/create.c */
NTSTATUS NTSTATUS STDCALL
NiCreatePort ( NiCreatePort (
PVOID ObjectBody, PVOID ObjectBody,
PVOID Parent, PVOID Parent,

View file

@ -499,8 +499,8 @@ ULONG PsUnfreezeThread(PETHREAD Thread, PNTSTATUS WaitStatus);
ULONG PsFreezeThread(PETHREAD Thread, PNTSTATUS WaitStatus, ULONG PsFreezeThread(PETHREAD Thread, PNTSTATUS WaitStatus,
UCHAR Alertable, ULONG WaitMode); UCHAR Alertable, ULONG WaitMode);
VOID PiInitApcManagement(VOID); VOID PiInitApcManagement(VOID);
VOID PiDeleteThread(PVOID ObjectBody); VOID STDCALL PiDeleteThread(PVOID ObjectBody);
VOID PiCloseThread(PVOID ObjectBody, ULONG HandleCount); VOID STDCALL PiCloseThread(PVOID ObjectBody, ULONG HandleCount);
VOID PsReapThreads(VOID); VOID PsReapThreads(VOID);
NTSTATUS NTSTATUS
PsInitializeThread(HANDLE ProcessHandle, PsInitializeThread(HANDLE ProcessHandle,
@ -554,7 +554,7 @@ VOID HalTaskSwitch(PKTHREAD thread);
NTSTATUS NTSTATUS
Ke386InitThreadWithContext(PKTHREAD Thread, PCONTEXT Context); Ke386InitThreadWithContext(PKTHREAD Thread, PCONTEXT Context);
NTSTATUS HalReleaseTask(PETHREAD Thread); NTSTATUS HalReleaseTask(PETHREAD Thread);
VOID PiDeleteProcess(PVOID ObjectBody); VOID STDCALL PiDeleteProcess(PVOID ObjectBody);
VOID PsReapThreads(VOID); VOID PsReapThreads(VOID);
VOID PsUnfreezeOtherThread(PETHREAD Thread); VOID PsUnfreezeOtherThread(PETHREAD Thread);
VOID PsFreezeOtherThread(PETHREAD Thread); VOID PsFreezeOtherThread(PETHREAD Thread);
@ -572,7 +572,7 @@ VOID
PsApplicationProcessorInit(VOID); PsApplicationProcessorInit(VOID);
VOID VOID
PsPrepareForApplicationProcessorInit(ULONG Id); PsPrepareForApplicationProcessorInit(ULONG Id);
NTSTATUS NTSTATUS STDCALL
PsIdleThreadMain(PVOID Context); PsIdleThreadMain(PVOID Context);
#endif /* ASSEMBLER */ #endif /* ASSEMBLER */

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.46 2001/07/04 20:40:21 chorns Exp $ /* $Id: create.c,v 1.47 2001/08/26 17:27:00 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -61,7 +61,7 @@ NtDeleteFile(IN POBJECT_ATTRIBUTES ObjectAttributes)
* REVISIONS * REVISIONS
* *
*/ */
NTSTATUS NTSTATUS STDCALL
IopCreateFile(PVOID ObjectBody, IopCreateFile(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,

View file

@ -1,4 +1,4 @@
/* $Id: device.c,v 1.30 2001/08/22 03:53:52 rex Exp $ /* $Id: device.c,v 1.31 2001/08/26 17:27:00 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -496,7 +496,7 @@ IoAttachDevice(PDEVICE_OBJECT SourceDevice,
UNIMPLEMENTED; UNIMPLEMENTED;
} }
NTSTATUS NTSTATUS STDCALL
IopCreateDevice(PVOID ObjectBody, IopCreateDevice(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,

View file

@ -1,4 +1,4 @@
/* $Id: iomgr.c,v 1.19 2001/05/01 23:08:19 chorns Exp $ /* $Id: iomgr.c,v 1.20 2001/08/26 17:27:00 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -43,7 +43,9 @@ static GENERIC_MAPPING IopFileMapping = {FILE_GENERIC_READ,
/* FUNCTIONS ****************************************************************/ /* FUNCTIONS ****************************************************************/
VOID IopCloseFile(PVOID ObjectBody, ULONG HandleCount) VOID STDCALL
IopCloseFile(PVOID ObjectBody,
ULONG HandleCount)
{ {
PFILE_OBJECT FileObject = (PFILE_OBJECT)ObjectBody; PFILE_OBJECT FileObject = (PFILE_OBJECT)ObjectBody;
PIRP Irp; PIRP Irp;
@ -75,7 +77,8 @@ VOID IopCloseFile(PVOID ObjectBody, ULONG HandleCount)
Status = IoCallDriver(FileObject->DeviceObject, Irp); Status = IoCallDriver(FileObject->DeviceObject, Irp);
} }
VOID IopDeleteFile(PVOID ObjectBody) VOID STDCALL
IopDeleteFile(PVOID ObjectBody)
{ {
PFILE_OBJECT FileObject = (PFILE_OBJECT)ObjectBody; PFILE_OBJECT FileObject = (PFILE_OBJECT)ObjectBody;
PIRP Irp; PIRP Irp;

View file

@ -1,4 +1,4 @@
/* $Id: symlink.c,v 1.21 2001/06/16 14:07:30 ekohl Exp $ /* $Id: symlink.c,v 1.22 2001/08/26 17:27:00 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -56,7 +56,7 @@ static GENERIC_MAPPING IopSymbolicLinkMapping = {
* *
* REVISIONS * REVISIONS
*/ */
NTSTATUS NTSTATUS STDCALL
IopCreateSymbolicLink(PVOID Object, IopCreateSymbolicLink(PVOID Object,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
@ -85,7 +85,7 @@ IopCreateSymbolicLink(PVOID Object,
* *
* REVISIONS * REVISIONS
*/ */
NTSTATUS NTSTATUS STDCALL
IopParseSymbolicLink(PVOID Object, IopParseSymbolicLink(PVOID Object,
PVOID * NextObject, PVOID * NextObject,
PUNICODE_STRING FullPath, PUNICODE_STRING FullPath,

View file

@ -1,4 +1,4 @@
/* $Id: loader.c,v 1.86 2001/08/22 03:53:52 rex Exp $ /* $Id: loader.c,v 1.87 2001/08/26 17:27:44 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -71,7 +71,8 @@ NTSTATUS LdrProcessModule(PVOID ModuleLoadBase,
PMODULE_OBJECT *ModuleObject); PMODULE_OBJECT *ModuleObject);
PVOID LdrGetExportAddress(PMODULE_OBJECT ModuleObject, char *Name, unsigned short Hint); PVOID LdrGetExportAddress(PMODULE_OBJECT ModuleObject, char *Name, unsigned short Hint);
static PMODULE_OBJECT LdrOpenModule(PUNICODE_STRING Filename); static PMODULE_OBJECT LdrOpenModule(PUNICODE_STRING Filename);
static NTSTATUS LdrCreateModule(PVOID ObjectBody, static NTSTATUS STDCALL
LdrCreateModule(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes); POBJECT_ATTRIBUTES ObjectAttributes);
@ -953,7 +954,7 @@ VOID LdrLoadAutoConfigDrivers (VOID)
} }
static NTSTATUS static NTSTATUS STDCALL
LdrCreateModule(PVOID ObjectBody, LdrCreateModule(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,

View file

@ -1,4 +1,4 @@
/* $Id: close.c,v 1.5 2001/06/23 19:13:33 phreak Exp $ /* $Id: close.c,v 1.6 2001/08/26 17:28:00 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -32,7 +32,7 @@
* REVISIONS * REVISIONS
* *
*/ */
VOID VOID STDCALL
NiClosePort (PVOID ObjectBody, ULONG HandleCount) NiClosePort (PVOID ObjectBody, ULONG HandleCount)
{ {
PEPORT Port = (PEPORT)ObjectBody; PEPORT Port = (PEPORT)ObjectBody;
@ -86,7 +86,7 @@ NiClosePort (PVOID ObjectBody, ULONG HandleCount)
* REVISIONS * REVISIONS
* *
*/ */
VOID VOID STDCALL
NiDeletePort (PVOID ObjectBody) NiDeletePort (PVOID ObjectBody)
{ {
// PEPORT Port = (PEPORT)ObjectBody; // PEPORT Port = (PEPORT)ObjectBody;

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.4 2001/06/16 14:08:57 ekohl Exp $ /* $Id: create.c,v 1.5 2001/08/26 17:28:00 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -59,7 +59,7 @@ NTSTATUS STDCALL VerifyCreateParameters (
} }
NTSTATUS NTSTATUS STDCALL
NiCreatePort ( NiCreatePort (
PVOID ObjectBody, PVOID ObjectBody,
PVOID Parent, PVOID Parent,

View file

@ -1,4 +1,4 @@
/* $Id: mpw.c,v 1.5 2001/03/16 18:11:23 dwelch Exp $ /* $Id: mpw.c,v 1.6 2001/08/26 17:29:09 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -88,7 +88,8 @@ VOID MmWritePagesInProcess(PEPROCESS Process)
MmUnlockAddressSpace(&Process->AddressSpace); MmUnlockAddressSpace(&Process->AddressSpace);
} }
NTSTATUS MmMpwThreadMain(PVOID Ignored) NTSTATUS STDCALL
MmMpwThreadMain(PVOID Ignored)
{ {
NTSTATUS Status; NTSTATUS Status;

View file

@ -1,4 +1,4 @@
/* $Id: pager.c,v 1.7 2001/03/16 18:11:23 dwelch Exp $ /* $Id: pager.c,v 1.8 2001/08/26 17:29:09 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -62,7 +62,8 @@ static VOID MmTryPageOutFromProcess(PEPROCESS Process)
MmUnlockAddressSpace(&Process->AddressSpace); MmUnlockAddressSpace(&Process->AddressSpace);
} }
static NTSTATUS MmPagerThreadMain(PVOID Ignored) static NTSTATUS STDCALL
MmPagerThreadMain(PVOID Ignored)
{ {
NTSTATUS Status; NTSTATUS Status;

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: section.c,v 1.59 2001/08/03 09:36:18 ei Exp $ /* $Id: section.c,v 1.60 2001/08/26 17:29:09 ekohl Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/mm/section.c * FILE: ntoskrnl/mm/section.c
@ -817,7 +817,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
return(0); return(0);
} }
VOID VOID STDCALL
MmpDeleteSection(PVOID ObjectBody) MmpDeleteSection(PVOID ObjectBody)
{ {
PSECTION_OBJECT Section = (PSECTION_OBJECT)ObjectBody; PSECTION_OBJECT Section = (PSECTION_OBJECT)ObjectBody;
@ -843,7 +843,7 @@ MmpDeleteSection(PVOID ObjectBody)
} }
} }
VOID VOID STDCALL
MmpCloseSection(PVOID ObjectBody, MmpCloseSection(PVOID ObjectBody,
ULONG HandleCount) ULONG HandleCount)
{ {
@ -852,7 +852,8 @@ MmpCloseSection(PVOID ObjectBody,
} }
NTSTATUS MmpCreateSection(PVOID ObjectBody, NTSTATUS STDCALL
MmpCreateSection(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes) POBJECT_ATTRIBUTES ObjectAttributes)

View file

@ -1,4 +1,4 @@
/* $Id: evtpair.c,v 1.8 2001/06/16 14:10:08 ekohl Exp $ /* $Id: evtpair.c,v 1.9 2001/08/26 17:29:36 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -32,7 +32,8 @@ static GENERIC_MAPPING ExEventPairMapping = {
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
NTSTATUS NtpCreateEventPair(PVOID ObjectBody, NTSTATUS STDCALL
NtpCreateEventPair(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes) POBJECT_ATTRIBUTES ObjectAttributes)

View file

@ -51,7 +51,7 @@ static GENERIC_MAPPING ExpEventMapping = {
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
NTSTATUS NTSTATUS STDCALL
NtpCreateEvent(PVOID ObjectBody, NtpCreateEvent(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,

View file

@ -1,4 +1,4 @@
/* $Id: ntsem.c,v 1.12 2001/06/16 14:10:08 ekohl Exp $ /* $Id: ntsem.c,v 1.13 2001/08/26 17:29:36 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -33,7 +33,8 @@ static GENERIC_MAPPING ExSemaphoreMapping = {
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
NTSTATUS NtpCreateSemaphore(PVOID ObjectBody, NTSTATUS STDCALL
NtpCreateSemaphore(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes) POBJECT_ATTRIBUTES ObjectAttributes)

View file

@ -1,4 +1,4 @@
/* $Id: nttimer.c,v 1.10 2001/06/16 14:10:08 ekohl Exp $ /* $Id: nttimer.c,v 1.11 2001/08/26 17:29:36 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -45,7 +45,7 @@ static GENERIC_MAPPING ExpTimerMapping = {
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
NTSTATUS NTSTATUS STDCALL
NtpCreateTimer(PVOID ObjectBody, NtpCreateTimer(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,

View file

@ -300,7 +300,7 @@ VOID KiRemoveProfile(PKPROFILE Profile)
KeReleaseSpinLock(&ProfileListLock, oldIrql); KeReleaseSpinLock(&ProfileListLock, oldIrql);
} }
VOID VOID STDCALL
KiDeleteProfile(PVOID ObjectBody) KiDeleteProfile(PVOID ObjectBody)
{ {
PKPROFILE Profile; PKPROFILE Profile;

View file

@ -1,4 +1,4 @@
/* $Id: namespc.c,v 1.25 2001/06/16 14:10:55 ekohl Exp $ /* $Id: namespc.c,v 1.26 2001/08/26 17:29:57 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -220,7 +220,7 @@ ObpFindEntryDirectory(PDIRECTORY_OBJECT DirectoryObject,
return(NULL); return(NULL);
} }
NTSTATUS NTSTATUS STDCALL
ObpParseDirectory(PVOID Object, ObpParseDirectory(PVOID Object,
PVOID * NextObject, PVOID * NextObject,
PUNICODE_STRING FullPath, PUNICODE_STRING FullPath,
@ -278,7 +278,7 @@ ObpParseDirectory(PVOID Object,
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
NTSTATUS NTSTATUS STDCALL
ObpCreateDirectory(PVOID ObjectBody, ObpCreateDirectory(PVOID ObjectBody,
PVOID Parent, PVOID Parent,
PWSTR RemainingPath, PWSTR RemainingPath,

View file

@ -1,4 +1,4 @@
/* $Id: create.c,v 1.38 2001/08/07 15:44:40 ekohl Exp $ /* $Id: create.c,v 1.39 2001/08/26 17:30:21 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -292,7 +292,7 @@ PsBeginThread(PKSTART_ROUTINE StartRoutine, PVOID StartContext)
} }
#endif #endif
VOID VOID STDCALL
PiDeleteThread(PVOID ObjectBody) PiDeleteThread(PVOID ObjectBody)
{ {
KIRQL oldIrql; KIRQL oldIrql;
@ -311,7 +311,7 @@ PiDeleteThread(PVOID ObjectBody)
DPRINT("PiDeleteThread() finished\n"); DPRINT("PiDeleteThread() finished\n");
} }
VOID VOID STDCALL
PiCloseThread(PVOID ObjectBody, PiCloseThread(PVOID ObjectBody,
ULONG HandleCount) ULONG HandleCount)
{ {

View file

@ -25,7 +25,7 @@ PETHREAD PiIdleThread;
/* FUNCTIONS *****************************************************************/ /* FUNCTIONS *****************************************************************/
NTSTATUS NTSTATUS STDCALL
PsIdleThreadMain(PVOID Context) PsIdleThreadMain(PVOID Context)
{ {
KIRQL oldlvl; KIRQL oldlvl;

View file

@ -1,4 +1,4 @@
/* $Id: process.c,v 1.66 2001/08/07 14:01:42 ekohl Exp $ /* $Id: process.c,v 1.67 2001/08/26 17:30:21 ekohl Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -256,7 +256,7 @@ PsInitProcessManagment(VOID)
} }
VOID VOID STDCALL
PiDeleteProcess(PVOID ObjectBody) PiDeleteProcess(PVOID ObjectBody)
{ {
KIRQL oldIrql; KIRQL oldIrql;