[KERNEL32]: Fix (old-style) annotations.

svn path=/trunk/; revision=73546
This commit is contained in:
Hermès Bélusca-Maïto 2017-01-14 01:59:10 +00:00
parent 736b7b86f6
commit 48f148bba8

View file

@ -1119,12 +1119,12 @@ GetFullPathNameW(IN LPCWSTR lpFileName,
*/ */
DWORD DWORD
WINAPI WINAPI
SearchPathA(IN LPCSTR lpPath, SearchPathA(IN LPCSTR lpPath OPTIONAL,
IN LPCSTR lpFileName, IN LPCSTR lpFileName,
IN LPCSTR lpExtension, IN LPCSTR lpExtension OPTIONAL,
IN DWORD nBufferLength, IN DWORD nBufferLength,
IN LPSTR lpBuffer, OUT LPSTR lpBuffer,
OUT LPSTR *lpFilePart) OUT LPSTR *lpFilePart OPTIONAL)
{ {
PUNICODE_STRING FileNameString; PUNICODE_STRING FileNameString;
UNICODE_STRING PathString, ExtensionString; UNICODE_STRING PathString, ExtensionString;
@ -1294,12 +1294,12 @@ Quickie:
*/ */
DWORD DWORD
WINAPI WINAPI
SearchPathW(IN LPCWSTR lpPath, SearchPathW(IN LPCWSTR lpPath OPTIONAL,
IN LPCWSTR lpFileName, IN LPCWSTR lpFileName,
IN LPCWSTR lpExtension, IN LPCWSTR lpExtension OPTIONAL,
IN DWORD nBufferLength, IN DWORD nBufferLength,
IN LPWSTR lpBuffer, OUT LPWSTR lpBuffer,
OUT LPWSTR *lpFilePart) OUT LPWSTR *lpFilePart OPTIONAL)
{ {
UNICODE_STRING FileNameString, ExtensionString, PathString, CallerBuffer; UNICODE_STRING FileNameString, ExtensionString, PathString, CallerBuffer;
ULONG Flags, LengthNeeded, FilePartSize; ULONG Flags, LengthNeeded, FilePartSize;
@ -1452,7 +1452,7 @@ Quickie:
DWORD DWORD
WINAPI WINAPI
GetLongPathNameW(IN LPCWSTR lpszShortPath, GetLongPathNameW(IN LPCWSTR lpszShortPath,
IN LPWSTR lpszLongPath, OUT LPWSTR lpszLongPath,
IN DWORD cchBuffer) IN DWORD cchBuffer)
{ {
PWCHAR Path, Original, First, Last, Buffer, Src, Dst; PWCHAR Path, Original, First, Last, Buffer, Src, Dst;
@ -1668,7 +1668,7 @@ Quickie:
DWORD DWORD
WINAPI WINAPI
GetLongPathNameA(IN LPCSTR lpszShortPath, GetLongPathNameA(IN LPCSTR lpszShortPath,
IN LPSTR lpszLongPath, OUT LPSTR lpszLongPath,
IN DWORD cchBuffer) IN DWORD cchBuffer)
{ {
ULONG Result, PathLength; ULONG Result, PathLength;
@ -1749,7 +1749,7 @@ Quickie:
DWORD DWORD
WINAPI WINAPI
GetShortPathNameA(IN LPCSTR lpszLongPath, GetShortPathNameA(IN LPCSTR lpszLongPath,
IN LPSTR lpszShortPath, OUT LPSTR lpszShortPath,
IN DWORD cchBuffer) IN DWORD cchBuffer)
{ {
ULONG Result, PathLength; ULONG Result, PathLength;
@ -1830,7 +1830,7 @@ Quickie:
DWORD DWORD
WINAPI WINAPI
GetShortPathNameW(IN LPCWSTR lpszLongPath, GetShortPathNameW(IN LPCWSTR lpszLongPath,
IN LPWSTR lpszShortPath, OUT LPWSTR lpszShortPath,
IN DWORD cchBuffer) IN DWORD cchBuffer)
{ {
PWCHAR Path, Original, First, Last, Buffer, Src, Dst; PWCHAR Path, Original, First, Last, Buffer, Src, Dst;
@ -2052,7 +2052,7 @@ Quickie:
DWORD DWORD
WINAPI WINAPI
GetTempPathA(IN DWORD nBufferLength, GetTempPathA(IN DWORD nBufferLength,
IN LPSTR lpBuffer) OUT LPSTR lpBuffer)
{ {
WCHAR BufferW[MAX_PATH]; WCHAR BufferW[MAX_PATH];
DWORD ret; DWORD ret;
@ -2078,7 +2078,7 @@ GetTempPathA(IN DWORD nBufferLength,
DWORD DWORD
WINAPI WINAPI
GetTempPathW(IN DWORD count, GetTempPathW(IN DWORD count,
IN LPWSTR path) OUT LPWSTR path)
{ {
static const WCHAR tmp[] = { 'T', 'M', 'P', 0 }; static const WCHAR tmp[] = { 'T', 'M', 'P', 0 };
static const WCHAR temp[] = { 'T', 'E', 'M', 'P', 0 }; static const WCHAR temp[] = { 'T', 'E', 'M', 'P', 0 };
@ -2144,7 +2144,7 @@ GetTempPathW(IN DWORD count,
DWORD DWORD
WINAPI WINAPI
GetCurrentDirectoryA(IN DWORD nBufferLength, GetCurrentDirectoryA(IN DWORD nBufferLength,
IN LPSTR lpBuffer) OUT LPSTR lpBuffer)
{ {
ANSI_STRING AnsiString; ANSI_STRING AnsiString;
NTSTATUS Status; NTSTATUS Status;
@ -2193,7 +2193,7 @@ GetCurrentDirectoryA(IN DWORD nBufferLength,
DWORD DWORD
WINAPI WINAPI
GetCurrentDirectoryW(IN DWORD nBufferLength, GetCurrentDirectoryW(IN DWORD nBufferLength,
IN LPWSTR lpBuffer) OUT LPWSTR lpBuffer)
{ {
return RtlGetCurrentDirectory_U(nBufferLength * sizeof(WCHAR), lpBuffer) / sizeof(WCHAR); return RtlGetCurrentDirectory_U(nBufferLength * sizeof(WCHAR), lpBuffer) / sizeof(WCHAR);
} }
@ -2280,7 +2280,7 @@ SetCurrentDirectoryW(IN LPCWSTR lpPathName)
*/ */
UINT UINT
WINAPI WINAPI
GetSystemDirectoryA(IN LPSTR lpBuffer, GetSystemDirectoryA(OUT LPSTR lpBuffer,
IN UINT uSize) IN UINT uSize)
{ {
ANSI_STRING AnsiString; ANSI_STRING AnsiString;
@ -2310,7 +2310,7 @@ GetSystemDirectoryA(IN LPSTR lpBuffer,
*/ */
UINT UINT
WINAPI WINAPI
GetSystemDirectoryW(IN LPWSTR lpBuffer, GetSystemDirectoryW(OUT LPWSTR lpBuffer,
IN UINT uSize) IN UINT uSize)
{ {
ULONG ReturnLength; ULONG ReturnLength;
@ -2334,7 +2334,7 @@ GetSystemDirectoryW(IN LPWSTR lpBuffer,
*/ */
UINT UINT
WINAPI WINAPI
GetWindowsDirectoryA(IN LPSTR lpBuffer, GetWindowsDirectoryA(OUT LPSTR lpBuffer,
IN UINT uSize) IN UINT uSize)
{ {
/* Is this a TS installation? */ /* Is this a TS installation? */
@ -2349,7 +2349,7 @@ GetWindowsDirectoryA(IN LPSTR lpBuffer,
*/ */
UINT UINT
WINAPI WINAPI
GetWindowsDirectoryW(IN LPWSTR lpBuffer, GetWindowsDirectoryW(OUT LPWSTR lpBuffer,
IN UINT uSize) IN UINT uSize)
{ {
/* Is this a TS installation? */ /* Is this a TS installation? */
@ -2364,7 +2364,7 @@ GetWindowsDirectoryW(IN LPWSTR lpBuffer,
*/ */
UINT UINT
WINAPI WINAPI
GetSystemWindowsDirectoryA(IN LPSTR lpBuffer, GetSystemWindowsDirectoryA(OUT LPSTR lpBuffer,
IN UINT uSize) IN UINT uSize)
{ {
ANSI_STRING AnsiString; ANSI_STRING AnsiString;
@ -2394,7 +2394,7 @@ GetSystemWindowsDirectoryA(IN LPSTR lpBuffer,
*/ */
UINT UINT
WINAPI WINAPI
GetSystemWindowsDirectoryW(IN LPWSTR lpBuffer, GetSystemWindowsDirectoryW(OUT LPWSTR lpBuffer,
IN UINT uSize) IN UINT uSize)
{ {
ULONG ReturnLength; ULONG ReturnLength;
@ -2418,7 +2418,7 @@ GetSystemWindowsDirectoryW(IN LPWSTR lpBuffer,
*/ */
UINT UINT
WINAPI WINAPI
GetSystemWow64DirectoryW(IN LPWSTR lpBuffer, GetSystemWow64DirectoryW(OUT LPWSTR lpBuffer,
IN UINT uSize) IN UINT uSize)
{ {
#ifdef _WIN64 #ifdef _WIN64
@ -2435,7 +2435,7 @@ GetSystemWow64DirectoryW(IN LPWSTR lpBuffer,
*/ */
UINT UINT
WINAPI WINAPI
GetSystemWow64DirectoryA(IN LPSTR lpBuffer, GetSystemWow64DirectoryA(OUT LPSTR lpBuffer,
IN UINT uSize) IN UINT uSize)
{ {
#ifdef _WIN64 #ifdef _WIN64