Changeset 7849 for trunk/src/kernel32/directory.cpp
- Timestamp:
- Feb 9, 2002, 1:45:14 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/directory.cpp
r7798 r7849 1 /* $Id: directory.cpp,v 1.4 3 2002-02-03 21:06:40sandervl Exp $ */1 /* $Id: directory.cpp,v 1.44 2002-02-09 12:45:12 sandervl Exp $ */ 2 2 3 3 /* … … 140 140 *****************************************************************************/ 141 141 142 ODINFUNCTION2(UINT, GetCurrentDirectoryA, UINT, nBufferLength, 143 LPSTR, lpBuffer) 142 UINT WIN32API GetCurrentDirectoryA(UINT nBufferLength, LPSTR lpBuffer) 144 143 { 145 144 UINT rc; … … 166 165 *****************************************************************************/ 167 166 168 ODINFUNCTION2(UINT, GetCurrentDirectoryW, UINT, nBufferLength, 169 LPWSTR, lpBuffer) 167 UINT WIN32API GetCurrentDirectoryW(UINT nBufferLength, LPWSTR lpBuffer) 170 168 { 171 169 char *asciidir = (char *)malloc(nBufferLength+1); 172 170 int rc; 173 171 174 rc = CALL_ODINFUNC(GetCurrentDirectoryA)(nBufferLength, asciidir);172 rc = GetCurrentDirectoryA(nBufferLength, asciidir); 175 173 if(rc != 0) 176 174 AsciiToUnicode(asciidir, lpBuffer); … … 191 189 * Author : Patrick Haller [Wed, 1999/09/28 20:44] 192 190 *****************************************************************************/ 193 194 195 ODINFUNCTION1(BOOL, SetCurrentDirectoryA, 196 LPCSTR, lpstrDirectory) 191 BOOL WIN32API SetCurrentDirectoryA(LPCSTR lpstrDirectory) 197 192 { 198 193 if(HIWORD(lpstrDirectory) == 0) … … 233 228 *****************************************************************************/ 234 229 235 ODINFUNCTION1(BOOL,SetCurrentDirectoryW,LPCWSTR,lpPathName)230 BOOL WIN32API SetCurrentDirectoryW(LPCWSTR lpPathName) 236 231 { 237 232 char *asciipath; … … 257 252 *****************************************************************************/ 258 253 259 ODINFUNCTION2(BOOL, CreateDirectoryA, 260 LPCSTR, lpstrDirectory, 261 PSECURITY_ATTRIBUTES,arg2) 254 BOOL WIN32API CreateDirectoryA(LPCSTR lpstrDirectory, PSECURITY_ATTRIBUTES arg2) 262 255 { 263 256 // 2001-05-28 PH … … 311 304 *****************************************************************************/ 312 305 313 ODINFUNCTION2(BOOL,CreateDirectoryW,LPCWSTR, arg1, 314 PSECURITY_ATTRIBUTES,arg2) 306 BOOL WIN32API CreateDirectoryW(LPCWSTR arg1, PSECURITY_ATTRIBUTES arg2) 315 307 { 316 308 BOOL rc; … … 318 310 319 311 astring = UnicodeToAsciiString((LPWSTR)arg1); 320 rc = C ALL_ODINFUNC(CreateDirectoryA)(astring, arg2);312 rc = CreateDirectoryA(astring, arg2); 321 313 FreeAsciiString(astring); 322 314 return(rc); … … 413 405 *****************************************************************************/ 414 406 415 ODINFUNCTION2(UINT,GetSystemDirectoryA,LPSTR,lpBuffer, 416 UINT,uSize) 407 UINT WIN32API GetSystemDirectoryA(LPSTR lpBuffer, UINT uSize) 417 408 { 418 409 int len; … … 439 430 *****************************************************************************/ 440 431 441 ODINFUNCTION2(UINT,GetSystemDirectoryW,LPWSTR,lpBuffer, 442 UINT, uSize) 432 UINT WIN32API GetSystemDirectoryW(LPWSTR lpBuffer, UINT uSize) 443 433 { 444 434 char *asciibuffer = NULL; … … 473 463 *****************************************************************************/ 474 464 475 ODINFUNCTION2(UINT,GetWindowsDirectoryA,LPSTR,lpBuffer, 476 UINT,uSize) 465 UINT WIN32API GetWindowsDirectoryA(LPSTR lpBuffer, UINT uSize) 477 466 { 478 467 char *dir; … … 499 488 *****************************************************************************/ 500 489 501 ODINFUNCTION2(UINT,GetWindowsDirectoryW,LPWSTR,lpBuffer, 502 UINT, uSize) 490 UINT WIN32API GetWindowsDirectoryW(LPWSTR lpBuffer, UINT uSize) 503 491 { 504 492 char *asciibuffer = NULL; … … 534 522 535 523 536 ODINFUNCTION1(BOOL, RemoveDirectoryA, LPCSTR,lpstrDirectory)524 BOOL WIN32API RemoveDirectoryA(LPCSTR lpstrDirectory) 537 525 { 538 526 int len = strlen(lpstrDirectory); … … 571 559 *****************************************************************************/ 572 560 573 ODINFUNCTION1(BOOL,RemoveDirectoryW,LPCWSTR,lpPathName)561 BOOL WIN32API RemoveDirectoryW(LPCWSTR lpPathName) 574 562 { 575 563 char *asciipath; … … 756 744 //****************************************************************************** 757 745 //****************************************************************************** 758 ODINFUNCTION2(UINT, GetTempPathA, 759 UINT, count, LPSTR, path) 746 UINT WIN32API GetTempPathA(UINT count, LPSTR path) 760 747 { 761 748 UINT ret; … … 773 760 //****************************************************************************** 774 761 //****************************************************************************** 775 ODINFUNCTION2(UINT, GetTempPathW, 776 UINT, count, LPWSTR, path) 762 UINT WIN32API GetTempPathW(UINT count, LPWSTR path) 777 763 { 778 764 static const WCHAR tmp[] = { 'T', 'M', 'P', 0 };
Note:
See TracChangeset
for help on using the changeset viewer.