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
#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 _OBJECT_ATTRIBUTES;
@ -62,23 +62,24 @@ typedef struct _OBJECT_TYPE
* PURPOSE: Dumps the object
* NOTE: To be defined
*/
VOID (*Dump)(VOID);
VOID STDCALL (*Dump)(VOID);
/*
* PURPOSE: Opens the object
* NOTE: To be defined
*/
VOID (*Open)(VOID);
VOID STDCALL (*Open)(VOID);
/*
* 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
*/
VOID (*Delete)(PVOID ObjectBody);
VOID STDCALL (*Delete)(PVOID ObjectBody);
/*
* PURPOSE: Called when an open attempts to open a file apparently
@ -88,33 +89,33 @@ typedef struct _OBJECT_TYPE
* STATUS_UNSUCCESSFUL NextObject not found
* STATUS_REPARSE Path changed, restart parsing the path
*/
NTSTATUS (*Parse)(PVOID ParsedObject,
PVOID *NextObject,
PUNICODE_STRING FullPath,
PWSTR *Path,
struct _OBJECT_TYPE* ObjectType,
ULONG Attributes);
NTSTATUS STDCALL (*Parse)(PVOID ParsedObject,
PVOID *NextObject,
PUNICODE_STRING FullPath,
PWSTR *Path,
struct _OBJECT_TYPE* ObjectType,
ULONG Attributes);
/*
*/
NTSTATUS (*Security)(PVOID Object,
ULONG InfoClass,
PVOID Info,
PULONG InfoLength);
NTSTATUS STDCALL (*Security)(PVOID Object,
ULONG InfoClass,
PVOID Info,
PULONG InfoLength);
/*
*/
VOID (*QueryName)(VOID);
VOID STDCALL (*QueryName)(VOID);
/*
* PURPOSE: Called when a process asks to close the object
*/
VOID (*OkayToClose)(VOID);
VOID STDCALL (*OkayToClose)(VOID);
NTSTATUS (*Create)(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes);
NTSTATUS STDCALL (*Create)(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes);
} OBJECT_TYPE, *POBJECT_TYPE;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -11,12 +11,13 @@
extern POBJECT_TYPE CmiKeyType;
extern KSPIN_LOCK CmiKeyListLock;
NTSTATUS CmiObjectParse(PVOID ParsedObject,
PVOID *NextObject,
PUNICODE_STRING FullPath,
PWSTR *Path,
POBJECT_TYPE ObjectType,
ULONG Attributes)
NTSTATUS STDCALL
CmiObjectParse(PVOID ParsedObject,
PVOID *NextObject,
PUNICODE_STRING FullPath,
PWSTR *Path,
POBJECT_TYPE ObjectType,
ULONG Attributes)
{
CHAR cPath[MAX_PATH];
PWSTR end;
@ -106,10 +107,11 @@ DPRINT("CmiObjectParse %s\n",FoundObject->Name);
return STATUS_SUCCESS;
}
NTSTATUS CmiObjectCreate(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes)
NTSTATUS STDCALL
CmiObjectCreate(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes)
{
PKEY_OBJECT pKey=ObjectBody;
pKey->ParentKey = Parent;
@ -132,8 +134,8 @@ NTSTATUS CmiObjectCreate(PVOID ObjectBody,
return STATUS_SUCCESS;
}
void
CmiObjectDelete(PVOID DeletedObject)
VOID STDCALL
CmiObjectDelete(PVOID DeletedObject)
{
PKEY_OBJECT KeyObject;

View file

@ -52,12 +52,11 @@ static GENERIC_MAPPING ExpDesktopMapping = {
/* FUNCTIONS ****************************************************************/
NTSTATUS
ExpWinStaObjectCreate(
PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes)
NTSTATUS STDCALL
ExpWinStaObjectCreate(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes)
{
PWINSTATION_OBJECT WinSta = (PWINSTATION_OBJECT)ObjectBody;
UNICODE_STRING UnicodeString;
@ -121,9 +120,8 @@ ExpWinStaObjectCreate(
return STATUS_SUCCESS;
}
VOID
ExpWinStaObjectDelete(
PVOID DeletedObject)
VOID STDCALL
ExpWinStaObjectDelete(PVOID DeletedObject)
{
PWINSTATION_OBJECT WinSta = (PWINSTATION_OBJECT)DeletedObject;
@ -135,10 +133,9 @@ ExpWinStaObjectDelete(
}
PVOID
ExpWinStaObjectFind(
PWINSTATION_OBJECT WinStaObject,
PWSTR Name,
ULONG Attributes)
ExpWinStaObjectFind(PWINSTATION_OBJECT WinStaObject,
PWSTR Name,
ULONG Attributes)
{
PLIST_ENTRY Current;
PDESKTOP_OBJECT CurrentObject;
@ -179,14 +176,13 @@ ExpWinStaObjectFind(
return NULL;
}
NTSTATUS
ExpWinStaObjectParse(
PVOID Object,
PVOID *NextObject,
PUNICODE_STRING FullPath,
PWSTR *Path,
POBJECT_TYPE ObjectType,
ULONG Attributes)
NTSTATUS STDCALL
ExpWinStaObjectParse(PVOID Object,
PVOID *NextObject,
PUNICODE_STRING FullPath,
PWSTR *Path,
POBJECT_TYPE ObjectType,
ULONG Attributes)
{
PVOID FoundObject;
NTSTATUS Status;
@ -226,12 +222,11 @@ ExpWinStaObjectParse(
return Status;
}
NTSTATUS
ExpDesktopObjectCreate(
PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes)
NTSTATUS STDCALL
ExpDesktopObjectCreate(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
struct _OBJECT_ATTRIBUTES* ObjectAttributes)
{
PDESKTOP_OBJECT Desktop = (PDESKTOP_OBJECT)ObjectBody;
UNICODE_STRING UnicodeString;
@ -263,9 +258,8 @@ ExpDesktopObjectCreate(
return RtlCreateUnicodeString(&Desktop->Name, UnicodeString.Buffer);
}
VOID
ExpDesktopObjectDelete(
PVOID DeletedObject)
VOID STDCALL
ExpDesktopObjectDelete(PVOID DeletedObject)
{
PDESKTOP_OBJECT Desktop = (PDESKTOP_OBJECT)DeletedObject;
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
* PROJECT: ReactOS kernel
@ -60,7 +60,8 @@ WORK_QUEUE EiHyperCriticalWorkQueue;
/* FUNCTIONS ****************************************************************/
static NTSTATUS ExWorkerThreadEntryPoint(PVOID context)
static NTSTATUS STDCALL
ExWorkerThreadEntryPoint(PVOID context)
/*
* FUNCTION: Entry point for a worker thread
* ARGUMENTS:

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* 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
* PROJECT: ReactOS kernel
@ -133,14 +133,16 @@ PIRP IoBuildFilesystemControlRequest(ULONG MinorFunction,
PDEVICE_OBJECT DeviceToMount);
VOID IoSecondStageCompletion(PIRP Irp, CCHAR PriorityBoost);
NTSTATUS IopCreateFile (PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes);
NTSTATUS IopCreateDevice(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes);
NTSTATUS STDCALL
IopCreateFile(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes);
NTSTATUS STDCALL
IopCreateDevice(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes);
NTSTATUS IoAttachVpb(PDEVICE_OBJECT DeviceObject);
PIRP IoBuildSynchronousFsdRequestWithMdl(ULONG MajorFunction,

View file

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

View file

@ -499,8 +499,8 @@ ULONG PsUnfreezeThread(PETHREAD Thread, PNTSTATUS WaitStatus);
ULONG PsFreezeThread(PETHREAD Thread, PNTSTATUS WaitStatus,
UCHAR Alertable, ULONG WaitMode);
VOID PiInitApcManagement(VOID);
VOID PiDeleteThread(PVOID ObjectBody);
VOID PiCloseThread(PVOID ObjectBody, ULONG HandleCount);
VOID STDCALL PiDeleteThread(PVOID ObjectBody);
VOID STDCALL PiCloseThread(PVOID ObjectBody, ULONG HandleCount);
VOID PsReapThreads(VOID);
NTSTATUS
PsInitializeThread(HANDLE ProcessHandle,
@ -554,7 +554,7 @@ VOID HalTaskSwitch(PKTHREAD thread);
NTSTATUS
Ke386InitThreadWithContext(PKTHREAD Thread, PCONTEXT Context);
NTSTATUS HalReleaseTask(PETHREAD Thread);
VOID PiDeleteProcess(PVOID ObjectBody);
VOID STDCALL PiDeleteProcess(PVOID ObjectBody);
VOID PsReapThreads(VOID);
VOID PsUnfreezeOtherThread(PETHREAD Thread);
VOID PsFreezeOtherThread(PETHREAD Thread);
@ -572,7 +572,7 @@ VOID
PsApplicationProcessorInit(VOID);
VOID
PsPrepareForApplicationProcessorInit(ULONG Id);
NTSTATUS
NTSTATUS STDCALL
PsIdleThreadMain(PVOID Context);
#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
* PROJECT: ReactOS kernel
@ -61,11 +61,11 @@ NtDeleteFile(IN POBJECT_ATTRIBUTES ObjectAttributes)
* REVISIONS
*
*/
NTSTATUS
IopCreateFile (PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes)
NTSTATUS STDCALL
IopCreateFile(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes)
{
PDEVICE_OBJECT DeviceObject = (PDEVICE_OBJECT) Parent;
PFILE_OBJECT FileObject = (PFILE_OBJECT) ObjectBody;

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
* PROJECT: ReactOS kernel
@ -496,7 +496,7 @@ IoAttachDevice(PDEVICE_OBJECT SourceDevice,
UNIMPLEMENTED;
}
NTSTATUS
NTSTATUS STDCALL
IopCreateDevice(PVOID ObjectBody,
PVOID Parent,
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
* PROJECT: ReactOS kernel
@ -43,7 +43,9 @@ static GENERIC_MAPPING IopFileMapping = {FILE_GENERIC_READ,
/* FUNCTIONS ****************************************************************/
VOID IopCloseFile(PVOID ObjectBody, ULONG HandleCount)
VOID STDCALL
IopCloseFile(PVOID ObjectBody,
ULONG HandleCount)
{
PFILE_OBJECT FileObject = (PFILE_OBJECT)ObjectBody;
PIRP Irp;
@ -75,7 +77,8 @@ VOID IopCloseFile(PVOID ObjectBody, ULONG HandleCount)
Status = IoCallDriver(FileObject->DeviceObject, Irp);
}
VOID IopDeleteFile(PVOID ObjectBody)
VOID STDCALL
IopDeleteFile(PVOID ObjectBody)
{
PFILE_OBJECT FileObject = (PFILE_OBJECT)ObjectBody;
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
* PROJECT: ReactOS kernel
@ -56,7 +56,7 @@ static GENERIC_MAPPING IopSymbolicLinkMapping = {
*
* REVISIONS
*/
NTSTATUS
NTSTATUS STDCALL
IopCreateSymbolicLink(PVOID Object,
PVOID Parent,
PWSTR RemainingPath,
@ -85,7 +85,7 @@ IopCreateSymbolicLink(PVOID Object,
*
* REVISIONS
*/
NTSTATUS
NTSTATUS STDCALL
IopParseSymbolicLink(PVOID Object,
PVOID * NextObject,
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
* PROJECT: ReactOS kernel
@ -71,10 +71,11 @@ NTSTATUS LdrProcessModule(PVOID ModuleLoadBase,
PMODULE_OBJECT *ModuleObject);
PVOID LdrGetExportAddress(PMODULE_OBJECT ModuleObject, char *Name, unsigned short Hint);
static PMODULE_OBJECT LdrOpenModule(PUNICODE_STRING Filename);
static NTSTATUS LdrCreateModule(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes);
static NTSTATUS STDCALL
LdrCreateModule(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes);
static VOID LdrpBuildModuleBaseName(PUNICODE_STRING BaseName,
PUNICODE_STRING FullName);
@ -953,7 +954,7 @@ VOID LdrLoadAutoConfigDrivers (VOID)
}
static NTSTATUS
static NTSTATUS STDCALL
LdrCreateModule(PVOID ObjectBody,
PVOID Parent,
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
* PROJECT: ReactOS kernel
@ -32,7 +32,7 @@
* REVISIONS
*
*/
VOID
VOID STDCALL
NiClosePort (PVOID ObjectBody, ULONG HandleCount)
{
PEPORT Port = (PEPORT)ObjectBody;
@ -86,7 +86,7 @@ NiClosePort (PVOID ObjectBody, ULONG HandleCount)
* REVISIONS
*
*/
VOID
VOID STDCALL
NiDeletePort (PVOID 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
* PROJECT: ReactOS kernel
@ -59,7 +59,7 @@ NTSTATUS STDCALL VerifyCreateParameters (
}
NTSTATUS
NTSTATUS STDCALL
NiCreatePort (
PVOID ObjectBody,
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
* PROJECT: ReactOS kernel
@ -88,7 +88,8 @@ VOID MmWritePagesInProcess(PEPROCESS Process)
MmUnlockAddressSpace(&Process->AddressSpace);
}
NTSTATUS MmMpwThreadMain(PVOID Ignored)
NTSTATUS STDCALL
MmMpwThreadMain(PVOID Ignored)
{
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
* PROJECT: ReactOS kernel
@ -62,7 +62,8 @@ static VOID MmTryPageOutFromProcess(PEPROCESS Process)
MmUnlockAddressSpace(&Process->AddressSpace);
}
static NTSTATUS MmPagerThreadMain(PVOID Ignored)
static NTSTATUS STDCALL
MmPagerThreadMain(PVOID Ignored)
{
NTSTATUS Status;

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* 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
* FILE: ntoskrnl/mm/section.c
@ -817,7 +817,7 @@ MmPageOutSectionView(PMADDRESS_SPACE AddressSpace,
return(0);
}
VOID
VOID STDCALL
MmpDeleteSection(PVOID ObjectBody)
{
PSECTION_OBJECT Section = (PSECTION_OBJECT)ObjectBody;
@ -843,7 +843,7 @@ MmpDeleteSection(PVOID ObjectBody)
}
}
VOID
VOID STDCALL
MmpCloseSection(PVOID ObjectBody,
ULONG HandleCount)
{
@ -852,10 +852,11 @@ MmpCloseSection(PVOID ObjectBody,
}
NTSTATUS MmpCreateSection(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes)
NTSTATUS STDCALL
MmpCreateSection(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes)
{
NTSTATUS Status;

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
* PROJECT: ReactOS kernel
@ -32,10 +32,11 @@ static GENERIC_MAPPING ExEventPairMapping = {
/* FUNCTIONS *****************************************************************/
NTSTATUS NtpCreateEventPair(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes)
NTSTATUS STDCALL
NtpCreateEventPair(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes)
{
DPRINT("NtpCreateEventPair(ObjectBody %x, Parent %x, RemainingPath %S)\n",
ObjectBody, Parent, RemainingPath);

View file

@ -51,7 +51,7 @@ static GENERIC_MAPPING ExpEventMapping = {
/* FUNCTIONS *****************************************************************/
NTSTATUS
NTSTATUS STDCALL
NtpCreateEvent(PVOID ObjectBody,
PVOID Parent,
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
* PROJECT: ReactOS kernel
@ -33,10 +33,11 @@ static GENERIC_MAPPING ExSemaphoreMapping = {
/* FUNCTIONS *****************************************************************/
NTSTATUS NtpCreateSemaphore(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes)
NTSTATUS STDCALL
NtpCreateSemaphore(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,
POBJECT_ATTRIBUTES ObjectAttributes)
{
DPRINT("NtpCreateSemaphore(ObjectBody %x, Parent %x, RemainingPath %S)\n",

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
* PROJECT: ReactOS kernel
@ -45,7 +45,7 @@ static GENERIC_MAPPING ExpTimerMapping = {
/* FUNCTIONS *****************************************************************/
NTSTATUS
NTSTATUS STDCALL
NtpCreateTimer(PVOID ObjectBody,
PVOID Parent,
PWSTR RemainingPath,

View file

@ -300,7 +300,7 @@ VOID KiRemoveProfile(PKPROFILE Profile)
KeReleaseSpinLock(&ProfileListLock, oldIrql);
}
VOID
VOID STDCALL
KiDeleteProfile(PVOID ObjectBody)
{
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
* PROJECT: ReactOS kernel
@ -220,7 +220,7 @@ ObpFindEntryDirectory(PDIRECTORY_OBJECT DirectoryObject,
return(NULL);
}
NTSTATUS
NTSTATUS STDCALL
ObpParseDirectory(PVOID Object,
PVOID * NextObject,
PUNICODE_STRING FullPath,
@ -278,7 +278,7 @@ ObpParseDirectory(PVOID Object,
return STATUS_SUCCESS;
}
NTSTATUS
NTSTATUS STDCALL
ObpCreateDirectory(PVOID ObjectBody,
PVOID Parent,
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
* PROJECT: ReactOS kernel
@ -292,7 +292,7 @@ PsBeginThread(PKSTART_ROUTINE StartRoutine, PVOID StartContext)
}
#endif
VOID
VOID STDCALL
PiDeleteThread(PVOID ObjectBody)
{
KIRQL oldIrql;
@ -311,7 +311,7 @@ PiDeleteThread(PVOID ObjectBody)
DPRINT("PiDeleteThread() finished\n");
}
VOID
VOID STDCALL
PiCloseThread(PVOID ObjectBody,
ULONG HandleCount)
{

View file

@ -25,7 +25,7 @@ PETHREAD PiIdleThread;
/* FUNCTIONS *****************************************************************/
NTSTATUS
NTSTATUS STDCALL
PsIdleThreadMain(PVOID Context)
{
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
* PROJECT: ReactOS kernel
@ -256,7 +256,7 @@ PsInitProcessManagment(VOID)
}
VOID
VOID STDCALL
PiDeleteProcess(PVOID ObjectBody)
{
KIRQL oldIrql;