Changeset 7849


Ignore:
Timestamp:
Feb 9, 2002, 1:45:14 PM (23 years ago)
Author:
sandervl
Message:

logging updates

Location:
trunk/src/kernel32
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/kernel32/Fileio.cpp

    r7798 r7849  
    1 /* $Id: Fileio.cpp,v 1.64 2002-02-03 21:06:40 sandervl Exp $ */
     1/* $Id: Fileio.cpp,v 1.65 2002-02-09 12:45:11 sandervl Exp $ */
    22
    33/*
     
    188188//******************************************************************************
    189189//******************************************************************************
    190 ODINFUNCTION7(HFILE,  CreateFileA,
    191               LPCSTR, lpszName,
    192               DWORD,  fdwAccess,
    193               DWORD,  fdwShareMode,
    194               LPSECURITY_ATTRIBUTES, lpsa,
    195               DWORD,  fdwCreate,
    196               DWORD,  fdwAttrsAndFlags,
    197               HANDLE, hTemplateFile)
     190HFILE WIN32API CreateFileA(LPCSTR lpszName, DWORD fdwAccess, DWORD fdwShareMode,
     191                           LPSECURITY_ATTRIBUTES lpsa, DWORD fdwCreate,
     192                           DWORD  fdwAttrsAndFlags, HANDLE hTemplateFile)
    198193{
    199194  dprintf(("CreateFileA %s", lpszName));
     
    209204//******************************************************************************
    210205//******************************************************************************
    211 ODINFUNCTION7(HFILE,   CreateFileW,
    212               LPCWSTR, arg1,
    213               DWORD,   arg2,
    214               DWORD,   arg3,
    215               PSECURITY_ATTRIBUTES, arg4,
    216               DWORD,   arg5,
    217               DWORD,   arg6,
    218               HANDLE,  arg7)
     206HFILE WIN32API CreateFileW(LPCWSTR lpszName, DWORD fdwAccess, DWORD fdwShareMode,
     207                           LPSECURITY_ATTRIBUTES lpsa, DWORD fdwCreate,
     208                           DWORD fdwAttrsAndFlags, HANDLE hTemplateFile)
    219209{
    220210  HANDLE rc;
    221211  char  *astring;
    222212
    223   astring = UnicodeToAsciiString((LPWSTR)arg1);
    224   rc = CreateFileA(astring, arg2, arg3, arg4, arg5, arg6, arg7);
     213  astring = UnicodeToAsciiString((LPWSTR)lpszName);
     214  rc = CreateFileA(astring, fdwAccess, fdwShareMode,
     215                   lpsa, fdwCreate, fdwAttrsAndFlags,
     216                   hTemplateFile);
    225217  FreeAsciiString(astring);
    226218  return(rc);
     
    255247 * Author    : SvL
    256248 *****************************************************************************/
    257 ODINFUNCTION6(HANDLE, FindFirstFileExA, LPCSTR, lpFileName,
    258                                         FINDEX_INFO_LEVELS, fInfoLevelId,
    259                                         LPVOID, lpFindFileData,
    260                                         FINDEX_SEARCH_OPS, fSearchOp,
    261                                         LPVOID, lpSearchFilter,
    262                                         DWORD, dwAdditionalFlags)
     249HANDLE WIN32API FindFirstFileExA(LPCSTR lpFileName, FINDEX_INFO_LEVELS fInfoLevelId,
     250                                 LPVOID lpFindFileData,
     251                                 FINDEX_SEARCH_OPS fSearchOp,
     252                                 LPVOID lpSearchFilter,
     253                                 DWORD dwAdditionalFlags)
    263254{   
    264255  HANDLE hFind;
     
    343334 * Author    : Wine
    344335 *****************************************************************************/
    345 ODINFUNCTION6(HANDLE, FindFirstFileExW, LPCWSTR, lpFileName,
    346                                         FINDEX_INFO_LEVELS, fInfoLevelId,
    347                                         LPVOID, lpFindFileData,
    348                                         FINDEX_SEARCH_OPS, fSearchOp,
    349                                         LPVOID, lpSearchFilter,
    350                                         DWORD, dwAdditionalFlags)
     336HANDLE WIN32API FindFirstFileExW(LPCWSTR lpFileName,
     337                                 FINDEX_INFO_LEVELS fInfoLevelId,
     338                                 LPVOID lpFindFileData,
     339                                 FINDEX_SEARCH_OPS fSearchOp,
     340                                 LPVOID lpSearchFilter,
     341                                 DWORD dwAdditionalFlags)
    351342{
    352343    HANDLE handle;
     
    397388// internal function for faster access (SHELL32)
    398389//******************************************************************************
    399 ODINFUNCTION3(HANDLE, FindFirstFileMultiA,
    400               LPCSTR, lpFileName,
    401               WIN32_FIND_DATAA *, lpFindFileData,
    402               DWORD *,count)
     390HANDLE WIN32API FindFirstFileMultiA(LPCSTR lpFileName,
     391                                    WIN32_FIND_DATAA * lpFindFileData,
     392                                    DWORD * count)
    403393{
    404394    return (HANDLE)OSLibDosFindFirstMulti(lpFileName,lpFindFileData,count);
     
    406396//******************************************************************************
    407397//******************************************************************************
    408 ODINFUNCTION2(BOOL,   FindNextFileA,
    409               HANDLE, hFindFile,
    410               WIN32_FIND_DATAA *, lpFindFileData)
     398BOOL WIN32API FindNextFileA(HANDLE hFindFile, WIN32_FIND_DATAA * lpFindFileData)
    411399{
    412400    return OSLibDosFindNext(hFindFile,lpFindFileData);
     
    415403// internal function for faster access (SHELL32)
    416404//******************************************************************************
    417 ODINFUNCTION3(BOOL,   FindNextFileMultiA,
    418               HANDLE, hFindFile,
    419               WIN32_FIND_DATAA *, lpFindFileData,
    420               DWORD *,count)
     405BOOL WIN32API FindNextFileMultiA(HANDLE hFindFile, WIN32_FIND_DATAA * lpFindFileData,
     406              DWORD *count)
    421407{
    422408  return OSLibDosFindNextMulti(hFindFile,lpFindFileData,count);
     
    424410//******************************************************************************
    425411//******************************************************************************
    426 ODINFUNCTION2(BOOL, FindNextFileW,
    427               HANDLE, hFindFile,
    428               WIN32_FIND_DATAW *, lpFindFileData)
     412BOOL WIN32API FindNextFileW(HANDLE hFindFile, WIN32_FIND_DATAW * lpFindFileData)
    429413{
    430414  WIN32_FIND_DATAA wfda;
     
    454438//******************************************************************************
    455439//******************************************************************************
    456 ODINFUNCTION1(BOOL, FindClose,
    457               HANDLE, hFindFile)
     440BOOL WIN32API FindClose(HANDLE hFindFile)
    458441{
    459442  return OSLibDosFindClose(hFindFile);
     
    461444//******************************************************************************
    462445//******************************************************************************
    463 ODINFUNCTION1(DWORD, GetFileType,
    464               HANDLE, hFile)
     446DWORD WIN32API GetFileType(HANDLE hFile)
    465447{
    466448  return(HMGetFileType(hFile));
     
    468450//******************************************************************************
    469451//******************************************************************************
    470 ODINFUNCTION2(DWORD, GetFileInformationByHandle,
    471               HANDLE, arg1,
    472               BY_HANDLE_FILE_INFORMATION *, arg2)
     452DWORD WIN32API GetFileInformationByHandle(HANDLE arg1, BY_HANDLE_FILE_INFORMATION * arg2)
    473453{
    474454  return(HMGetFileInformationByHandle(arg1,arg2));
     
    476456//******************************************************************************
    477457//******************************************************************************
    478 ODINFUNCTION1(BOOL, SetEndOfFile,
    479               HANDLE, arg1)
     458BOOL WIN32API SetEndOfFile(HANDLE arg1)
    480459{
    481460  return HMSetEndOfFile(arg1);
     
    483462//******************************************************************************
    484463//******************************************************************************
    485 ODINFUNCTION4(BOOL, SetFileTime,
    486               HANDLE, arg1,
    487               const FILETIME *, arg2,
    488               const FILETIME *, arg3,
    489               const FILETIME *, arg4)
     464BOOL WIN32API  SetFileTime(HANDLE arg1, const FILETIME * arg2,
     465                           const FILETIME * arg3,
     466                           const FILETIME * arg4)
    490467{
    491468  return HMSetFileTime(arg1,
     
    496473//******************************************************************************
    497474//******************************************************************************
    498 ODINFUNCTION2(INT, CompareFileTime,
    499               FILETIME *, lpft1,
    500               FILETIME *, lpft2)
     475INT WIN32API CompareFileTime(FILETIME * lpft1, FILETIME * lpft2)
    501476{
    502477   if (lpft1 == NULL || lpft2 == NULL) {
     
    521496//******************************************************************************
    522497//******************************************************************************
    523 ODINFUNCTION4(BOOL, GetFileTime, HANDLE, hFile, LPFILETIME, arg2, LPFILETIME, arg3, LPFILETIME, arg4)
     498BOOL WIN32API GetFileTime(HANDLE hFile, LPFILETIME arg2, LPFILETIME arg3, LPFILETIME arg4)
    524499{
    525500    return HMGetFileTime(hFile, arg2, arg3, arg4);
     
    527502//******************************************************************************
    528503//******************************************************************************
    529 ODINFUNCTION3(BOOL, CopyFileA,
    530               LPCSTR, arg1,
    531               LPCSTR, arg2,
    532               BOOL, arg3)
     504BOOL WIN32API CopyFileA(LPCSTR arg1, LPCSTR arg2, BOOL arg3)
    533505{
    534506  return OSLibDosCopyFile(arg1, arg2, arg3);
    535507}
    536508//******************************************************************************
    537 //SvL: 24-6-'97 - Added
    538 //******************************************************************************
    539 ODINFUNCTION3(BOOL, CopyFileW,
    540               LPCWSTR, arg1,
    541               LPCWSTR, arg2,
    542               BOOL, arg3)
     509//******************************************************************************
     510BOOL WIN32API CopyFileW(LPCWSTR arg1, LPCWSTR arg2, BOOL arg3)
    543511{
    544512  BOOL  rc;
     
    547515  astring1 = UnicodeToAsciiString((LPWSTR)arg1);
    548516  astring2 = UnicodeToAsciiString((LPWSTR)arg2);
    549   rc = CALL_ODINFUNC(CopyFileA)(astring1, astring2, arg3);
     517  rc = CopyFileA(astring1, astring2, arg3);
    550518  FreeAsciiString(astring2);
    551519  FreeAsciiString(astring1);
     
    576544
    577545BOOL WIN32API CopyFileExA( LPCSTR             lpExistingFileName,
    578                               LPCSTR             lpNewFileName,
    579                               LPPROGRESS_ROUTINE lpProgressRoutine,
    580                               LPVOID             lpData,
    581                               LPBOOL             pbCancel,
    582                               DWORD              dwCopyFlags)
     546                           LPCSTR             lpNewFileName,
     547                           LPPROGRESS_ROUTINE lpProgressRoutine,
     548                           LPVOID             lpData,
     549                           LPBOOL             pbCancel,
     550                           DWORD              dwCopyFlags)
    583551{
    584552
     
    653621//******************************************************************************
    654622//******************************************************************************
    655 ODINFUNCTION2(DWORD, GetFileSize,
    656               HANDLE, arg1,
    657               PDWORD, arg2)
     623DWORD WIN32API GetFileSize(HANDLE arg1, PDWORD arg2)
    658624{
    659625  return HMGetFileSize(arg1,
     
    662628//******************************************************************************
    663629//******************************************************************************
    664 ODINFUNCTION1(BOOL, DeleteFileA,
    665               LPCSTR, lpszFile)
     630BOOL WIN32API DeleteFileA(LPCSTR lpszFile)
    666631{
    667632 BOOL rc;
    668633
    669 #if 0
    670   dprintf(("DeleteFileA %s", lpszFile));
    671   return 1;
    672 #else
    673634  rc = OSLibDosDelete((LPSTR)lpszFile);
    674635  if(!rc) {
     
    681642
    682643  return rc;
    683 #endif
    684 }
    685 //******************************************************************************
    686 //******************************************************************************
    687 ODINFUNCTION1(BOOL, DeleteFileW,
    688               LPCWSTR, arg1)
     644}
     645//******************************************************************************
     646//******************************************************************************
     647BOOL WIN32API DeleteFileW(LPCWSTR arg1)
    689648{
    690649  BOOL  rc;
     
    692651
    693652  astring = UnicodeToAsciiString((LPWSTR)arg1);
    694   rc = CALL_ODINFUNC(DeleteFileA)(astring);
     653  rc = DeleteFileA(astring);
    695654  FreeAsciiString(astring);
    696655  return(rc);
     
    698657//******************************************************************************
    699658//******************************************************************************
    700 ODINFUNCTION4(UINT, GetTempFileNameA,
    701               LPCSTR, arg1,
    702               LPCSTR, arg2,
    703               UINT, arg3,
    704               LPSTR, arg4)
     659UINT WIN32API GetTempFileNameA(LPCSTR arg1, LPCSTR arg2, UINT arg3, LPSTR arg4)
    705660{
    706661  return O32_GetTempFileName(arg1, arg2, arg3, arg4);
     
    708663//******************************************************************************
    709664//******************************************************************************
    710 ODINFUNCTION4(UINT, GetTempFileNameW,
    711               LPCWSTR, lpPathName,
    712               LPCWSTR, lpPrefixString,
    713               UINT, uUnique,
    714               LPWSTR, lpTempFileName)
     665UINT WIN32API GetTempFileNameW(LPCWSTR lpPathName, LPCWSTR lpPrefixString,
     666                               UINT uUnique, LPWSTR lpTempFileName)
    715667{
    716668  char *asciipath, *asciiprefix;
     
    729681//******************************************************************************
    730682//******************************************************************************
    731 ODINFUNCTION5(BOOL,         ReadFile,
    732               HANDLE,       hFile,
    733               PVOID,        pBuffer,
    734               DWORD,        dwLength,
    735               PDWORD,       lpNumberOfBytesRead,
    736               LPOVERLAPPED, lpOverlapped)
     683BOOL WIN32API ReadFile(HANDLE hFile, PVOID pBuffer, DWORD dwLength,
     684                       PDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped)
    737685{
    738686  if(lpNumberOfBytesRead) *lpNumberOfBytesRead = 0;
     
    750698//******************************************************************************
    751699//******************************************************************************
    752 ODINFUNCTION5(BOOL,         ReadFileEx,
    753               HANDLE,       hFile,
    754               LPVOID,       lpBuffer,
    755               DWORD,        nNumberOfBytesToRead,
    756               LPOVERLAPPED, lpOverlapped,
    757               LPOVERLAPPED_COMPLETION_ROUTINE,  lpCompletionRoutine)
     700BOOL WIN32API ReadFileEx(HANDLE       hFile,
     701                         LPVOID       lpBuffer,
     702                         DWORD        nNumberOfBytesToRead,
     703                         LPOVERLAPPED lpOverlapped,
     704                         LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    758705{
    759706  if(nNumberOfBytesToRead == 0) {
     
    780727//******************************************************************************
    781728//******************************************************************************
    782 ODINFUNCTION5(BOOL, WriteFile,
    783               HANDLE, hFile,
    784               LPCVOID, buffer,
    785               DWORD, nrbytes,
    786               LPDWORD, nrbyteswritten,
    787               LPOVERLAPPED, lpOverlapped)
     729BOOL WIN32API WriteFile(HANDLE hFile, LPCVOID buffer, DWORD nrbytes,
     730                        LPDWORD nrbyteswritten, LPOVERLAPPED lpOverlapped)
    788731{
    789732  if(nrbyteswritten) *nrbyteswritten = 0;
     
    821764 *****************************************************************************/
    822765
    823 ODINFUNCTION5(BOOL,         WriteFileEx,
    824               HANDLE,       hFile,
    825               LPCVOID,      lpBuffer,
    826               DWORD,        nNumberOfBytesToWrite,
    827               LPOVERLAPPED, lpOverlapped,
    828               LPOVERLAPPED_COMPLETION_ROUTINE,  lpCompletionRoutine)
     766BOOL WIN32API WriteFileEx(HANDLE       hFile,
     767                          LPCVOID      lpBuffer,
     768                          DWORD        nNumberOfBytesToWrite,
     769                          LPOVERLAPPED lpOverlapped,
     770                          LPOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine)
    829771{
    830772  if(nNumberOfBytesToWrite == 0) {
     
    851793//******************************************************************************
    852794//******************************************************************************
    853 ODINFUNCTION4(DWORD, SetFilePointer,
    854               HANDLE, hFile,
    855               LONG, lDistanceToMove,
    856               PLONG, lpDistanceToMoveHigh,
    857               DWORD, dwMoveMethod)
     795DWORD WIN32API SetFilePointer(HANDLE hFile, LONG lDistanceToMove,
     796                              PLONG lpDistanceToMoveHigh, DWORD dwMoveMethod)
    858797{
    859798  return(HMSetFilePointer(hFile,
     
    864803//******************************************************************************
    865804//******************************************************************************
    866 ODINFUNCTION1(DWORD, GetFileAttributesA,
    867               LPCSTR, lpszFileName)
     805DWORD WIN32API GetFileAttributesA(LPCSTR lpszFileName)
    868806{
    869807    DWORD rc, error;
     
    908846//******************************************************************************
    909847//******************************************************************************
    910 ODINFUNCTION1(DWORD, GetFileAttributesW,
    911               LPCWSTR, arg1)
     848DWORD WIN32API GetFileAttributesW(LPCWSTR arg1)
    912849{
    913850  DWORD rc;
     
    915852
    916853  astring = UnicodeToAsciiString((LPWSTR)arg1);
    917   rc = CALL_ODINFUNC(GetFileAttributesA)(astring);
     854  rc = GetFileAttributesA(astring);
    918855  FreeAsciiString(astring);
    919856  return(rc);
     
    921858//******************************************************************************
    922859//******************************************************************************
    923 ODINFUNCTION2(BOOL, SetFileAttributesA,
    924               LPCSTR, arg1,
    925               DWORD, arg2)
    926 {
    927     dprintf(("KERNEL32:  SetFileAttributes of %s\n", arg1));
    928     return O32_SetFileAttributes(arg1, arg2);
    929 }
    930 //******************************************************************************
    931 //******************************************************************************
    932 ODINFUNCTION2(BOOL, SetFileAttributesW,
    933               LPCWSTR, lpFileName,
    934               DWORD, dwFileAttributes)
     860BOOL WIN32API SetFileAttributesA(LPCSTR lpFileName, DWORD dwFileAttributes)
     861{
     862    dprintf(("KERNEL32: SetFileAttributes of %s", lpFileName));
     863    return O32_SetFileAttributes(lpFileName, dwFileAttributes);
     864}
     865//******************************************************************************
     866//******************************************************************************
     867BOOL WIN32API SetFileAttributesW(LPCWSTR lpFileName, DWORD dwFileAttributes)
    935868{
    936869  char *asciifile;
     
    938871
    939872  asciifile = UnicodeToAsciiString((LPWSTR)lpFileName);
    940   rc = O32_SetFileAttributes(asciifile, dwFileAttributes);
     873  rc = SetFileAttributesA(asciifile, dwFileAttributes);
    941874  FreeAsciiString(asciifile);
    942875  return(rc);
     
    944877//******************************************************************************
    945878//******************************************************************************
    946 ODINFUNCTION4(DWORD, GetFullPathNameA,
    947               LPCSTR, arg1,
    948               DWORD, arg2,
    949               LPSTR, arg3,
    950               LPSTR *, arg4)
     879DWORD WIN32API GetFullPathNameA(LPCSTR arg1, DWORD arg2, LPSTR  arg3,
     880                                LPSTR * arg4)
    951881{
    952882    char *ptr;
     
    960890//******************************************************************************
    961891//******************************************************************************
    962 ODINFUNCTION4(DWORD, GetFullPathNameW,
    963               LPCWSTR, lpFileName,
    964               DWORD, nBufferLength,
    965               LPWSTR, lpBuffer,
    966               LPWSTR *, lpFilePart)
     892DWORD WIN32API GetFullPathNameW(LPCWSTR lpFileName, DWORD nBufferLength,
     893                                LPWSTR lpBuffer, LPWSTR *lpFilePart)
    967894{
    968895 char *astring, *asciibuffer, *asciipart;
     
    972899  astring     = UnicodeToAsciiString((LPWSTR)lpFileName);
    973900
    974   rc = CALL_ODINFUNC(GetFullPathNameA)(astring,
    975                              nBufferLength,
    976                              asciibuffer,
    977                              &asciipart);
     901  rc = GetFullPathNameA(astring, nBufferLength,
     902                        asciibuffer, &asciipart);
    978903
    979904  dprintf(("KERNEL32: GetFullPathNameW %s returns %s\n",
     
    998923//******************************************************************************
    999924//******************************************************************************
    1000 ODINFUNCTION5(BOOL, LockFile,
    1001               HANDLE, arg1,
    1002               DWORD, arg2,
    1003               DWORD, arg3,
    1004               DWORD, arg4,
    1005               DWORD, arg5)
     925BOOL WIN32API LockFile(HANDLE arg1, DWORD arg2,
     926                       DWORD arg3, DWORD arg4,
     927                       DWORD arg5)
    1006928{
    1007929  return HMLockFile(arg1,
     
    1030952 *****************************************************************************/
    1031953
    1032 ODINFUNCTION6(BOOL, LockFileEx,
    1033               HANDLE, hFile,
    1034               DWORD, dwFlags,
    1035               DWORD, dwReserved,
    1036               DWORD, nNumberOfBytesToLockLow,
    1037               DWORD, nNumberOfBytesToLockHigh,
    1038               LPOVERLAPPED, lpOverlapped)
     954BOOL LockFileEx(HANDLE hFile, DWORD dwFlags, DWORD dwReserved,
     955                DWORD nNumberOfBytesToLockLow,
     956                DWORD nNumberOfBytesToLockHigh,
     957                LPOVERLAPPED lpOverlapped)
    1039958{
    1040959  return(HMLockFile(hFile,
     
    1046965//******************************************************************************
    1047966//******************************************************************************
    1048 ODINFUNCTION2(BOOL, MoveFileA,
    1049               LPCSTR, arg1,
    1050               LPCSTR, arg2)
     967BOOL WIN32API MoveFileA(LPCSTR arg1, LPCSTR arg2)
    1051968{
    1052969    dprintf(("KERNEL32: MoveFileA %s %s", arg1, arg2));
     
    1071988 *****************************************************************************/
    1072989
    1073 ODINFUNCTION3(BOOL, MoveFileExA,
    1074               LPCSTR, lpszOldFilename,
    1075               LPCSTR, lpszNewFilename,
    1076               DWORD, fdwFlags)
     990BOOL WIN32API MoveFileExA(LPCSTR lpszOldFilename,
     991                          LPCSTR lpszNewFilename,
     992                          DWORD fdwFlags)
    1077993{
    1078994  dprintf(("KERNEL32:  MoveFileExA %s to %s %x, not complete!\n",
     
    11341050//******************************************************************************
    11351051//******************************************************************************
    1136 ODINFUNCTION2(BOOL, MoveFileW,
    1137               LPCWSTR, lpSrc,
    1138               LPCWSTR, lpDest)
     1052BOOL WIN32API MoveFileW(LPCWSTR lpSrc, LPCWSTR lpDest)
    11391053{
    11401054  char *asciisrc, *asciidest;
     
    11501064//******************************************************************************
    11511065//******************************************************************************
    1152 ODINFUNCTION3(BOOL, MoveFileExW,
    1153               LPCWSTR, lpSrc,
    1154               LPCWSTR, lpDest,
    1155               DWORD, fdwFlags)
     1066BOOL WIN32API MoveFileExW(LPCWSTR lpSrc, LPCWSTR lpDest, DWORD fdwFlags)
    11561067{
    11571068  dprintf(("KERNEL32: MoveFileExW %ls to %ls %x",
     
    11961107 *****************************************************************************/
    11971108
    1198 ODINFUNCTION3(HFILE, OpenFile,
    1199               LPCSTR, lpszFile,
    1200               OFSTRUCT *, lpOpenBuff,
    1201               UINT, fuMode)
     1109HFILE WIN32API OpenFile(LPCSTR lpszFile, OFSTRUCT *lpOpenBuff,
     1110                        UINT fuMode)
    12021111{
    12031112  HFILE hFile;
     
    12161125//******************************************************************************
    12171126//******************************************************************************
    1218 ODINFUNCTION5(BOOL, UnlockFile,
    1219               HANDLE, arg1,
    1220               DWORD, arg2,
    1221               DWORD, arg3,
    1222               DWORD, arg4,
    1223               DWORD, arg5)
     1127BOOL WIN32API UnlockFile(HANDLE arg1, DWORD arg2, DWORD arg3,
     1128                         DWORD arg4,  DWORD arg5)
    12241129{
    12251130  return HMUnlockFile(arg1,
     
    12471152 *****************************************************************************/
    12481153
    1249 ODINFUNCTION5(BOOL, UnlockFileEx,
    1250               HANDLE, hFile,
    1251               DWORD, dwReserved,
    1252               DWORD, nNumberOfBytesToLockLow,
    1253               DWORD, nNumberOfBytesToLockHigh,
    1254               LPOVERLAPPED, lpOverlapped)
     1154BOOL WIN32API UnlockFileEx(HANDLE hFile, DWORD dwReserved,
     1155                           DWORD nNumberOfBytesToLockLow,
     1156                           DWORD nNumberOfBytesToLockHigh,
     1157                           LPOVERLAPPED lpOverlapped)
    12551158{
    12561159  return(HMUnlockFileEx(hFile, dwReserved,
     
    12701173//- if successful -> return length of string (excluding 0 terminator)
    12711174//******************************************************************************
    1272 ODINFUNCTION3(DWORD, GetShortPathNameA,
    1273               LPCTSTR, lpszLongPath,
    1274               LPTSTR, lpszShortPath,
    1275               DWORD, cchBuffer)
     1175DWORD WIN32API GetShortPathNameA(LPCTSTR lpszLongPath,
     1176                                 LPTSTR lpszShortPath,
     1177                                 DWORD cchBuffer)
    12761178{
    12771179 int length;
     
    12861188  length = lstrlenA(lpszLongPath) + 1;
    12871189  if(length > cchBuffer) {
    1288   if(lpszShortPath) {
     1190      if(lpszShortPath) {
    12891191          *lpszShortPath = 0;
    1290   }
    1291         return(length); //return length required (including 0 terminator)
     1192      }
     1193      return(length); //return length required (including 0 terminator)
    12921194  }
    12931195  lstrcpyA(lpszShortPath, lpszLongPath);
     
    12961198//******************************************************************************
    12971199//******************************************************************************
    1298 ODINFUNCTION3(DWORD, GetShortPathNameW,
    1299               LPCWSTR, lpszLongPath,
    1300               LPWSTR, lpszShortPath,
    1301               DWORD, cchBuffer)
     1200DWORD WIN32API GetShortPathNameW(LPCWSTR lpszLongPath, LPWSTR lpszShortPath,
     1201                                 DWORD cchBuffer)
    13021202{
    13031203 int length;
     
    13111211  length = lstrlenW(lpszLongPath) + 1;
    13121212  if(length > cchBuffer) {
    1313   if(lpszShortPath) {
     1213      if(lpszShortPath) {
    13141214          *lpszShortPath = 0;
    1315   }
    1316         return(length); //return length required (including 0 terminator)
     1215      }
     1216      return(length); //return length required (including 0 terminator)
    13171217  }
    13181218  lstrcpyW(lpszShortPath, lpszLongPath);
     
    13791279//******************************************************************************
    13801280//******************************************************************************
    1381 ODINPROCEDURE0(SetFileApisToANSI)
     1281void WIN32API SetFileApisToANSI()
    13821282{
    13831283    dprintf(("!WARNING! SetFileApisToANSI() stub\n"));
     
    13991299 *****************************************************************************/
    14001300
    1401 ODINFUNCTION2(DWORD, GetCompressedFileSizeA,
    1402               LPCTSTR, lpFileName,
    1403               LPDWORD, lpFileSizeHigh)
     1301DWORD WIN32API GetCompressedFileSizeA(LPCTSTR lpFileName, LPDWORD lpFileSizeHigh)
    14041302{
    14051303  dprintf(("KERNEL32: GetCompressedFileSizeA (%s, %08xh) not implemented.\n",
     
    14271325 *****************************************************************************/
    14281326
    1429 ODINFUNCTION2(DWORD, GetCompressedFileSizeW,
    1430               LPCWSTR, lpFileName,
    1431               LPDWORD, lpFileSizeHigh)
     1327DWORD WIN32API GetCompressedFileSizeW(LPCWSTR lpFileName, LPDWORD lpFileSizeHigh)
    14321328{
    14331329  LPCTSTR lpAsciiFileName;                             /* converted filename */
     
    14611357 *****************************************************************************/
    14621358
    1463 ODINFUNCTION3(BOOL, GetFileAttributesExA,
    1464               LPCSTR, lpFileName,
    1465               GET_FILEEX_INFO_LEVELS, fInfoLevelId,
    1466               LPVOID, lpFileInformation)
     1359BOOL WIN32API GetFileAttributesExA(LPCSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId,
     1360                                   LPVOID lpFileInformation)
    14671361{
    14681362  BOOL rc;
     
    15061400 *****************************************************************************/
    15071401
    1508 ODINFUNCTION3(BOOL, GetFileAttributesExW,
    1509               LPCWSTR, lpFileName,
    1510               GET_FILEEX_INFO_LEVELS, fInfoLevelId,
    1511               LPVOID, lpFileInformation)
     1402BOOL WIN32API GetFileAttributesExW(LPCWSTR lpFileName,
     1403                                   GET_FILEEX_INFO_LEVELS fInfoLevelId,
     1404                                   LPVOID lpFileInformation)
    15121405{
    15131406  LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, lpFileName );
     
    15191412//******************************************************************************
    15201413//******************************************************************************
    1521 ODINFUNCTION3(HANDLE, FindFirstChangeNotificationA,
    1522               LPCSTR, lpPathName,
    1523               BOOL, bWatchSubtree,
    1524               DWORD, dwNotifyFilter)
     1414HANDLE WIN32API FindFirstChangeNotificationA(LPCSTR lpPathName,
     1415                                             BOOL bWatchSubtree,
     1416                                             DWORD dwNotifyFilter)
    15251417{
    15261418  dprintf(("KERNEL32:  FindFirstChangeNotificationA %s, Not implemented (faked)", lpPathName));
     
    15291421//******************************************************************************
    15301422//******************************************************************************
    1531 ODINFUNCTION1(BOOL, FindNextChangeNotification,
    1532               HANDLE, hChange)
     1423BOOL WIN32API FindNextChangeNotification(HANDLE hChange)
    15331424{
    15341425  dprintf(("KERNEL32: FindNextChangeNotification (%08xh), Not implemented\n",
     
    15391430//******************************************************************************
    15401431//******************************************************************************
    1541 ODINFUNCTION1(BOOL, FindCloseChangeNotification, HANDLE, hChange)
     1432BOOL WIN32API FindCloseChangeNotification(HANDLE hChange)
    15421433{
    15431434  dprintf(("KERNEL32:  OS2FindNextChangeNotification, Not implemented\n"));
     
    15651456 * Author    : Markus Montkowski [Tha, 1998/05/21 20:57]
    15661457 *****************************************************************************/
    1567 ODINFUNCTION3(HANDLE, FindFirstChangeNotificationW, LPCWSTR, lpPathName,
    1568                                                     BOOL, bWatchSubtree,
    1569                                                     DWORD, dwNotifyFilter)
     1458HANDLE WIN32API FindFirstChangeNotificationW(LPCWSTR lpPathName,
     1459                                             BOOL bWatchSubtree,
     1460                                             DWORD dwNotifyFilter)
    15701461{
    15711462  LPSTR  lpAsciiPath;
     
    15801471//******************************************************************************
    15811472//******************************************************************************
    1582 ODINFUNCTION8(BOOL, DeviceIoControl, HANDLE, hDevice, DWORD, dwIoControlCode,
    1583               LPVOID, lpInBuffer, DWORD, nInBufferSize,
    1584               LPVOID, lpOutBuffer, DWORD, nOutBufferSize,
    1585               LPDWORD, lpBytesReturned, LPOVERLAPPED, lpOverlapped)
     1473BOOL WIN32API DeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode,
     1474                              LPVOID lpInBuffer, DWORD nInBufferSize,
     1475                              LPVOID lpOutBuffer, DWORD nOutBufferSize,
     1476                              LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped)
    15861477{
    15871478    return HMDeviceIoControl(hDevice, dwIoControlCode, lpInBuffer, nInBufferSize,
     
    16021493 *             To get extended error information, call GetLastError.
    16031494 * Remark    : If there are any I/O operations in progress for the specified
    1604  *             file handle, and they were issued by the calling thread, the
     1495 *             file HANDLE and they were issued by the calling thread, the
    16051496 *             CancelIO function cancels them.
    16061497 *             Note that the I/O operations must have been issued as
     
    16121503 *             error ERROR_OPERATION_ABORTED. All completion notifications
    16131504 *             for the I/O operations will occur normally.
    1614  * Status    : UNTESTED STUB
     1505 * Status    :
    16151506 *
    16161507 * Author    : Markus Montkowski [Thu, 1998/05/19 11:46]
    16171508 *****************************************************************************/
    1618 ODINFUNCTION1(BOOL, CancelIo, HANDLE, hFile)
     1509BOOL WIN32API CancelIo(HANDLE hFile)
    16191510{
    16201511  return HMCancelIo(hFile);
     
    16321523 *****************************************************************************/
    16331524
    1634 ODINFUNCTION4(BOOL, GetOverlappedResult,
    1635               HANDLE, hFile,              /* [in] handle of file to check on */
    1636               LPOVERLAPPED, lpOverlapped, /* [in/out] pointer to overlapped  */
    1637               LPDWORD, lpTransferred,     /* [in/out] number of bytes transferred  */
    1638               BOOL, bWait)                /* [in] wait for the transfer to complete ? */
     1525BOOL WIN32API  GetOverlappedResult(HANDLE hFile,              /* [in] handle of file to check on */
     1526                                   LPOVERLAPPED lpOverlapped, /* [in/out] pointer to overlapped  */
     1527                                   LPDWORD lpTransferred,     /* [in/out] number of bytes transferred  */
     1528                                   BOOL bWait)                /* [in] wait for the transfer to complete ? */
    16391529{
    16401530  //NOTE: According to the SDK docs lpOverlapped->hEvent can be 0. This function
  • TabularUnified trunk/src/kernel32/comm.cpp

    r7471 r7849  
    1 /* $Id: comm.cpp,v 1.8 2001-11-28 15:35:15 sandervl Exp $ */
     1/* $Id: comm.cpp,v 1.9 2002-02-09 12:45:11 sandervl Exp $ */
    22
    33/*
     
    477477 *****************************************************************************/
    478478
    479 ODINFUNCTION3(BOOL,GetDefaultCommConfigA,
    480                LPCSTR, lpszName,
    481                LPCOMMCONFIG, lpCC,
    482                LPDWORD, lpdwSize )
     479BOOL WIN32API GetDefaultCommConfigA(LPCSTR lpszName, LPCOMMCONFIG lpCC,
     480                                    LPDWORD lpdwSize)
    483481{
    484482  HFILE hCOM;
     
    543541 *****************************************************************************/
    544542
    545 ODINFUNCTION3(BOOL, SetDefaultCommConfigA,
    546                LPCSTR, lpszName,
    547                LPCOMMCONFIG, lpCC,
    548                DWORD, dwSize )
     543BOOL SetDefaultCommConfigA(LPCSTR lpszName, LPCOMMCONFIG lpCC, DWORD dwSize )
    549544{
    550545  HFILE hCOM;
     
    618613 *****************************************************************************/
    619614
    620 ODINFUNCTION1(BOOL, ClearCommBreak, HANDLE, hFile )
     615BOOL WIN32API ClearCommBreak(HANDLE hFile )
    621616{
    622617  return HMCommClearCommBreak(hFile);
     
    633628 *****************************************************************************/
    634629
    635 ODINFUNCTION3(BOOL, SetupComm,
    636                HANDLE, hFile,
    637                DWORD, dwInQueue,
    638                DWORD, dwOutQueue )
     630BOOL SetupComm(HANDLE hFile, DWORD dwInQueue, DWORD dwOutQueue )
    639631{
    640632  return HMCommSetupComm(hFile, dwInQueue, dwOutQueue);
     
    650642 *****************************************************************************/
    651643
    652 ODINFUNCTION2 (BOOL, EscapeCommFunction,
    653                  HANDLE, hFile,
    654                  UINT, dwFunc )
     644BOOL WIN32API EscapeCommFunction(HANDLE hFile, UINT dwFunc )
    655645{
    656646  return HMCommEscapeCommFunction(hFile, dwFunc);
  • TabularUnified trunk/src/kernel32/dbgwrap.cpp

    r7848 r7849  
    425425DEBUGWRAP8(GetCompressedFileSizeA);
    426426DEBUGWRAP8(GetCompressedFileSizeW);
    427 DEBUGWRAP0(SetFileApisToANSI);
    428 DEBUGWRAP0(SetFileApisToOEM);
     427DEBUGWRAP0_NORET(SetFileApisToANSI);
     428DEBUGWRAP0_NORET(SetFileApisToOEM);
    429429DEBUGWRAP8(SetFileAttributesA);
    430430DEBUGWRAP8(SetFileAttributesW);
     
    735735
    736736DEBUGWRAP4(DebugActiveProcess);
    737 DEBUGWRAP0(DebugBreak);
     737DEBUGWRAP0_NORET(DebugBreak);
    738738DEBUGWRAP4(OutputDebugStringA);
    739739DEBUGWRAP4(OutputDebugStringW);
  • TabularUnified trunk/src/kernel32/dbgwrap.h

    r7848 r7849  
    2424    dprintf((DBGWRAP_MODULE": %s", #a));         \
    2525    dbg_ThreadPushCall(#a); \
    26     ret = ((DBG_WINPROC0)a)();         \
    27     dbg_ThreadPopCall(); \
    28     dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \
    29     return ret;                            \
     26    ret = (DWORD)a();         \
     27    dbg_ThreadPopCall(); \
     28    dprintf((DBGWRAP_MODULE": %s returned %x", #a, ret)); \
     29    return ret;                            \
     30}
     31
     32#define DEBUGWRAP0_NORET(a) \
     33void WIN32API Dbg##a()             \
     34{                                          \
     35    DWORD ret;                             \
     36    dprintf((DBGWRAP_MODULE": %s", #a));         \
     37    dbg_ThreadPushCall(#a); \
     38    a();         \
     39    dbg_ThreadPopCall(); \
    3040}
    3141
  • TabularUnified trunk/src/kernel32/directory.cpp

    r7798 r7849  
    1 /* $Id: directory.cpp,v 1.43 2002-02-03 21:06:40 sandervl Exp $ */
     1/* $Id: directory.cpp,v 1.44 2002-02-09 12:45:12 sandervl Exp $ */
    22
    33/*
     
    140140 *****************************************************************************/
    141141
    142 ODINFUNCTION2(UINT, GetCurrentDirectoryA, UINT,  nBufferLength,
    143                                           LPSTR, lpBuffer)
     142UINT WIN32API GetCurrentDirectoryA(UINT nBufferLength, LPSTR lpBuffer)
    144143{
    145144 UINT rc;
     
    166165 *****************************************************************************/
    167166
    168 ODINFUNCTION2(UINT, GetCurrentDirectoryW, UINT,   nBufferLength,
    169                                           LPWSTR, lpBuffer)
     167UINT WIN32API GetCurrentDirectoryW(UINT nBufferLength, LPWSTR lpBuffer)
    170168{
    171169  char *asciidir = (char *)malloc(nBufferLength+1);
    172170  int  rc;
    173171
    174   rc = CALL_ODINFUNC(GetCurrentDirectoryA)(nBufferLength, asciidir);
     172  rc = GetCurrentDirectoryA(nBufferLength, asciidir);
    175173  if(rc != 0)
    176174    AsciiToUnicode(asciidir, lpBuffer);
     
    191189 * Author    : Patrick Haller [Wed, 1999/09/28 20:44]
    192190 *****************************************************************************/
    193 
    194 
    195 ODINFUNCTION1(BOOL,   SetCurrentDirectoryA,
    196               LPCSTR, lpstrDirectory)
     191BOOL WIN32API SetCurrentDirectoryA(LPCSTR lpstrDirectory)
    197192{
    198193  if(HIWORD(lpstrDirectory) == 0)
     
    233228 *****************************************************************************/
    234229
    235 ODINFUNCTION1(BOOL,SetCurrentDirectoryW,LPCWSTR,lpPathName)
     230BOOL WIN32API SetCurrentDirectoryW(LPCWSTR lpPathName)
    236231{
    237232  char *asciipath;
     
    257252 *****************************************************************************/
    258253
    259 ODINFUNCTION2(BOOL,                CreateDirectoryA,
    260               LPCSTR,              lpstrDirectory,
    261               PSECURITY_ATTRIBUTES,arg2)
     254BOOL WIN32API CreateDirectoryA(LPCSTR lpstrDirectory, PSECURITY_ATTRIBUTES arg2)
    262255{
    263256  // 2001-05-28 PH
     
    311304 *****************************************************************************/
    312305
    313 ODINFUNCTION2(BOOL,CreateDirectoryW,LPCWSTR,             arg1,
    314                                     PSECURITY_ATTRIBUTES,arg2)
     306BOOL WIN32API CreateDirectoryW(LPCWSTR arg1, PSECURITY_ATTRIBUTES arg2)
    315307{
    316308  BOOL  rc;
     
    318310
    319311  astring = UnicodeToAsciiString((LPWSTR)arg1);
    320   rc = CALL_ODINFUNC(CreateDirectoryA)(astring, arg2);
     312  rc = CreateDirectoryA(astring, arg2);
    321313  FreeAsciiString(astring);
    322314  return(rc);
     
    413405 *****************************************************************************/
    414406
    415 ODINFUNCTION2(UINT,GetSystemDirectoryA,LPSTR,lpBuffer,
    416                                        UINT,uSize)
     407UINT WIN32API GetSystemDirectoryA(LPSTR lpBuffer, UINT uSize)
    417408{
    418409 int   len;
     
    439430 *****************************************************************************/
    440431
    441 ODINFUNCTION2(UINT,GetSystemDirectoryW,LPWSTR,lpBuffer,
    442                                        UINT,  uSize)
     432UINT WIN32API GetSystemDirectoryW(LPWSTR lpBuffer, UINT uSize)
    443433{
    444434  char *asciibuffer = NULL;
     
    473463 *****************************************************************************/
    474464
    475 ODINFUNCTION2(UINT,GetWindowsDirectoryA,LPSTR,lpBuffer,
    476                                         UINT,uSize)
     465UINT WIN32API GetWindowsDirectoryA(LPSTR lpBuffer, UINT uSize)
    477466{
    478467 char *dir;
     
    499488 *****************************************************************************/
    500489
    501 ODINFUNCTION2(UINT,GetWindowsDirectoryW,LPWSTR,lpBuffer,
    502                                         UINT,  uSize)
     490UINT WIN32API GetWindowsDirectoryW(LPWSTR lpBuffer, UINT uSize)
    503491{
    504492  char *asciibuffer = NULL;
     
    534522
    535523
    536 ODINFUNCTION1(BOOL, RemoveDirectoryA, LPCSTR, lpstrDirectory)
     524BOOL WIN32API RemoveDirectoryA(LPCSTR lpstrDirectory)
    537525{
    538526  int len = strlen(lpstrDirectory);
     
    571559 *****************************************************************************/
    572560
    573 ODINFUNCTION1(BOOL,RemoveDirectoryW,LPCWSTR,lpPathName)
     561BOOL WIN32API RemoveDirectoryW(LPCWSTR lpPathName)
    574562{
    575563  char *asciipath;
     
    756744//******************************************************************************
    757745//******************************************************************************
    758 ODINFUNCTION2(UINT, GetTempPathA,
    759               UINT, count, LPSTR, path)
     746UINT WIN32API GetTempPathA(UINT count, LPSTR path)
    760747{
    761748    UINT ret;
     
    773760//******************************************************************************
    774761//******************************************************************************
    775 ODINFUNCTION2(UINT, GetTempPathW,
    776               UINT, count, LPWSTR, path)
     762UINT WIN32API GetTempPathW(UINT count, LPWSTR path)
    777763{
    778764    static const WCHAR tmp[]  = { 'T', 'M', 'P', 0 };
  • TabularUnified trunk/src/kernel32/disk.cpp

    r7742 r7849  
    1 /* $Id: disk.cpp,v 1.31 2002-01-08 18:20:45 sandervl Exp $ */
     1/* $Id: disk.cpp,v 1.32 2002-02-09 12:45:12 sandervl Exp $ */
    22
    33/*
     
    5555//******************************************************************************
    5656//******************************************************************************
    57 ODINFUNCTION5(BOOL, GetDiskFreeSpaceA,
    58               LPCSTR, lpszRootPathName,
    59               PDWORD, lpSectorsPerCluster,
    60               PDWORD, lpBytesPerSector,
    61               PDWORD, lpFreeClusters,
    62               PDWORD, lpClusters)
     57BOOL WIN32API GetDiskFreeSpaceA(LPCSTR lpszRootPathName, PDWORD lpSectorsPerCluster,
     58                                PDWORD lpBytesPerSector, PDWORD lpFreeClusters,
     59                                PDWORD lpClusters)
    6360{
    6461  BOOL rc;
     
    105102//******************************************************************************
    106103//******************************************************************************
    107 ODINFUNCTION5(BOOL, GetDiskFreeSpaceW,
    108               LPCWSTR, lpszRootPathName,
    109               PDWORD, lpSectorsPerCluster,
    110               PDWORD, lpBytesPerSector,
    111               PDWORD, lpFreeClusters,
    112               PDWORD, lpClusters)
     104BOOL WIN32API GetDiskFreeSpaceW(LPCWSTR lpszRootPathName,
     105                                PDWORD  lpSectorsPerCluster,
     106                                PDWORD  lpBytesPerSector,
     107                                PDWORD  lpFreeClusters,
     108                                PDWORD  lpClusters)
    113109{
    114110  BOOL  rc;
     
    116112
    117113  astring = UnicodeToAsciiString((LPWSTR)lpszRootPathName);
    118   rc = CALL_ODINFUNC(GetDiskFreeSpaceA)(astring, lpSectorsPerCluster, lpBytesPerSector, lpFreeClusters, lpClusters);
     114  rc = GetDiskFreeSpaceA(astring, lpSectorsPerCluster, lpBytesPerSector, lpFreeClusters, lpClusters);
    119115  FreeAsciiString(astring);
    120116  return(rc);
     
    164160 *****************************************************************************/
    165161
    166 ODINFUNCTION4(BOOL,GetDiskFreeSpaceExA,
    167               LPCSTR,          lpDirectoryName,
    168               PULARGE_INTEGER, lpFreeBytesAvailableToCaller,
    169               PULARGE_INTEGER, lpTotalNumberOfBytes,
    170               PULARGE_INTEGER, lpTotalNumberOfFreeBytes )
     162BOOL WIN32API GetDiskFreeSpaceExA(LPCSTR lpDirectoryName,
     163                                  PULARGE_INTEGER lpFreeBytesAvailableToCaller,
     164                                  PULARGE_INTEGER lpTotalNumberOfBytes,
     165                                  PULARGE_INTEGER lpTotalNumberOfFreeBytes )
    171166{
    172167    BOOL rc;
     
    197192//******************************************************************************
    198193//******************************************************************************
    199 ODINFUNCTION4(BOOL,GetDiskFreeSpaceExW,
    200               LPCWSTR,         lpDirectoryName,
    201               PULARGE_INTEGER, lpFreeBytesAvailableToCaller,
    202               PULARGE_INTEGER, lpTotalNumberOfBytes,
    203               PULARGE_INTEGER, lpTotalNumberOfFreeBytes )
     194BOOL WIN32API GetDiskFreeSpaceExW(LPCWSTR         lpDirectoryName,
     195                                  PULARGE_INTEGER lpFreeBytesAvailableToCaller,
     196                                  PULARGE_INTEGER lpTotalNumberOfBytes,
     197                                  PULARGE_INTEGER lpTotalNumberOfFreeBytes )
    204198{
    205199 BOOL  rc;
     
    257251//******************************************************************************
    258252//******************************************************************************
    259 ODINFUNCTION8(BOOL,    GetVolumeInformationA,
    260               LPCSTR,  lpRootPathName,
    261               LPSTR,   lpVolumeNameBuffer,
    262               DWORD,   nVolumeNameSize,
    263               PDWORD,  lpVolumeSerialNumber,
    264               PDWORD,  lpMaximumComponentLength,
    265               PDWORD,  lpFileSystemFlags,
    266               LPSTR,   lpFileSystemNameBuffer,
    267               DWORD,   nFileSystemNameSize)
     253BOOL WIN32API GetVolumeInformationA(LPCSTR  lpRootPathName,
     254                                    LPSTR   lpVolumeNameBuffer,
     255                                    DWORD   nVolumeNameSize,
     256                                    PDWORD  lpVolumeSerialNumber,
     257                                    PDWORD  lpMaximumComponentLength,
     258                                    PDWORD  lpFileSystemFlags,
     259                                    LPSTR   lpFileSystemNameBuffer,
     260                                    DWORD   nFileSystemNameSize)
    268261{
    269262   CHAR   tmpstring[256];
     
    363356//******************************************************************************
    364357//******************************************************************************
    365 ODINFUNCTION8(BOOL,    GetVolumeInformationW,
    366               LPCWSTR, lpRootPathName,
    367               LPWSTR,  lpVolumeNameBuffer,
    368               DWORD,   nVolumeNameSize,
    369               PDWORD,  lpVolumeSerialNumber,
    370               PDWORD,  lpMaximumComponentLength,
    371               PDWORD,  lpFileSystemFlags,
    372               LPWSTR,  lpFileSystemNameBuffer,
    373               DWORD,   nFileSystemNameSize)
     358BOOL WIN32API GetVolumeInformationW(LPCWSTR lpRootPathName,
     359                                    LPWSTR  lpVolumeNameBuffer,
     360                                    DWORD   nVolumeNameSize,
     361                                    PDWORD  lpVolumeSerialNumber,
     362                                    PDWORD  lpMaximumComponentLength,
     363                                    PDWORD  lpFileSystemFlags,
     364                                    LPWSTR  lpFileSystemNameBuffer,
     365                                    DWORD   nFileSystemNameSize)
    374366{
    375367  char *asciiroot,
     
    391383    asciiroot = NULL;
    392384
    393   rc = CALL_ODINFUNC(GetVolumeInformationA)(asciiroot,
     385  rc = GetVolumeInformationA(asciiroot,
    394386                             asciivol,
    395387                             nVolumeNameSize,
  • TabularUnified trunk/src/kernel32/environ.cpp

    r7342 r7849  
    1 /* $Id: environ.cpp,v 1.13 2001-11-14 18:38:48 sandervl Exp $ */
     1/* $Id: environ.cpp,v 1.14 2002-02-09 12:45:12 sandervl Exp $ */
    22
    33/*
     
    4646//******************************************************************************
    4747//******************************************************************************
    48 ODINFUNCTION0(LPWSTR, GetEnvironmentStringsW)
     48LPWSTR WIN32API GetEnvironmentStringsW()
    4949{
    5050  char *envstrings = (char *)O32_GetEnvironmentStrings();
     
    7575//******************************************************************************
    7676//******************************************************************************
    77 ODINFUNCTION1(BOOL, FreeEnvironmentStringsA,
    78               LPSTR, envstrings)
     77BOOL WIN32API FreeEnvironmentStringsA(LPSTR envstrings)
    7978{
    8079  return(TRUE);
     
    8281//******************************************************************************
    8382//******************************************************************************
    84 ODINFUNCTION1(BOOL, FreeEnvironmentStringsW,
    85               LPWSTR, envstrings)
     83BOOL WIN32API FreeEnvironmentStringsW(LPWSTR envstrings)
    8684{
    8785  free(envstrings);
     
    9088//******************************************************************************
    9189//******************************************************************************
    92 ODINFUNCTION2(BOOL, SetEnvironmentVariableA,
    93               LPCSTR, lpName,
    94               LPCSTR, lpValue)
     90BOOL WIN32API SetEnvironmentVariableA(LPCSTR lpName, LPCSTR lpValue)
    9591{
    9692  dprintf(("KERNEL32:  SetEnvironmentVariable %s to %s\n", lpName, lpValue));
     
    9995//******************************************************************************
    10096//******************************************************************************
    101 ODINFUNCTION2(BOOL, SetEnvironmentVariableW,
    102               LPCWSTR, lpName,
    103               LPCWSTR, lpValue)
     97BOOL WIN32API SetEnvironmentVariableW(LPCWSTR lpName, LPCWSTR lpValue)
    10498{
    10599  char *asciiname, *asciivalue;
     
    116110//******************************************************************************
    117111//******************************************************************************
    118 ODINFUNCTION3(DWORD,  GetEnvironmentVariableA,
    119               LPCSTR, lpName,
    120               LPSTR,  lpBuffer,
    121               DWORD,  nSize)
     112DWORD WIN32API GetEnvironmentVariableA(LPCSTR lpName, LPSTR lpBuffer,
     113                                       DWORD nSize)
    122114{
    123115  dprintf(("GetEnvironmentVariableA %s", lpName));
     
    126118//******************************************************************************
    127119//******************************************************************************
    128 ODINFUNCTION3(DWORD, GetEnvironmentVariableW,
    129               LPCWSTR, lpName,
    130               LPWSTR,  lpBuffer,
    131               DWORD,   nSize)
     120DWORD WIN32API GetEnvironmentVariableW(LPCWSTR lpName, LPWSTR lpBuffer,
     121                                       DWORD nSize)
    132122{
    133123  char *astring, *asciibuffer;
     
    149139  astring     = UnicodeToAsciiString((LPWSTR)lpName);
    150140
    151   rc = CALL_ODINFUNC(GetEnvironmentVariableA)(astring, asciibuffer, nSize);
     141  rc = GetEnvironmentVariableA(astring, asciibuffer, nSize);
    152142  if(asciibuffer)
    153143      AsciiToUnicode(asciibuffer, lpBuffer);
     
    192182 *****************************************************************************/
    193183
    194 ODINFUNCTION3(DWORD,  ExpandEnvironmentStringsA,
    195               LPCSTR, src,
    196               LPSTR,  dst,
    197               DWORD,  count)
     184DWORD WIN32API ExpandEnvironmentStringsA(LPCSTR src, LPSTR dst, DWORD count)
    198185{
    199186  DWORD len, total_size = 1;  /* 1 for terminating '\0' */
     
    278265 *****************************************************************************/
    279266
    280 ODINFUNCTION3(DWORD,   ExpandEnvironmentStringsW,
    281               LPCWSTR, lpSrc,
    282               LPWSTR,  lpDst,
    283               DWORD,   nSize)
     267DWORD WIN32API  ExpandEnvironmentStringsW(LPCWSTR lpSrc, LPWSTR lpDst,
     268                                          DWORD nSize)
    284269{
    285270  LPSTR srcA = HEAP_strdupWtoA( GetProcessHeap(), 0, lpSrc );
  • TabularUnified trunk/src/kernel32/lang.cpp

    r7832 r7849  
    1 /* $Id: lang.cpp,v 1.39 2002-02-07 16:34:53 sandervl Exp $ */
     1/* $Id: lang.cpp,v 1.40 2002-02-09 12:45:13 sandervl Exp $ */
    22/*
    33 * Win32 language API functions for OS/2
     
    249249 * Author    : Przemyslaw Dobrowolski [Tue, 1999/07/22 17:07]
    250250 *****************************************************************************/
    251 ODINFUNCTION4(int, GetLocaleInfoW, LCID, lcid, LCTYPE, LCType, LPWSTR, wbuf,
    252               int, len)
     251int WIN32API GetLocaleInfoW(LCID lcid, LCTYPE LCType, LPWSTR wbuf,
     252                            int len)
    253253{
    254254  LocaleObject    locale_object = NULL;
     
    866866 * Author    : Przemyslaw Dobrowolski [Tue, 1999/07/21 12:18]
    867867 *****************************************************************************/
    868 ODINFUNCTION4(int, GetLocaleInfoA, LCID, lcid, LCTYPE, LCType, LPSTR, buf,
    869               int, len)
     868int WIN32API GetLocaleInfoA(LCID lcid, LCTYPE LCType, LPSTR buf, int len)
    870869{
    871870  LPWSTR lpWStr;
  • TabularUnified trunk/src/kernel32/mailslot.cpp

    r6646 r7849  
    1 /* $Id: mailslot.cpp,v 1.2 2001-09-05 12:57:59 bird Exp $
     1/* $Id: mailslot.cpp,v 1.3 2002-02-09 12:45:13 sandervl Exp $
    22 *
    33 * Win32 mailslot APIs
     
    4343 *****************************************************************************/
    4444
    45 ODINFUNCTION4(HANDLE, CreateMailslotA, LPCSTR, lpName, DWORD, nMaxMessageSize,
    46                                        DWORD, lReadTimeout,
    47                                        LPSECURITY_ATTRIBUTES, lpSecurityAttributes)
     45HANDLE WIN32API CreateMailslotA(LPCSTR lpName, DWORD nMaxMessageSize,
     46                                DWORD lReadTimeout,
     47                                LPSECURITY_ATTRIBUTES lpSecurityAttributes)
    4848{
    4949  return HMCreateMailslotA(lpName, nMaxMessageSize, lReadTimeout, lpSecurityAttributes);
     
    7272 *****************************************************************************/
    7373
    74 ODINFUNCTION4(HANDLE, CreateMailslotW, LPCWSTR, lpName, DWORD, nMaxMessageSize,
    75                                        DWORD, lReadTimeout,
    76                                        LPSECURITY_ATTRIBUTES, lpSecurityAttributes)
     74HANDLE WIN32API CreateMailslotW(LPCWSTR lpName, DWORD nMaxMessageSize,
     75                                DWORD lReadTimeout,
     76                                LPSECURITY_ATTRIBUTES lpSecurityAttributes)
    7777{
    7878  HANDLE rc;
     
    102102 *****************************************************************************/
    103103
    104 ODINFUNCTION5(BOOL, GetMailslotInfo, HANDLE,  hMailslot,
    105                                     LPDWORD, lpMaxMessageSize,
    106                                     LPDWORD, lpNextSize,
    107                                     LPDWORD, lpMessageCount,
    108                                     LPDWORD, lpReadTimeout)
     104BOOL WIN32API GetMailslotInfo(HANDLE  hMailslot,
     105                              LPDWORD lpMaxMessageSize,
     106                              LPDWORD lpNextSize,
     107                              LPDWORD lpMessageCount,
     108                              LPDWORD lpReadTimeout)
    109109{
    110110  return HMGetMailslotInfo(hMailslot, lpMaxMessageSize, lpNextSize,
     
    126126 *****************************************************************************/
    127127
    128 ODINFUNCTION2(BOOL, SetMailslotInfo,HANDLE, hMailslot, DWORD, dwReadTimeout)
     128BOOL WIN32API SetMailslotInfo(HANDLE hMailslot, DWORD dwReadTimeout)
    129129{
    130130  return HMSetMailslotInfo(hMailslot, dwReadTimeout);
  • TabularUnified trunk/src/kernel32/ole2nls.c

    r7832 r7849  
    1 /* $Id: ole2nls.c,v 1.1 2002-02-07 16:34:53 sandervl Exp $
     1/* $Id: ole2nls.c,v 1.2 2002-02-09 12:45:13 sandervl Exp $
    22 *
    33 *  National Language Support library
     
    13701370 *    so there is nothing to be done for this flag.
    13711371 */
    1372 #ifdef __WIN32OS2__
    1373 ODINFUNCTION6(INT, LCMapStringA,
    1374     LCID, lcid,      /* [in] locale identifier created with MAKELCID;
    1375                         LOCALE_SYSTEM_DEFAULT and LOCALE_USER_DEFAULT are
    1376                                 predefined values. */
    1377     DWORD, mapflags, /* [in] flags */
    1378     LPCSTR, srcstr,  /* [in] source buffer */
    1379     INT, srclen,     /* [in] source length */
    1380     LPSTR, dststr,   /* [out] destination buffer */
    1381     INT, dstlen)     /* [in] destination buffer length */
    1382 {
    1383   int i;
    1384 #else
    13851372INT WINAPI LCMapStringA(
    13861373    LCID lcid,      /* [in] locale identifier created with MAKELCID;
     
    13971384  TRACE("(0x%04lx,0x%08lx,%s,%d,%p,%d)\n",
    13981385    lcid,mapflags,srcstr,srclen,dststr,dstlen);
    1399 #endif
    14001386
    14011387  if ( ((dstlen!=0) && (dststr==NULL)) || (srcstr==NULL) )
     
    16321618 * See LCMapStringA for documentation
    16331619 */
    1634 #ifdef __WIN32OS2__
    1635 ODINFUNCTION6(INT, LCMapStringW,
    1636     LCID, lcid,DWORD, mapflags,LPCWSTR, srcstr,INT, srclen,LPWSTR, dststr,
    1637     INT, dstlen)
    1638 {
    1639   int i;
    1640 
    1641 #else
    16421620INT WINAPI LCMapStringW(
    16431621    LCID lcid,DWORD mapflags,LPCWSTR srcstr,INT srclen,LPWSTR dststr,
     
    16481626  TRACE("(0x%04lx,0x%08lx,%p,%d,%p,%d)\n",
    16491627                 lcid, mapflags, srcstr, srclen, dststr, dstlen);
    1650 #endif
    16511628
    16521629  if ( ((dstlen!=0) && (dststr==NULL)) || (srcstr==NULL) )
  • TabularUnified trunk/src/kernel32/toolhelp.cpp

    r4451 r7849  
    1 /* $Id: toolhelp.cpp,v 1.3 2000-10-08 14:01:02 sandervl Exp $ */
     1/* $Id: toolhelp.cpp,v 1.4 2002-02-09 12:45:13 sandervl Exp $ */
    22
    33/*
     
    3333 */
    3434
    35 ODINFUNCTION2(HANDLE,CreateToolhelp32Snapshot,DWORD,dwFlags,
    36                                               DWORD,dwProcess)
     35HANDLE WIN32API CreateToolhelp32Snapshot(DWORD dwFlags, DWORD dwProcess)
    3736{
    3837  dprintf(("KERNEL32: CreateToolhelp32Snapshot %x %x not implemented, dwFlags, dwProcess"));
     
    4746 * Return info about the first process in a toolhelp32 snapshot
    4847 */
    49 ODINFUNCTION2(BOOL,Process32First,HANDLE,        hSnapshot,
    50                                   LPPROCESSENTRY32,lppe)
     48BOOL WIN32API Process32First(HANDLE hSnapshot, LPPROCESSENTRY32 lppe)
    5149{
    5250  dprintf(("KERNEL32: Process32First %x %x not implemented", hSnapshot, lppe));
     
    6058 * Return info about the "next" process in a toolhelp32 snapshot
    6159 */
    62 ODINFUNCTION2(BOOL,Process32Next,HANDLE,        hSnapshot,
    63                                  LPPROCESSENTRY32,lppe)
     60BOOL WIN32API Process32Next(HANDLE hSnapshot, LPPROCESSENTRY32 lppe)
    6461{
    6562  dprintf(("KERNEL32: Process32Next %x %x not implemented", hSnapshot, lppe));
     
    7370 * Return info about the "first" module in a toolhelp32 snapshot
    7471 */
    75 ODINFUNCTION2(BOOL,Module32First,HANDLE,hSnapshot,
    76                                  LPMODULEENTRY32,lpme)
     72BOOL WIN32API Module32First(HANDLE hSnapshot, LPMODULEENTRY32 lpme)
    7773{
    7874  dprintf(("KERNEL32: Module32First %x %x not implemented", hSnapshot, lpme));
     
    8682 * Return info about the "next" module in a toolhelp32 snapshot
    8783 */
    88 ODINFUNCTION2(BOOL,Module32Next,HANDLE,hSnapshot,
    89                                 LPMODULEENTRY32,lpme)
     84BOOL WIN32API Module32Next(HANDLE hSnapshot, LPMODULEENTRY32 lpme)
    9085{
    9186  dprintf(("KERNEL32: Module32Next %x %x not implemented", hSnapshot, lpme));
  • TabularUnified trunk/src/kernel32/virtual.cpp

    r7342 r7849  
    1 /* $Id: virtual.cpp,v 1.42 2001-11-14 18:38:51 sandervl Exp $ */
     1/* $Id: virtual.cpp,v 1.43 2002-02-09 12:45:14 sandervl Exp $ */
    22
    33/*
     
    264264//******************************************************************************
    265265//******************************************************************************
    266 ODINFUNCTION4(LPVOID, VirtualAlloc, LPVOID, lpvAddress,
    267                                     DWORD,  cbSize,
    268                                     DWORD,  fdwAllocationType,
    269                                     DWORD,  fdwProtect)
     266LPVOID WIN32API VirtualAlloc(LPVOID lpvAddress,
     267                             DWORD  cbSize,
     268                             DWORD  fdwAllocationType,
     269                             DWORD  fdwProtect)
    270270{
    271271  PVOID Address = lpvAddress;
     
    442442//******************************************************************************
    443443//******************************************************************************
    444 ODINFUNCTION3(BOOL, VirtualFree, LPVOID, lpvAddress,
    445                                  DWORD,  cbSize,
    446                                  DWORD,  FreeType)
     444BOOL WIN32API VirtualFree(LPVOID lpvAddress,
     445                          DWORD  cbSize,
     446                          DWORD  FreeType)
    447447{
    448448  DWORD rc;
     
    507507//******************************************************************************
    508508
    509 ODINFUNCTION4(BOOL, VirtualProtect, LPVOID, lpvAddress,
    510                                     DWORD,  cbSize,
    511                                     DWORD,  fdwNewProtect,
    512                                     DWORD*, pfdwOldProtect)
     509BOOL WIN32API VirtualProtect(LPVOID lpvAddress,
     510                             DWORD  cbSize,
     511                             DWORD  fdwNewProtect,
     512                             DWORD* pfdwOldProtect)
    513513{
    514514  DWORD rc;
     
    588588//******************************************************************************
    589589//******************************************************************************
    590 ODINFUNCTION3(DWORD, VirtualQuery, LPCVOID, lpvAddress,
    591                                    LPMEMORY_BASIC_INFORMATION, pmbiBuffer,
    592                                    DWORD,   cbLength)
     590DWORD WIN32API VirtualQuery(LPCVOID lpvAddress,
     591                            LPMEMORY_BASIC_INFORMATION pmbiBuffer,
     592                            DWORD   cbLength)
    593593{
    594594  ULONG  cbRangeSize,
     
    687687//******************************************************************************
    688688//******************************************************************************
    689 ODINFUNCTION2(BOOL, VirtualLock, LPVOID, lpAddress,
    690                                  DWORD,  dwSize)
     689BOOL WIN32API VirtualLock(LPVOID lpAddress, DWORD dwSize)
    691690{
    692691  dprintf(("VirtualLock at %d; %d bytes - stub (TRUE)\n", (int)lpAddress, dwSize));
     
    696695
    697696//******************************************************************************
    698 ODINFUNCTION2(BOOL, VirtualUnlock, LPVOID, lpAddress,
    699                                    DWORD,  dwSize)
     697BOOL WIN32API VirtualUnlock(LPVOID lpAddress, DWORD dwSize)
    700698{
    701699  dprintf(("VirtualUnlock at %d; %d bytes - stub (TRUE)\n", (int)lpAddress, dwSize));
     
    723721 *****************************************************************************/
    724722
    725 ODINFUNCTION5(BOOL, VirtualProtectEx, HANDLE,  hProcess,
    726                                       LPVOID,  lpvAddress,
    727                                       DWORD,   cbSize,
    728                                       DWORD,   fdwNewProtect,
    729                                       LPDWORD, pfdwOldProtect)
     723BOOL WIN32API VirtualProtectEx(HANDLE  hProcess,
     724                               LPVOID  lpvAddress,
     725                               DWORD   cbSize,
     726                               DWORD   fdwNewProtect,
     727                               LPDWORD pfdwOldProtect)
    730728{
    731729  // only execute API, if this is the current process !
     
    756754 *****************************************************************************/
    757755
    758 ODINFUNCTION4(DWORD, VirtualQueryEx, HANDLE, hProcess,
    759                                      LPCVOID, lpvAddress,
    760                                      LPMEMORY_BASIC_INFORMATION, pmbiBuffer,
    761                                      DWORD,   cbLength)
     756DWORD WIN32API VirtualQueryEx(HANDLE hProcess,
     757                              LPCVOID lpvAddress,
     758                              LPMEMORY_BASIC_INFORMATION pmbiBuffer,
     759                              DWORD   cbLength)
    762760{
    763761  // only execute API, if this is the current process !
     
    774772//SvL: Private api
    775773//******************************************************************************
    776 LPVOID VirtualAllocShared(DWORD  cbSize, DWORD  fdwAllocationType,
    777                           DWORD  fdwProtect, LPSTR name)
     774LPVOID VirtualAllocShared(DWORD cbSize, DWORD  fdwAllocationType,
     775                          DWORD fdwProtect, LPSTR name)
    778776{
    779777  LPVOID Address;
  • TabularUnified trunk/src/kernel32/wprocess.cpp

    r7811 r7849  
    1 /* $Id: wprocess.cpp,v 1.143 2002-02-06 16:33:40 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.144 2002-02-09 12:45:14 sandervl Exp $ */
    22
    33/*
     
    21112111//******************************************************************************
    21122112//******************************************************************************
    2113 ODINFUNCTION1(BOOL,DisableThreadLibraryCalls,HMODULE,hModule)
     2113BOOL WIN32API DisableThreadLibraryCalls(HMODULE hModule)
    21142114{
    21152115  Win32DllBase *winmod;
Note: See TracChangeset for help on using the changeset viewer.