Author: sginsberg
Date: Sat Nov 29 15:23:45 2008
New Revision: 37749
URL:
http://svn.reactos.org/svn/reactos?rev=37749&view=rev
Log:
- Welcome to rosapps NTAPI/WINAPI, farewell STDCALL
Modified:
trunk/rosapps/applications/net/tditest/tditest/tditest.c
trunk/rosapps/applications/sysutils/chkdsk/chkdsk.c
trunk/rosapps/applications/sysutils/lsdd/lsdd.c
trunk/rosapps/applications/sysutils/qssi/qssi.c
trunk/rosapps/applications/sysutils/tlist/tlist.c
trunk/rosapps/applications/sysutils/utils/objdir/objdir.c
trunk/rosapps/applications/sysutils/utils/pice/module/privateice.c
trunk/rosapps/applications/sysutils/utils/pice/module/utils.c
trunk/rosapps/applications/sysutils/utils/pice/module/utils.h
trunk/rosapps/templates/template/template.c
Modified: trunk/rosapps/applications/net/tditest/tditest/tditest.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/net/tditest/t…
==============================================================================
--- trunk/rosapps/applications/net/tditest/tditest/tditest.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/net/tditest/tditest/tditest.c [iso-8859-1] Sat Nov 29
15:23:45 2008
@@ -892,9 +892,7 @@
NTSTATUS
-#ifndef _MSC_VER
-STDCALL
-#endif
+NTAPI
DriverEntry(
PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
Modified: trunk/rosapps/applications/sysutils/chkdsk/chkdsk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/chkd…
==============================================================================
--- trunk/rosapps/applications/sysutils/chkdsk/chkdsk.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/chkdsk/chkdsk.c [iso-8859-1] Sat Nov 29 15:23:45
2008
@@ -205,7 +205,7 @@
//
//----------------------------------------------------------------------
BOOLEAN
-STDCALL
+WINAPI
ChkdskCallback(
CALLBACKCOMMAND Command,
DWORD Modifier,
Modified: trunk/rosapps/applications/sysutils/lsdd/lsdd.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/lsdd…
==============================================================================
--- trunk/rosapps/applications/sysutils/lsdd/lsdd.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/lsdd/lsdd.c [iso-8859-1] Sat Nov 29 15:23:45 2008
@@ -31,7 +31,7 @@
BOOL
-STDCALL
+WINAPI
GetNextString (
char * BufferIn,
char * BufferOut,
Modified: trunk/rosapps/applications/sysutils/qssi/qssi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/qssi…
==============================================================================
--- trunk/rosapps/applications/sysutils/qssi/qssi.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/qssi/qssi.c [iso-8859-1] Sat Nov 29 15:23:45 2008
@@ -68,7 +68,7 @@
-VOID STDCALL PrintStatus (NTSTATUS Status);
+VOID WINAPI PrintStatus (NTSTATUS Status);
#define CMD_REF(n) CMD_##n
#define CMD_DEF(n) INT CMD_REF(n) (INT argc, LPCSTR argv [])
@@ -88,7 +88,7 @@
#define BIT(n,m) (((n)&(m))?'1':'0')
LPSTR
-STDCALL
+WINAPI
ByteToBinaryString (
BYTE Byte,
CHAR Binary [8]
@@ -107,7 +107,7 @@
/* --- */
VOID
-STDCALL
+WINAPI
DumpData (int Size, PVOID pData )
{
PBYTE Buffer = (PBYTE) pData;
@@ -200,7 +200,7 @@
LPTSTR
-STDCALL
+WINAPI
HandleTypeToObjectName (
DWORD HandleType
)
@@ -216,7 +216,7 @@
/* --- */
int
-STDCALL
+WINAPI
FindRequiredBufferSize (int i, int step)
{
NTSTATUS Status = STATUS_INFO_LENGTH_MISMATCH;
@@ -263,7 +263,7 @@
VOID
-STDCALL
+WINAPI
PrintStatus (NTSTATUS Status)
{
LPCSTR StatusName = NULL;
@@ -310,7 +310,7 @@
};
VOID
-STDCALL
+WINAPI
PrintUtcDateTime (LPCSTR Template, PTIME UtcTime)
{
CHAR UtcTimeString [64];
Modified: trunk/rosapps/applications/sysutils/tlist/tlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/tlis…
==============================================================================
--- trunk/rosapps/applications/sysutils/tlist/tlist.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/tlist/tlist.c [iso-8859-1] Sat Nov 29 15:23:45
2008
@@ -63,14 +63,14 @@
NtFreeVirtualMemory(NtCurrentProcess(), &ptr, &nSize, MEM_RELEASE);
}
-int STDCALL PrintBanner (VOID)
+int WINAPI PrintBanner (VOID)
{
printf ("ReactOS "KERNEL_RELEASE_STR" T(ask)List\n");
printf ("Copyright (c) 2000,2001 Emanuele Aliberti\n\n");
return EXIT_SUCCESS;
}
-int STDCALL PrintSynopsys (int nRetVal)
+int WINAPI PrintSynopsys (int nRetVal)
{
PrintBanner ();
printf ("Usage: tlist [-t | PID | -l]\n\n"
@@ -80,7 +80,7 @@
return nRetVal;
}
-int STDCALL PrintLicense (VOID)
+int WINAPI PrintLicense (VOID)
{
PrintBanner ();
printf (
@@ -100,13 +100,13 @@
return EXIT_SUCCESS;
}
-BOOL STDCALL AcquirePrivileges (VOID)
+BOOL WINAPI AcquirePrivileges (VOID)
{
/* TODO: implement it */
return TRUE;
}
-int STDCALL
+int WINAPI
ProcessHasDescendants (
HANDLE Pid,
PSYSTEM_PROCESS_INFORMATION pInfo
@@ -132,7 +132,7 @@
}
-BOOL STDCALL
+BOOL WINAPI
GetProcessInfo (
PSYSTEM_PROCESS_INFORMATION pInfo,
LPWSTR * Module,
@@ -144,7 +144,7 @@
return TRUE;
}
-int STDCALL PrintProcessInfoDepth (
+int WINAPI PrintProcessInfoDepth (
PSYSTEM_PROCESS_INFORMATION pInfo,
LONG Depth
)
@@ -165,7 +165,7 @@
return EXIT_SUCCESS;
}
-int STDCALL
+int WINAPI
PrintProcessAndDescendants (
PSYSTEM_PROCESS_INFORMATION pInfo,
PSYSTEM_PROCESS_INFORMATION pInfoBase,
@@ -209,7 +209,7 @@
return EXIT_SUCCESS;
}
-int STDCALL PrintProcessList (BOOL DisplayTree)
+int WINAPI PrintProcessList (BOOL DisplayTree)
{
PSYSTEM_PROCESS_INFORMATION pInfo = NULL;
PSYSTEM_PROCESS_INFORMATION pInfoBase = NULL;
@@ -251,7 +251,7 @@
}
-int STDCALL PrintThreads (PSYSTEM_PROCESS_INFORMATION pInfo)
+int WINAPI PrintThreads (PSYSTEM_PROCESS_INFORMATION pInfo)
{
ULONG i = 0;
NTSTATUS Status = STATUS_SUCCESS;
@@ -320,13 +320,13 @@
return EXIT_SUCCESS;
}
-int STDCALL PrintModules (VOID)
+int WINAPI PrintModules (VOID)
{
/* TODO */
return EXIT_SUCCESS;
}
-PSYSTEM_PROCESS_INFORMATION STDCALL
+PSYSTEM_PROCESS_INFORMATION WINAPI
GetProcessInfoPid (
PSYSTEM_PROCESS_INFORMATION pInfoBase,
HANDLE Pid
@@ -349,7 +349,7 @@
return NULL;
}
-int STDCALL PrintProcess (char * PidStr)
+int WINAPI PrintProcess (char * PidStr)
{
NTSTATUS Status = 0;
HANDLE hProcess = 0;
Modified: trunk/rosapps/applications/sysutils/utils/objdir/objdir.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/util…
==============================================================================
--- trunk/rosapps/applications/sysutils/utils/objdir/objdir.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/utils/objdir/objdir.c [iso-8859-1] Sat Nov 29
15:23:45 2008
@@ -28,7 +28,7 @@
static
PCHAR
-STDCALL
+WINAPI
RawUszAsz (
PWCHAR szU,
PCHAR szA
@@ -44,7 +44,7 @@
static
PWCHAR
-STDCALL
+WINAPI
RawAszUsz (
PCHAR szA,
PWCHAR szW
@@ -60,7 +60,7 @@
static
const char *
-STDCALL
+WINAPI
StatusToName (NTSTATUS Status)
{
static char RawValue [16];
@@ -94,7 +94,7 @@
BOOL
-STDCALL
+WINAPI
ExpandSymbolicLink (
IN PUNICODE_STRING DirectoryName,
IN PUNICODE_STRING SymbolicLinkName,
@@ -167,7 +167,7 @@
BOOL
-STDCALL
+WINAPI
ListDirectory (
IN PUNICODE_STRING DirectoryNameW,
IN BOOL Recurse
Modified: trunk/rosapps/applications/sysutils/utils/pice/module/privateice.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/util…
==============================================================================
--- trunk/rosapps/applications/sysutils/utils/pice/module/privateice.c [iso-8859-1]
(original)
+++ trunk/rosapps/applications/sysutils/utils/pice/module/privateice.c [iso-8859-1] Sat
Nov 29 15:23:45 2008
@@ -69,7 +69,7 @@
//
//*************************************************************************
-NTSTATUS STDCALL pice_open(PDEVICE_OBJECT DeviceObject, PIRP Irp)
+NTSTATUS NTAPI pice_open(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
DPRINT((0,"pice_open\n"));
@@ -89,7 +89,7 @@
// pice_close()
//
//*************************************************************************
-NTSTATUS STDCALL pice_close(PDEVICE_OBJECT DeviceObject, PIRP Irp)
+NTSTATUS NTAPI pice_close(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
DPRINT((0,"pice_close\n"));
@@ -108,7 +108,7 @@
//
//*************************************************************************
-NTSTATUS STDCALL pice_ioctl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
+NTSTATUS NTAPI pice_ioctl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
{
// char* pFilename = (char*) ioctl_param;
@@ -160,7 +160,7 @@
}
-NTSTATUS STDCALL DriverEntry(PDRIVER_OBJECT DriverObject,
+NTSTATUS NTAPI DriverEntry(PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath)
/*
* FUNCTION: Module entry point
Modified: trunk/rosapps/applications/sysutils/utils/pice/module/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/util…
==============================================================================
--- trunk/rosapps/applications/sysutils/utils/pice/module/utils.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/utils/pice/module/utils.c [iso-8859-1] Sat Nov 29
15:23:45 2008
@@ -2331,7 +2331,7 @@
*/
INT
-STDCALL
+WINAPI
PICE_MultiByteToWideChar (
UINT CodePage,
DWORD dwFlags,
Modified: trunk/rosapps/applications/sysutils/utils/pice/module/utils.h
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/sysutils/util…
==============================================================================
--- trunk/rosapps/applications/sysutils/utils/pice/module/utils.h [iso-8859-1] (original)
+++ trunk/rosapps/applications/sysutils/utils/pice/module/utils.h [iso-8859-1] Sat Nov 29
15:23:45 2008
@@ -314,7 +314,7 @@
size_t PICE_len( HANDLE hFile );
WCHAR * PICE_wcscpy(WCHAR * str1,const WCHAR * str2);
INT
-STDCALL
+WINAPI
PICE_MultiByteToWideChar (
UINT CodePage,
DWORD dwFlags,
Modified: trunk/rosapps/templates/template/template.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/templates/template/templat…
==============================================================================
--- trunk/rosapps/templates/template/template.c [iso-8859-1] (original)
+++ trunk/rosapps/templates/template/template.c [iso-8859-1] Sat Nov 29 15:23:45 2008
@@ -44,7 +44,7 @@
/* FUNCTIONS ****************************************************************/
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdCloseFile(PDEVICE_EXTENSION DeviceExt,
PFILE_OBJECT FileObject)
/*
@@ -55,7 +55,7 @@
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdOpenFile(PDEVICE_EXTENSION DeviceExt,
PFILE_OBJECT FileObject,
PWSTR FileName)
@@ -67,7 +67,7 @@
}
-BOOLEAN STDCALL
+BOOLEAN NTAPI
FsdHasFileSystem(PDEVICE_OBJECT DeviceToMount)
/*
* FUNCTION: Tests if the device contains a filesystem that can be mounted
@@ -78,7 +78,7 @@
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdMountDevice(PDEVICE_EXTENSION DeviceExt,
PDEVICE_OBJECT DeviceToMount)
/*
@@ -89,7 +89,7 @@
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdReadFile(PDEVICE_EXTENSION DeviceExt,
PFILE_OBJECT FileObject,
PVOID Buffer,
@@ -103,7 +103,7 @@
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdClose(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@@ -122,7 +122,7 @@
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdCreate(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@@ -142,7 +142,7 @@
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdWrite(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@@ -153,7 +153,7 @@
return(STATUS_UNSUCCESSFUL);
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdRead(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@@ -210,7 +210,7 @@
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
FsdFileSystemControl(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
@@ -236,7 +236,7 @@
}
-NTSTATUS STDCALL
+NTSTATUS NTAPI
DriverEntry(PDRIVER_OBJECT _DriverObject,
PUNICODE_STRING RegistryPath)
/*