- Timestamp:
- Apr 2, 2003, 2:58:58 PM (22 years ago)
- Location:
- trunk/src
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/font.cpp
r9443 r9975 1 /* $Id: font.cpp,v 1.2 8 2002-11-29 13:46:03sandervl Exp $ */1 /* $Id: font.cpp,v 1.29 2003-04-02 12:58:58 sandervl Exp $ */ 2 2 3 3 /* … … 372 372 memcpy(&logFont, lpLogFont, sizeof(ENUMLOGFONTA)); 373 373 memset(logFont.elfScript, 0, sizeof(logFont.elfScript)); 374 memcpy(&textM.ntm etm, lpTextM, sizeof(textM.ntmetm));375 memset(&textM.ntm eFontSignature, 0, sizeof(textM.ntmeFontSignature));376 377 dprintf(("EnumFontProcExA %s height %d", logFont.elfLogFont.lfFaceName, textM.ntm etm.tmHeight));374 memcpy(&textM.ntmTm, lpTextM, sizeof(textM.ntmTm)); 375 memset(&textM.ntmFontSig, 0, sizeof(textM.ntmFontSig)); 376 377 dprintf(("EnumFontProcExA %s height %d", logFont.elfLogFont.lfFaceName, textM.ntmTm.tmHeight)); 378 378 379 379 int rc = proc(&logFont, &textM, arg3, lpEnumData->userData); … … 400 400 AsciiToUnicodeN((char *) lpLogFont->elfStyle, LogFont.elfStyle, LF_FACESIZE-1); 401 401 402 textM.ntm etm.tmHeight = lpTextM->tmHeight;403 textM.ntm etm.tmAscent = lpTextM->tmAscent;404 textM.ntm etm.tmDescent = lpTextM->tmDescent;405 textM.ntm etm.tmInternalLeading = lpTextM->tmInternalLeading;406 textM.ntm etm.tmExternalLeading = lpTextM->tmExternalLeading;407 textM.ntm etm.tmAveCharWidth = lpTextM->tmAveCharWidth;408 textM.ntm etm.tmMaxCharWidth = lpTextM->tmMaxCharWidth;409 textM.ntm etm.tmWeight = lpTextM->tmWeight;410 textM.ntm etm.tmOverhang = lpTextM->tmOverhang;411 textM.ntm etm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX;412 textM.ntm etm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY;413 textM.ntm etm.tmFirstChar = lpTextM->tmFirstChar;414 textM.ntm etm.tmLastChar = lpTextM->tmLastChar;415 textM.ntm etm.tmDefaultChar = lpTextM->tmDefaultChar;416 textM.ntm etm.tmBreakChar = lpTextM->tmBreakChar;417 textM.ntm etm.tmItalic = lpTextM->tmItalic;418 textM.ntm etm.tmUnderlined = lpTextM->tmUnderlined;419 textM.ntm etm.tmStruckOut = lpTextM->tmStruckOut;420 textM.ntm etm.tmPitchAndFamily = lpTextM->tmPitchAndFamily;421 textM.ntm etm.tmCharSet = lpTextM->tmCharSet;422 textM.ntm etm.ntmFlags = 0;423 textM.ntm etm.ntmSizeEM = 0;424 textM.ntm etm.ntmCellHeight = 0;425 textM.ntm etm.ntmAvgWidth = 0;426 memset(&textM.ntm eFontSignature, 0, sizeof(textM.ntmeFontSignature));427 428 dprintf(("EnumFontProcExW %s height %d", lpLogFont->elfLogFont.lfFaceName, textM.ntm etm.tmHeight));402 textM.ntmTm.tmHeight = lpTextM->tmHeight; 403 textM.ntmTm.tmAscent = lpTextM->tmAscent; 404 textM.ntmTm.tmDescent = lpTextM->tmDescent; 405 textM.ntmTm.tmInternalLeading = lpTextM->tmInternalLeading; 406 textM.ntmTm.tmExternalLeading = lpTextM->tmExternalLeading; 407 textM.ntmTm.tmAveCharWidth = lpTextM->tmAveCharWidth; 408 textM.ntmTm.tmMaxCharWidth = lpTextM->tmMaxCharWidth; 409 textM.ntmTm.tmWeight = lpTextM->tmWeight; 410 textM.ntmTm.tmOverhang = lpTextM->tmOverhang; 411 textM.ntmTm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX; 412 textM.ntmTm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY; 413 textM.ntmTm.tmFirstChar = lpTextM->tmFirstChar; 414 textM.ntmTm.tmLastChar = lpTextM->tmLastChar; 415 textM.ntmTm.tmDefaultChar = lpTextM->tmDefaultChar; 416 textM.ntmTm.tmBreakChar = lpTextM->tmBreakChar; 417 textM.ntmTm.tmItalic = lpTextM->tmItalic; 418 textM.ntmTm.tmUnderlined = lpTextM->tmUnderlined; 419 textM.ntmTm.tmStruckOut = lpTextM->tmStruckOut; 420 textM.ntmTm.tmPitchAndFamily = lpTextM->tmPitchAndFamily; 421 textM.ntmTm.tmCharSet = lpTextM->tmCharSet; 422 textM.ntmTm.ntmFlags = 0; 423 textM.ntmTm.ntmSizeEM = 0; 424 textM.ntmTm.ntmCellHeight = 0; 425 textM.ntmTm.ntmAvgWidth = 0; 426 memset(&textM.ntmFontSig, 0, sizeof(textM.ntmFontSig)); 427 428 dprintf(("EnumFontProcExW %s height %d", lpLogFont->elfLogFont.lfFaceName, textM.ntmTm.tmHeight)); 429 429 rc = proc(&LogFont, &textM, arg3, lpEnumData->userData); 430 430 SetFS(selTIB); // switch back to the saved FS selector -
trunk/src/gdi32/icm.cpp
r9429 r9975 1 /* $Id: icm.cpp,v 1. 3 2002-11-26 10:53:09sandervl Exp $ */1 /* $Id: icm.cpp,v 1.4 2003-04-02 12:58:58 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 BOOL WIN32API DeleteColorSpace(HCOLORSPACE hColorSpace) 35 35 { 36 37 38 } 39 //****************************************************************************** 40 //****************************************************************************** 41 BOOLWIN32API SetColorSpace(HDC hdc, HCOLORSPACE hColorSpace)42 { 43 44 return FALSE;36 dprintf(("GDI32: DeleteColorSpace - stub\n")); 37 return FALSE; 38 } 39 //****************************************************************************** 40 //****************************************************************************** 41 HCOLORSPACE WIN32API SetColorSpace(HDC hdc, HCOLORSPACE hColorSpace) 42 { 43 dprintf(("GDI32: SetColorSpace - stub\n")); 44 return 0; 45 45 } 46 46 //****************************************************************************** -
trunk/src/kernel32/HandleManager.cpp
r9971 r9975 1 /* $Id: HandleManager.cpp,v 1.9 7 2003-04-02 11:03:30sandervl Exp $ */1 /* $Id: HandleManager.cpp,v 1.98 2003-04-02 12:58:27 sandervl Exp $ */ 2 2 3 3 /* … … 1868 1868 { 1869 1869 int iIndex; /* index into the handle table */ 1870 DWORDdwResult; /* result from the device handler's API */1870 BOOL dwResult; /* result from the device handler's API */ 1871 1871 PHMHANDLE pHMHandle; /* pointer to the handle structure in the table */ 1872 1872 … … 1911 1911 { 1912 1912 int iIndex; /* index into the handle table */ 1913 DWORDdwResult; /* result from the device handler's API */1913 BOOL dwResult; /* result from the device handler's API */ 1914 1914 PHMHANDLE pHMHandle; /* pointer to the handle structure in the table */ 1915 1915 … … 1952 1952 { 1953 1953 int iIndex; /* index into the handle table */ 1954 DWORDdwResult; /* result from the device handler's API */1954 BOOL dwResult; /* result from the device handler's API */ 1955 1955 PHMHANDLE pHMHandle; /* pointer to the handle structure in the table */ 1956 1956 … … 1990 1990 { 1991 1991 int iIndex; /* index into the handle table */ 1992 DWORDdwResult; /* result from the device handler's API */1992 BOOL dwResult; /* result from the device handler's API */ 1993 1993 PHMHANDLE pHMHandle; /* pointer to the handle structure in the table */ 1994 1994 … … 4656 4656 * Author : Przemyslaw Dobrowolski 4657 4657 *****************************************************************************/ 4658 DWORDHMTransactNamedPipe(HANDLE hPipe,4659 4660 4661 4662 4663 4664 4665 { 4666 int iIndex; /* index into the handle table */ 4667 DWORDlpResult; /* result from the device handler's API */4658 BOOL HMTransactNamedPipe(HANDLE hPipe, 4659 LPVOID lpvWriteBuf, 4660 DWORD cbWriteBuf, 4661 LPVOID lpvReadBuf, 4662 DWORD cbReadBuf, 4663 LPDWORD lpcbRead, 4664 LPOVERLAPPED lpo) 4665 { 4666 int iIndex; /* index into the handle table */ 4667 BOOL lpResult; /* result from the device handler's API */ 4668 4668 PHMHANDLE pHMHandle; /* pointer to the handle structure in the table */ 4669 4669 -
trunk/src/kernel32/conbuffer.cpp
r7550 r9975 1 /* $Id: conbuffer.cpp,v 1.1 7 2001-12-05 18:05:59sandervl Exp $ */1 /* $Id: conbuffer.cpp,v 1.18 2003-04-02 12:58:28 sandervl Exp $ */ 2 2 3 3 /* … … 182 182 *****************************************************************************/ 183 183 184 DWORDHMDeviceConsoleBufferClass::CloseHandle(PHMHANDLEDATA pHMHandleData)184 BOOL HMDeviceConsoleBufferClass::CloseHandle(PHMHANDLEDATA pHMHandleData) 185 185 { 186 186 … … 203 203 } 204 204 205 return (NO_ERROR);205 return TRUE; 206 206 } 207 207 -
trunk/src/kernel32/conbuffer.h
r7549 r9975 1 /* $Id: conbuffer.h,v 1. 5 2001-12-05 14:15:57sandervl Exp $ */1 /* $Id: conbuffer.h,v 1.6 2003-04-02 12:58:28 sandervl Exp $ */ 2 2 3 3 /* … … 79 79 virtual DWORD GetFileType (PHMHANDLEDATA pHMHandleData); 80 80 81 virtual DWORDCloseHandle(PHMHANDLEDATA pHMHandleData);81 virtual BOOL CloseHandle(PHMHANDLEDATA pHMHandleData); 82 82 83 83 virtual DWORD _DeviceRequest (PHMHANDLEDATA pHMHandleData, -
trunk/src/kernel32/handlenames.cpp
r8327 r9975 1 /* $Id: handlenames.cpp,v 1. 5 2002-04-29 17:05:29 sandervl Exp $ */1 /* $Id: handlenames.cpp,v 1.6 2003-04-02 12:58:29 sandervl Exp $ */ 2 2 3 3 /* … … 31 31 #include <stdlib.h> 32 32 #include <string.h> 33 #include <win32type.h> 33 34 34 35 #include <ccollection.h> -
trunk/src/kernel32/heapstring.cpp
r7854 r9975 1 /* $Id: heapstring.cpp,v 1.5 1 2002-02-09 17:27:31sandervl Exp $ */1 /* $Id: heapstring.cpp,v 1.52 2003-04-02 12:58:29 sandervl Exp $ */ 2 2 /* 3 3 * Project Odin Software License can be found in LICENSE.TXT … … 547 547 lstrcpynWtoA(ascii, 548 548 unicode, 549 lstrlenW( (UniChar*)unicode)+1); //end included549 lstrlenW(unicode)+1); //end included 550 550 551 551 return ascii; -
trunk/src/kernel32/hmdevice.cpp
r9748 r9975 1 /* $Id: hmdevice.cpp,v 1.3 4 2003-02-04 11:28:56sandervl Exp $ */1 /* $Id: hmdevice.cpp,v 1.35 2003-04-02 12:58:29 sandervl Exp $ */ 2 2 3 3 /* … … 488 488 489 489 /***************************************************************************** 490 * Name : DWORDHMDeviceHandler::LockFile490 * Name : BOOL HMDeviceHandler::LockFile 491 491 * Purpose : file locking 492 492 * Parameters: PHMHANDLEDATA pHMHandleData … … 503 503 *****************************************************************************/ 504 504 505 DWORD HMDeviceHandler::LockFile(PHMHANDLEDATA pHMHandleData, 506 DWORD arg2, 507 DWORD arg3, 508 DWORD arg4, 509 DWORD arg5) 510 { 511 dprintf(("KERNEL32: HandleManager::DeviceHandler::LockFile %s(%08xh,%08xh,%08xh,%08xh,%08xh)\n", 512 lpHMDeviceName, 513 pHMHandleData, 514 arg2, 515 arg3, 516 arg4, 517 arg5)); 518 519 return(ERROR_INVALID_FUNCTION); 520 } 521 522 523 524 /***************************************************************************** 525 * Name : DWORD HMDeviceHandler::LockFileEx 505 BOOL HMDeviceHandler::LockFile(PHMHANDLEDATA pHMHandleData, 506 DWORD arg2, 507 DWORD arg3, 508 DWORD arg4, 509 DWORD arg5) 510 { 511 dprintf(("KERNEL32: HandleManager::DeviceHandler::LockFile %s(%08xh,%08xh,%08xh,%08xh,%08xh)\n", 512 lpHMDeviceName, 513 pHMHandleData, 514 arg2, 515 arg3, 516 arg4, 517 arg5)); 518 519 SetLastError(ERROR_INVALID_FUNCTION); 520 return FALSE; 521 } 522 523 524 525 /***************************************************************************** 526 * Name : BOOL HMDeviceHandler::LockFileEx 526 527 * Purpose : file locking 527 528 * Parameters: PHMHANDLEDATA pHMHandleData … … 539 540 *****************************************************************************/ 540 541 541 DWORDHMDeviceHandler::LockFileEx(PHMHANDLEDATA pHMHandleData,542 BOOL HMDeviceHandler::LockFileEx(PHMHANDLEDATA pHMHandleData, 542 543 DWORD dwFlags, 543 544 DWORD dwReserved, … … 556 557 lpOverlapped)); 557 558 558 return(ERROR_INVALID_FUNCTION); 559 } 560 561 562 /***************************************************************************** 563 * Name : DWORD HMDeviceHandler::OpenFile 559 SetLastError(ERROR_INVALID_FUNCTION); 560 return FALSE; 561 } 562 563 564 /***************************************************************************** 565 * Name : BOOL HMDeviceHandler::OpenFile 564 566 * Purpose : this is called from the handle manager if a OpenFile() is 565 567 * performed on a handle … … 577 579 *****************************************************************************/ 578 580 579 DWORDHMDeviceHandler::OpenFile (LPCSTR lpFileName,581 BOOL HMDeviceHandler::OpenFile (LPCSTR lpFileName, 580 582 PHMHANDLEDATA pHMHandleData, 581 583 OFSTRUCT *pOFStruct, … … 589 591 arg3)); 590 592 591 return(ERROR_INVALID_FUNCTION); 592 } 593 594 595 /***************************************************************************** 596 * Name : DWORD HMDeviceHandler::UnlockFile 593 SetLastError(ERROR_INVALID_FUNCTION); 594 return FALSE; 595 } 596 597 598 /***************************************************************************** 599 * Name : BOOL HMDeviceHandler::UnlockFile 597 600 * Purpose : file locking 598 601 * Parameters: PHMHANDLEDATA pHMHandleData … … 609 612 *****************************************************************************/ 610 613 611 DWORDHMDeviceHandler::UnlockFile(PHMHANDLEDATA pHMHandleData,614 BOOL HMDeviceHandler::UnlockFile(PHMHANDLEDATA pHMHandleData, 612 615 DWORD arg2, 613 616 DWORD arg3, … … 623 626 arg5)); 624 627 625 return(ERROR_INVALID_FUNCTION); 628 SetLastError(ERROR_INVALID_FUNCTION); 629 return FALSE; 626 630 } 627 631 -
trunk/src/kernel32/hmfile.cpp
r9911 r9975 1 /* $Id: hmfile.cpp,v 1.4 1 2003-03-06 10:44:33sandervl Exp $ */1 /* $Id: hmfile.cpp,v 1.42 2003-04-02 12:58:29 sandervl Exp $ */ 2 2 3 3 /* … … 872 872 873 873 /***************************************************************************** 874 * Name : DWORDHMDeviceFileClass::LockFile874 * Name : BOOL HMDeviceFileClass::LockFile 875 875 * Purpose : file locking 876 876 * Parameters: PHMHANDLEDATA pHMHandleData -
trunk/src/kernel32/npipe.cpp
r7854 r9975 1 /* $Id: npipe.cpp,v 1.1 0 2002-02-09 17:27:32sandervl Exp $ */1 /* $Id: npipe.cpp,v 1.11 2003-04-02 12:58:30 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Named pipes API … … 389 389 390 390 /***************************************************************************** 391 * Name : DWORDTransactNamedPipe391 * Name : BOOL TransactNamedPipe 392 392 * Purpose : The TransactNamedPipe function combines into a single network 393 393 * operation the functions that write a message to and read a … … 408 408 *****************************************************************************/ 409 409 410 DWORDWIN32API TransactNamedPipe(HANDLE hNamedPipe,411 412 413 414 415 416 410 BOOL WIN32API TransactNamedPipe(HANDLE hNamedPipe, 411 LPVOID lpvWriteBuf, 412 DWORD cbWriteBuf, 413 LPVOID lpvReadBuf, 414 DWORD cbReadBuf, 415 LPDWORD lpcbRead, 416 LPOVERLAPPED lpo) 417 417 { 418 418 return(HMTransactNamedPipe( hNamedPipe, -
trunk/src/kernel32/ole2nls.c
r8938 r9975 1 /* $Id: ole2nls.c,v 1. 5 2002-07-30 12:55:06sandervl Exp $1 /* $Id: ole2nls.c,v 1.6 2003-04-02 12:58:30 sandervl Exp $ 2 2 * 3 3 * National Language Support library … … 2558 2558 */ 2559 2559 INT WINAPI GetDateFormatA(LCID locale,DWORD flags, 2560 LPSYSTEMTIMExtime,2560 CONST SYSTEMTIME *xtime, 2561 2561 LPCSTR format, LPSTR date,INT datelen) 2562 2562 { … … 2633 2633 */ 2634 2634 INT WINAPI GetDateFormatW(LCID locale,DWORD flags, 2635 LPSYSTEMTIMExtime,2635 CONST SYSTEMTIME *xtime, 2636 2636 LPCWSTR format, 2637 2637 LPWSTR date, INT datelen) … … 3702 3702 GetTimeFormatA(LCID locale, /* [in] */ 3703 3703 DWORD flags, /* [in] */ 3704 LPSYSTEMTIMExtime, /* [in] */3704 CONST SYSTEMTIME *xtime, /* [in] */ 3705 3705 LPCSTR format, /* [in] */ 3706 3706 LPSTR timestr, /* [out] */ … … 3750 3750 GetTimeFormatW(LCID locale, /* [in] */ 3751 3751 DWORD flags, /* [in] */ 3752 LPSYSTEMTIMExtime, /* [in] */3752 CONST SYSTEMTIME *xtime, /* [in] */ 3753 3753 LPCWSTR format, /* [in] */ 3754 3754 LPWSTR timestr, /* [out] */ -
trunk/src/kernel32/registry.cpp
r9647 r9975 1 /* $Id: registry.cpp,v 1.2 0 2003-01-08 14:25:40 sandervl Exp $ */1 /* $Id: registry.cpp,v 1.21 2003-04-02 12:58:30 sandervl Exp $ */ 2 2 3 3 /* … … 270 270 *****************************************************************************/ 271 271 272 LONG WIN32API RegDeleteKeyW(HKEY hKey, LP WSTR lpszSubKey)272 LONG WIN32API RegDeleteKeyW(HKEY hKey, LPCWSTR lpszSubKey) 273 273 { 274 274 char *astring = UnicodeToAsciiString(lpszSubKey); … … 878 878 879 879 LONG WIN32API RegQueryValueExA(HKEY hkey, 880 LP STR lpszValueName,880 LPCSTR lpszValueName, 881 881 LPDWORD lpdwReserved, 882 882 LPDWORD lpdwType, … … 944 944 945 945 LONG WIN32API RegQueryValueExW(HKEY hkey, 946 LP WSTR lpszValueName,946 LPCWSTR lpszValueName, 947 947 LPDWORD lpdwReserved, 948 948 LPDWORD lpdwType, -
trunk/src/kernel32/stubs.cpp
r9748 r9975 1 /* $Id: stubs.cpp,v 1.3 8 2003-02-04 11:29:02sandervl Exp $1 /* $Id: stubs.cpp,v 1.39 2003-04-02 12:58:31 sandervl Exp $ 2 2 * 3 3 * Win32 KERNEL32 Subsystem for OS/2 … … 1127 1127 1128 1128 /***************************************************************************** 1129 * Name : DWORDReadProcessMemory1129 * Name : BOOL ReadProcessMemory 1130 1130 * Purpose : The ReadProcessMemory function reads memory in a specified process. 1131 1131 * The entire area to be read must be accessible, or the operation fails. … … 1143 1143 *****************************************************************************/ 1144 1144 1145 DWORDWIN32API ReadProcessMemory(HANDLE hProcess,1146 1147 1148 1149 1145 BOOL WIN32API ReadProcessMemory(HANDLE hProcess, 1146 LPCVOID lpBaseAddress, 1147 LPVOID lpBuffer, 1148 DWORD cbRead, 1149 LPDWORD lpNumberOfBytesRead) 1150 1150 { 1151 1151 dprintf(("Kernel32: ReadProcessMemory(%08xh,%08xh,%08xh,%08xh,%08xh) not completely implemented", … … 1355 1355 1356 1356 /***************************************************************************** 1357 * Name : DWORDSetTapeParameters1357 * Name : BOOL SetTapeParameters 1358 1358 * Purpose : The SetTapeParameters function either specifies the block size 1359 1359 * of a tape or configures the tape device. … … 1378 1378 lpTapeInformation)); 1379 1379 1380 return (ERROR_NOT_SUPPORTED); 1380 SetLastError(ERROR_NOT_SUPPORTED); 1381 return FALSE; 1381 1382 } 1382 1383 … … 1567 1568 1568 1569 1569 /*****************************************************************************1570 * Name : DWORD SetThreadPriorityBoost1571 * Purpose : Unknown1572 * Parameters: Unknown (wrong)1573 * Variables :1574 * Result : Unknown1575 * Remark :1576 * Status : UNTESTED STUB1577 *1578 * Author : Patrick Haller [Tue, 1999/06/08 21:44]1579 *****************************************************************************/1580 1581 DWORD WIN32API SetThreadPriorityBoost(DWORD x1,1582 DWORD x2)1583 {1584 dprintf(("KERNEL32: SetThreadPriorityBoost(%08xh, %08xh) not implemented\n",1585 x1,1586 x2));1587 1588 return (0);1589 } -
trunk/src/kernel32/thread.cpp
r9945 r9975 1 /* $Id: thread.cpp,v 1.5 3 2003-03-27 14:00:54sandervl Exp $ */1 /* $Id: thread.cpp,v 1.54 2003-04-02 12:58:31 sandervl Exp $ */ 2 2 3 3 /* … … 276 276 //****************************************************************************** 277 277 //****************************************************************************** 278 /***************************************************************************** 279 * Name : BOOL SetThreadPriorityBoost 280 * Purpose : The SetThreadPriorityBoost function disables or enables 281 * the ability of the system to temporarily boost the priority 282 * of a thread. 283 * Parameters: Unknown (wrong) 284 * Variables : 285 * Result : Unknown 286 * Remark : 287 * Status : UNTESTED STUB 288 * 289 * Author : Patrick Haller [Tue, 1999/06/08 21:44] 290 *****************************************************************************/ 291 292 BOOL WIN32API SetThreadPriorityBoost(HANDLE hThread, 293 BOOL DisablePriorityBoost) 294 { 295 dprintf(("KERNEL32: SetThreadPriorityBoost(%08xh, %08xh) not implemented\n", 296 hThread,DisablePriorityBoost)); 297 298 return FALSE; 299 } 300 //****************************************************************************** 301 //****************************************************************************** 278 302 Win32Thread::Win32Thread(LPTHREAD_START_ROUTINE pUserCallback, LPVOID lpData, DWORD dwFlags, HANDLE hThread) 279 303 { -
trunk/src/kernel32/windllpeldr.cpp
r8913 r9975 1 /* $Id: windllpeldr.cpp,v 1.1 1 2002-07-23 13:51:48sandervl Exp $ */1 /* $Id: windllpeldr.cpp,v 1.12 2003-04-02 12:58:31 sandervl Exp $ */ 2 2 3 3 /* … … 53 53 //****************************************************************************** 54 54 //****************************************************************************** 55 BOOLWin32PeLdrDll::init(ULONG reservedMem, ULONG ulPEOffset)55 DWORD Win32PeLdrDll::init(ULONG reservedMem, ULONG ulPEOffset) 56 56 { 57 57 char modname[CCHMAXPATH]; … … 59 59 HFILE dllfile; 60 60 APIRET rc; 61 BOOL fRet;61 DWORD dwRet; 62 62 63 63 strupr(szFileName); … … 65 65 strcat(szFileName, DLL_EXTENSION); 66 66 } 67 67 68 dllfile = OSLibDosOpen(szFileName, OSLIB_ACCESS_READONLY|OSLIB_ACCESS_SHAREDENYNONE); 68 69 if(dllfile == NULL) {//search in libpath for dll … … 78 79 } 79 80 else OSLibDosClose(dllfile); 80 fRet = Win32PeLdrImage::init(0); 81 82 dwRet = Win32PeLdrImage::init(0); 81 83 dllEntryPoint = (WIN32DLLENTRY)entryPoint; 82 84 … … 86 88 dllEntryPoint = NULL; 87 89 } 88 return fRet;90 return dwRet; 89 91 } 90 92 //****************************************************************************** -
trunk/src/kernel32/windllpeldr.h
r8913 r9975 1 /* $Id: windllpeldr.h,v 1. 3 2002-07-23 13:51:48sandervl Exp $ */1 /* $Id: windllpeldr.h,v 1.4 2003-04-02 12:58:31 sandervl Exp $ */ 2 2 3 3 /* … … 22 22 virtual ~Win32PeLdrDll(); 23 23 24 virtual BOOLinit(ULONG reservedMem, ULONG ulPEOffset = 0);24 virtual DWORD init(ULONG reservedMem, ULONG ulPEOffset = 0); 25 25 26 26 BOOL isLxDll() const;
Note:
See TracChangeset
for help on using the changeset viewer.