- Timestamp:
- Jun 17, 1999, 11:52:01 PM (26 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/HandleManager.cpp
r111 r114 1 /* $Id: HandleManager.cpp,v 1. 3 1999-06-17 18:21:35phaller Exp $ */1 /* $Id: HandleManager.cpp,v 1.4 1999-06-17 21:52:00 phaller Exp $ */ 2 2 3 3 /* … … 894 894 if (-1 == iIndex) /* error ? */ 895 895 { 896 SetLastError(ERROR_INVALID_HANDLE); /* set win32 error information */ 897 return (FALSE); /* signal failure */ 896 //@@@PH it may occur someone closes e.g. a semaphore handle 897 // which is not registered through the HandleManager yet. 898 // so we try to pass on to Open32 instead. 899 dprintf(("KERNEL32: HandleManager:HMCloseHandle(%08xh) passed on to Open32.\n", 900 hObject)); 901 902 fResult = O32_CloseHandle(hObject); 903 return (fResult); 904 905 //SetLastError(ERROR_INVALID_HANDLE); /* set win32 error information */ 906 //return (FALSE); /* signal failure */ 898 907 } 899 908 -
trunk/src/kernel32/KERNEL32.CPP
r111 r114 1 /* $Id: KERNEL32.CPP,v 1. 5 1999-06-17 18:21:36phaller Exp $ */1 /* $Id: KERNEL32.CPP,v 1.6 1999-06-17 21:52:00 phaller Exp $ */ 2 2 3 3 /* … … 46 46 47 47 /***************************************************************************** 48 * Name : BOOL WIN32API CreateEventA49 * Purpose : forward call to Open3250 * Parameters:51 * Variables :52 * Result :53 * Remark :54 * Status :55 *56 * Author : Patrick Haller [Fri, 1998/06/12 03:44]57 *****************************************************************************/58 59 HANDLE WIN32API CreateEventA(LPSECURITY_ATTRIBUTES lpsa,60 BOOL fManualReset,61 BOOL fInitialState,62 LPCTSTR lpszEventName)63 {64 ULONG rc; /* API returncode */65 HANDLE hOS2; /* 32-bit OS/2 handle */66 HANDLE hWindows; /* 16-bit Windows handle */67 68 dprintf(("KERNEL32::CreateEventA(%08xh, %08xh, %08xh, %s)\n",69 lpsa,70 fManualReset,71 fInitialState,72 lpszEventName));73 74 hOS2 = O32_CreateEvent(lpsa, /* create event semaphore */75 fManualReset,76 fInitialState,77 lpszEventName);78 if (hOS2 != 0) /* check handle */79 {80 rc = HMHandleAllocate(&hWindows, /* allocate handle */81 hOS2);82 if (rc == NO_ERROR) /* check for errors */83 return (hWindows); /* return translated handle */84 else85 return (0); /* raise error condition */86 }87 88 return (hOS2); /* should have the correct error value here */89 }90 91 /*****************************************************************************92 48 * Name : BOOL WIN32API CloseHandle 93 49 * Purpose : forward call to Open32 … … 109 65 110 66 111 /*****************************************************************************112 * Name : BOOL WIN32API CreateEventW113 * Purpose : forward call to Open32114 * Parameters:115 * Variables :116 * Result :117 * Remark : handle translation is done in CreateEventA118 * Status :119 *120 * Author : Patrick Haller [Fri, 1998/06/12 03:44]121 *****************************************************************************/122 123 HANDLE WIN32API CreateEventW(PSECURITY_ATTRIBUTES arg1,124 BOOL arg2,125 BOOL arg3,126 LPCWSTR arg4)127 {128 HANDLE rc;129 char *astring;130 131 dprintf(("KERNEL32::CreateEventW>(%08xh, %08xh, %08xh, %s)\n",132 arg1,133 arg2,134 arg3,135 arg4));136 137 astring = UnicodeToAsciiString((LPWSTR)arg4);138 139 rc = O32_CreateEvent(arg1,140 arg2,141 arg3,142 astring);143 144 FreeAsciiString(astring);145 146 return(rc);147 }148 ///@@@PH handlemanager149 //******************************************************************************150 //******************************************************************************151 HANDLE WIN32API CreateMutexA(LPSECURITY_ATTRIBUTES lpsa,152 BOOL fInitialOwner,153 LPCTSTR lpszMutexName)154 {155 dprintf(("KERNEL32: CreateMutex\n"));156 157 return(O32_CreateMutex(lpsa,158 fInitialOwner,159 lpszMutexName));160 }161 //******************************************************************************162 //******************************************************************************163 HANDLE WIN32API CreateMutexW(PSECURITY_ATTRIBUTES arg1,164 BOOL arg2,165 LPCWSTR arg3)166 {167 HANDLE rc;168 char *astring;169 170 dprintf(("KERNEL32: OS2CreateMutexW\n"));171 172 astring = UnicodeToAsciiString((LPWSTR)arg3);173 rc = O32_CreateMutex(arg1,174 arg2,175 astring);176 FreeAsciiString(astring);177 178 return(rc);179 }180 //******************************************************************************181 67 //****************************************************************************** 182 68 HANDLE WIN32API GetModuleHandleA(LPCTSTR lpszModule) … … 218 104 //****************************************************************************** 219 105 //****************************************************************************** 220 BOOL WIN32API ReleaseMutex(HANDLE mutex)221 {222 dprintf(("KERNEL32: ReleaseMutex\n"));223 return(O32_ReleaseMutex(mutex));224 }225 //******************************************************************************226 //******************************************************************************227 BOOL WIN32API SetEvent(HANDLE hEvent)228 {229 dprintf(("KERNEL32: SetEvent\n"));230 return(O32_SetEvent(hEvent));231 }232 //******************************************************************************233 //******************************************************************************234 106 BOOL WIN32API SetStdHandle(DWORD IDStdHandle, 235 107 HANDLE hHandle) … … 273 145 return(O32_TlsSetValue(index, val)); 274 146 } 275 //******************************************************************************276 //******************************************************************************277 DWORD WIN32API WaitForSingleObject(HANDLE hObject,278 DWORD timeout)279 {280 dprintf(("KERNEL32: WaitForSingleObject (%08xh, %08xh)\n",281 hObject,282 timeout));283 284 return(O32_WaitForSingleObject(hObject,285 timeout));286 }287 //******************************************************************************288 289 290 /*****************************************************************************291 * Name : DWORD OS2WaitForSingleObjectEx292 * Purpose : The WaitForSingleObjectEx function is an extended wait function293 * that can be used to perform an alertable wait. This enables the294 * function to return when the system queues an I/O completion295 * routine to be executed by the calling thread. The function also296 * returns when the specified object is in the signaled state or297 * when the time-out interval elapses.298 * Parameters: HANDLE hObject handle of object to wait for299 * DWORD dwTimeout time-out interval in milliseconds300 * BOOL fAlertable alertable wait flag301 * Variables :302 * Result : 0xFFFFFFFF in case of error303 * Remark : only really required for async I/O304 * Status : UNTESTED STUB305 *306 * Author : Patrick Haller [Mon, 1998/06/15 08:00]307 *****************************************************************************/308 309 DWORD WIN32API WaitForSingleObjectEx(HANDLE hObject,310 DWORD dwTimeout,311 BOOL fAlertable)312 {313 dprintf(("Kernel32: WaitForSingleObjectEx(%08xh,%08xh,%08xh) not implemented correctly.\n",314 hObject,315 dwTimeout,316 fAlertable));317 318 return(O32_WaitForSingleObject(hObject,319 dwTimeout));320 }321 322 147 //****************************************************************************** 323 148 //****************************************************************************** … … 404 229 //****************************************************************************** 405 230 //****************************************************************************** 406 BOOL WIN32API FlushFileBuffers(HANDLE hFile)407 {408 dprintf(("KERNEL32: FlushFileBuffers\n"));409 return(O32_FlushFileBuffers(hFile));410 }411 //******************************************************************************412 //******************************************************************************413 231 LONG WIN32API InterlockedDecrement(LPLONG lplVal) 414 232 { … … 429 247 dprintf(("KERNEL32: InterlockedExchange\n")); 430 248 return O32_InterlockedExchange(arg1, arg2); 431 }432 //******************************************************************************433 //******************************************************************************434 UINT WIN32API SetHandleCount(UINT cHandles)435 {436 dprintf(("KERNEL32: GetHandleCount\n"));437 return(O32_SetHandleCount(cHandles));438 249 } 439 250 //****************************************************************************** … … 762 573 } 763 574 //****************************************************************************** 764 //SvL: 24-6-'97 - Added765 //SvL: 28-6-'97: Fix for timeSetEvent in Red Alert Map Editor766 //******************************************************************************767 BOOL WIN32API DuplicateHandle(HANDLE srcprocess, HANDLE srchandle, HANDLE destprocess,768 PHANDLE desthandle, DWORD arg5, BOOL arg6, DWORD arg7)769 {770 BOOL rc;771 772 #if 0773 //SvL:774 //If source & destination process are identical, just copy handle775 //(if target pointer != NULL)776 //timeSetEvent's timer handler expects to be called from another process,777 //but we just create a separate timer thread inside the client process778 if(srcprocess == destprocess) {779 if(desthandle != NULL)780 *desthandle = srchandle;781 return(TRUE);782 }783 #endif784 rc = O32_DuplicateHandle(srcprocess, srchandle, destprocess, desthandle, arg5, arg6, arg7);785 //// dprintf(("KERNEL32: OS2DuplicateHandle returned %d\n", rc));786 return(rc);787 }788 //******************************************************************************789 575 //****************************************************************************** 790 576 BOOL WIN32API Beep( DWORD arg1, DWORD arg2) … … 792 578 dprintf(("KERNEL32: OS2Beep\n")); 793 579 return O32_Beep(arg1, arg2); 794 }795 //******************************************************************************796 //******************************************************************************797 HANDLE WIN32API CreateSemaphoreA(PSECURITY_ATTRIBUTES arg1, LONG arg2, LONG arg3, LPCSTR arg4)798 {799 dprintf(("KERNEL32: OS2CreateSemaphoreA\n"));800 return O32_CreateSemaphore(arg1, arg2, arg3, (LPSTR)arg4);801 }802 //******************************************************************************803 //******************************************************************************804 HANDLE WIN32API CreateSemaphoreW(PSECURITY_ATTRIBUTES arg1,805 LONG arg2, LONG arg3,806 LPCWSTR arg4)807 {808 HANDLE rc;809 char *astring;810 811 dprintf(("KERNEL32: OS2CreateSemaphoreW"));812 astring = UnicodeToAsciiString((LPWSTR)arg4);813 rc = O32_CreateSemaphore(arg1, arg2, arg3, astring);814 FreeAsciiString(astring);815 return(rc);816 580 } 817 581 //****************************************************************************** … … 867 631 //****************************************************************************** 868 632 //****************************************************************************** 869 BOOL WIN32API GetOverlappedResult(HANDLE arg1, LPOVERLAPPED arg2, LPDWORD arg3, BOOL arg4)870 {871 dprintf(("KERNEL32: OS2GetOverlappedResult\n"));872 return O32_GetOverlappedResult(arg1, arg2, arg3, arg4);873 }874 //******************************************************************************875 //******************************************************************************876 633 BOOL WIN32API IsBadHugeReadPtr( const void * arg1, UINT arg2) 877 634 { … … 909 666 //****************************************************************************** 910 667 //****************************************************************************** 911 HANDLE WIN32API OpenEventA( DWORD arg1, BOOL arg2, LPCSTR arg3)912 {913 dprintf(("KERNEL32: OS2OpenEventA\n"));914 return O32_OpenEvent(arg1, arg2, arg3);915 }916 //******************************************************************************917 //******************************************************************************918 HANDLE WIN32API OpenEventW(DWORD dwDesiredAccess, BOOL bInheritHandle,919 LPCWSTR lpName)920 {921 char *asciiname;922 HANDLE rc;923 924 dprintf(("KERNEL32: OS2OpenEventW\n"));925 asciiname = UnicodeToAsciiString((LPWSTR)lpName);926 rc = O32_OpenEvent(dwDesiredAccess, bInheritHandle, asciiname);927 FreeAsciiString(asciiname);928 return(rc);929 }930 //******************************************************************************931 //******************************************************************************932 HANDLE WIN32API OpenMutexA( DWORD arg1, BOOL arg2, LPCSTR arg3)933 {934 dprintf(("KERNEL32: OS2OpenMutexA\n"));935 return O32_OpenMutex(arg1, arg2, arg3);936 }937 //******************************************************************************938 //******************************************************************************939 HANDLE WIN32API OpenMutexW(DWORD dwDesiredAccess, BOOL bInheritHandle,940 LPCWSTR lpName)941 {942 char *asciiname;943 HANDLE rc;944 945 dprintf(("KERNEL32: OS2OpenMutexW\n"));946 asciiname = UnicodeToAsciiString((LPWSTR)lpName);947 rc = O32_OpenMutex(dwDesiredAccess, bInheritHandle, asciiname);948 FreeAsciiString(asciiname);949 return(rc);950 }951 //******************************************************************************952 //******************************************************************************953 668 HANDLE WIN32API OpenProcess(DWORD arg1, BOOL arg2, DWORD arg3) 954 669 { 955 670 dprintf(("KERNEL32: OS2OpenProcess\n")); 956 671 return O32_OpenProcess(arg1, arg2, arg3); 957 }958 //******************************************************************************959 //******************************************************************************960 HANDLE WIN32API OpenSemaphoreA( DWORD arg1, BOOL arg2, LPCSTR arg3)961 {962 dprintf(("KERNEL32: OS2OpenSemaphoreA"));963 return O32_OpenSemaphore(arg1, arg2, arg3);964 }965 //******************************************************************************966 //******************************************************************************967 HANDLE WIN32API OpenSemaphoreW(DWORD dwDesiredAccess, BOOL bInheritHandle,968 LPCWSTR lpName)969 {970 char *asciiname;971 HANDLE rc;972 973 dprintf(("KERNEL32: OS2OpenSemaphoreW"));974 asciiname = UnicodeToAsciiString((LPWSTR)lpName);975 rc = O32_OpenSemaphore(dwDesiredAccess, bInheritHandle, asciiname);976 FreeAsciiString(asciiname);977 return(rc);978 }979 //******************************************************************************980 //******************************************************************************981 BOOL WIN32API PulseEvent( HANDLE arg1)982 {983 dprintf(("KERNEL32: OS2PulseEvent\n"));984 return O32_PulseEvent(arg1);985 }986 //******************************************************************************987 //******************************************************************************988 BOOL WIN32API ReleaseSemaphore( HANDLE arg1, LONG arg2, PLONG arg3)989 {990 dprintf(("KERNEL32: OS2ReleaseSemaphore"));991 return O32_ReleaseSemaphore(arg1, arg2, arg3);992 }993 //******************************************************************************994 //******************************************************************************995 BOOL WIN32API ResetEvent(HANDLE arg1)996 {997 dprintf(("KERNEL32: ResetEvent(%08xh)\n",998 arg1));999 1000 return O32_ResetEvent(arg1);1001 }1002 //******************************************************************************1003 //******************************************************************************1004 DWORD WIN32API WaitForMultipleObjects( DWORD arg1, const HANDLE * arg2, BOOL arg3, DWORD arg4)1005 {1006 dprintf(("KERNEL32: OS2WaitForMultipleObjects"));1007 return O32_WaitForMultipleObjects(arg1, arg2, arg3, arg4);1008 }1009 1010 1011 /*****************************************************************************1012 * Name : DWORD OS2WaitForMultipleObjectsEx1013 * Purpose : The WaitForMultipleObjectsEx function is an extended wait1014 * function that can be used to perform an alertable wait. This1015 * enables the function to return when the system queues an I/O1016 * completion routine to be executed by the calling thread. The1017 * function also returns either when any one or when all of the1018 * specified objects are in the signaled state, or when the1019 * time-out interval elapses.1020 * Parameters: DWORD cObjects number of handles in handle array1021 * HANDLE *lphObjects address of object-handle array1022 * BOOL fWaitAll wait flag1023 * DWORD dwTimeout time-out interval in milliseconds1024 * BOOL fAlertable alertable wait flag1025 * Variables :1026 * Result : 0xFFFFFFFF in case of error1027 * Remark : only really required for async I/O1028 * Status : UNTESTED STUB1029 *1030 * Author : Patrick Haller [Mon, 1998/06/15 08:00]1031 *****************************************************************************/1032 1033 DWORD WIN32API WaitForMultipleObjectsEx(DWORD cObjects,1034 CONST HANDLE *lphObjects,1035 BOOL fWaitAll,1036 DWORD dwTimeout,1037 BOOL fAlertable)1038 {1039 dprintf(("Kernel32: WaitForMultipleObjectsEx(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented correctly.\n",1040 cObjects,1041 lphObjects,1042 fWaitAll,1043 dwTimeout,1044 fAlertable));1045 1046 return(O32_WaitForMultipleObjects(cObjects,1047 lphObjects,1048 fWaitAll,1049 dwTimeout));1050 672 } 1051 673 //****************************************************************************** … … 1458 1080 } 1459 1081 1460 HANDLE WIN32API ConvertToGlobalHandle(HANDLE hHandle)1461 //HANDLE WIN32API ConvertToGlobalHandle(HANDLE hHandle,1462 // BOOL fInherit)1463 {1464 return (hHandle);1465 }1466 1467 1082 BOOL WIN32API FindCloseChangeNotification(HANDLE hChange) 1468 1083 { -
trunk/src/kernel32/exceptions.cpp
r100 r114 1 /* $Id: exceptions.cpp,v 1. 3 1999-06-10 20:47:51phaller Exp $ */1 /* $Id: exceptions.cpp,v 1.4 1999-06-17 21:51:59 phaller Exp $ */ 2 2 3 3 /* … … 23 23 * __try{...}__finally{...} 24 24 * statements is simply not documented by Microsoft. There could be different 25 * reasons for this: 26 * One reason could be that they try to hide the fact that exception 27 * handling in Win32 looks almost the same as in OS/2 2.x. 25 * reasons for this: 26 * One reason could be that they try to hide the fact that exception 27 * handling in Win32 looks almost the same as in OS/2 2.x. 28 28 * Another reason could be that Microsoft does not want others to write 29 * binary compatible implementations of the Win32 API (like us). 30 * 31 * Whatever the reason, THIS SUCKS!! Ensuring portabilty or future 32 * compatability may be valid reasons to keep some things undocumented. 33 * But exception handling is so basic to Win32 that it should be 29 * binary compatible implementations of the Win32 API (like us). 30 * 31 * Whatever the reason, THIS SUCKS!! Ensuring portabilty or future 32 * compatability may be valid reasons to keep some things undocumented. 33 * But exception handling is so basic to Win32 that it should be 34 34 * documented! 35 35 * … … 37 37 * -Most functions need better parameter checking. 38 38 * -I do not know how to handle exceptions within an exception handler. 39 * or what is done when ExceptionNestedException is returned from an 39 * or what is done when ExceptionNestedException is returned from an 40 40 * exception handler 41 41 * -Real exceptions are not yet implemented. only the exception functions … … 310 310 pszExceptionName = "Guard Page Violation"; 311 311 sprintf(szData, 312 "R/W %08x at %08x.",312 "R/W %08xh at %08xh.", 313 313 pERepRec->ExceptionInfo[0], 314 314 pERepRec->ExceptionInfo[1]); … … 334 334 case XCPT_READ_ACCESS: 335 335 sprintf (szData, 336 "Read Access at address %08x ",336 "Read Access at address %08xh", 337 337 pERepRec->ExceptionInfo[1]); 338 338 break; … … 567 567 568 568 if (rc == NO_ERROR) 569 dprintf(("%s (#%u), Obj #%u, Offset%08x\n",569 dprintf(("%s (#%u), obj #%u:%08x\n", 570 570 szModule, 571 571 ulModule, … … 602 602 603 603 if (pCtxRec->ContextFlags & CONTEXT_INTEGER) /* check flags */ 604 dprintf((" EAX=%08x ESI=%08x\n" 605 " EBX=%08x EDI=%08x\n" 606 " ECX=%08x\n" 607 " EDX=%08x\n", 604 dprintf((" EAX=%08x EBX=%08x ESI=%08x\n" 605 " ECX=%08x EDX=%08x EDI=%08x\n", 608 606 pCtxRec->ctx_RegEax, 607 pCtxRec->ctx_RegEbx, 609 608 pCtxRec->ctx_RegEsi, 610 pCtxRec->ctx_RegEbx,611 pCtxRec->ctx_RegEdi,612 609 pCtxRec->ctx_RegEcx, 613 pCtxRec->ctx_RegEdx)); 610 pCtxRec->ctx_RegEdx, 611 pCtxRec->ctx_RegEdi)); 614 612 615 613 if (pCtxRec->ContextFlags & CONTEXT_SEGMENTS) /* check flags */ 616 dprintf((" DS=%08x\n" 617 " ES=%08x\n" 618 " FS=%08x\n" 619 " GS=%08x\n", 614 dprintf((" DS=%04x ES=%08x" 615 " FS=%04x GS=%04x\n", 620 616 pCtxRec->ctx_SegDs, 621 617 pCtxRec->ctx_SegEs, -
trunk/src/kernel32/hmopen32.cpp
r113 r114 1 /* $Id: hmopen32.cpp,v 1. 2 1999-06-17 18:44:06phaller Exp $ */1 /* $Id: hmopen32.cpp,v 1.3 1999-06-17 21:52:01 phaller Exp $ */ 2 2 3 3 /* … … 10 10 * Remark * 11 11 ***************************************************************************** 12 13 - do CreateFile + OpenFile allocate handles14 - does CloseHandle remove the handle ?15 12 */ 16 13 14 //#define DEBUG_LOCAL 15 16 #ifdef DEBUG_LOCAL 17 # define dprintfl(a) dprintf(a) 18 #else 19 inline void ignore_dprintf(...){} 20 # define dprintfl(a) ignore_dprintf(a) 21 #endif 17 22 18 23 /***************************************************************************** … … 55 60 ULONG arg4) 56 61 { 57 dprintf (("KERNEL32: HandleManager::Open32::_DeviceRequest %s(%08x,%08x) - stub?\n",62 dprintfl(("KERNEL32: HandleManager::Open32::_DeviceRequest %s(%08x,%08x) - stub?\n", 58 63 lpHMDeviceName, 59 64 pHMHandleData, … … 89 94 HFILE hTemplate; 90 95 91 dprintf (("KERNEL32: HandleManager::Open32::CreateFile %s(%s,%08x,%08x,%08x) - stub?\n",96 dprintfl(("KERNEL32: HandleManager::Open32::CreateFile %s(%s,%08x,%08x,%08x) - stub?\n", 92 97 lpHMDeviceName, 93 98 lpFileName, … … 141 146 BOOL bRC; 142 147 143 dprintf (("KERNEL32: HandleManager::Open32::CloseHandle(%08x)\n",148 dprintfl(("KERNEL32: HandleManager::Open32::CloseHandle(%08x)\n", 144 149 pHMHandleData->hWinHandle)); 145 150 146 151 bRC = O32_CloseHandle(pHMHandleData->hWinHandle); 147 152 148 dprintf (("KERNEL32: HandleManager::Open32::CloseHandle returned %08xh\n",153 dprintfl(("KERNEL32: HandleManager::Open32::CloseHandle returned %08xh\n", 149 154 bRC)); 150 155 … … 177 182 BOOL bRC; 178 183 179 dprintf (("KERNEL32: HandleManager::Open32::ReadFile %s(%08x,%08x,%08x,%08x,%08x) - stub?\n",184 dprintfl(("KERNEL32: HandleManager::Open32::ReadFile %s(%08x,%08x,%08x,%08x,%08x) - stub?\n", 180 185 lpHMDeviceName, 181 186 pHMHandleData, … … 191 196 lpOverlapped); 192 197 193 dprintf (("KERNEL32: HandleManager::Open32::ReadFile returned %08xh\n",198 dprintfl(("KERNEL32: HandleManager::Open32::ReadFile returned %08xh\n", 194 199 bRC)); 195 200 … … 222 227 BOOL bRC; 223 228 224 dprintf (("KERNEL32: HandleManager::Open32::WriteFile %s(%08x,%08x,%08x,%08x,%08x) - stub?\n",229 dprintfl(("KERNEL32: HandleManager::Open32::WriteFile %s(%08x,%08x,%08x,%08x,%08x) - stub?\n", 225 230 lpHMDeviceName, 226 231 pHMHandleData, … … 236 241 lpOverlapped); 237 242 238 dprintf (("KERNEL32: HandleManager::Open32::WriteFile returned %08xh\n",243 dprintfl(("KERNEL32: HandleManager::Open32::WriteFile returned %08xh\n", 239 244 bRC)); 240 245 … … 257 262 DWORD HMDeviceOpen32Class::GetFileType(PHMHANDLEDATA pHMHandleData) 258 263 { 259 dprintf (("KERNEL32: HandleManager::Open32::GetFileType %s(%08x)\n",264 dprintfl(("KERNEL32: HandleManager::Open32::GetFileType %s(%08x)\n", 260 265 lpHMDeviceName, 261 266 pHMHandleData)); … … 281 286 BY_HANDLE_FILE_INFORMATION* pHFI) 282 287 { 283 dprintf (("KERNEL32: HandleManager::Open32::GetFileInformationByHandle %s(%08xh,%08xh)\n",288 dprintfl(("KERNEL32: HandleManager::Open32::GetFileInformationByHandle %s(%08xh,%08xh)\n", 284 289 lpHMDeviceName, 285 290 pHMHandleData, … … 305 310 BOOL HMDeviceOpen32Class::SetEndOfFile(PHMHANDLEDATA pHMHandleData) 306 311 { 307 dprintf (("KERNEL32: HandleManager::Open32::SetEndOfFile %s(%08xh)\n",312 dprintfl(("KERNEL32: HandleManager::Open32::SetEndOfFile %s(%08xh)\n", 308 313 lpHMDeviceName, 309 314 pHMHandleData)); … … 333 338 LPFILETIME pFT3) 334 339 { 335 dprintf (("KERNEL32: HandleManager::Open32::SetFileTime %s(%08xh,%08xh,%08xh,%08xh)\n",340 dprintfl(("KERNEL32: HandleManager::Open32::SetFileTime %s(%08xh,%08xh,%08xh,%08xh)\n", 336 341 lpHMDeviceName, 337 342 pHMHandleData, … … 363 368 PDWORD pSize) 364 369 { 365 dprintf (("KERNEL32: HandleManager::Open32::GetFileSize %s(%08xh,%08xh)\n",370 dprintfl(("KERNEL32: HandleManager::Open32::GetFileSize %s(%08xh,%08xh)\n", 366 371 lpHMDeviceName, 367 372 pHMHandleData, … … 393 398 DWORD dwMoveMethod) 394 399 { 395 dprintf (("KERNEL32: HandleManager::Open32::SetFilePointer %s(%08xh,%08xh,%08xh,%08xh)\n",400 dprintfl(("KERNEL32: HandleManager::Open32::SetFilePointer %s(%08xh,%08xh,%08xh,%08xh)\n", 396 401 lpHMDeviceName, 397 402 pHMHandleData, … … 429 434 DWORD arg5) 430 435 { 431 dprintf (("KERNEL32: HandleManager::Open32::LockFile %s(%08xh,%08xh,%08xh,%08xh,%08xh)\n",436 dprintfl(("KERNEL32: HandleManager::Open32::LockFile %s(%08xh,%08xh,%08xh,%08xh,%08xh)\n", 432 437 lpHMDeviceName, 433 438 pHMHandleData, … … 471 476 { 472 477 473 dprintf (("KERNEL32: HandleManager::Open32::LockFileEx %s(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n",478 dprintfl(("KERNEL32: HandleManager::Open32::LockFileEx %s(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n", 474 479 lpHMDeviceName, 475 480 pHMHandleData, … … 513 518 HFILE hFile; 514 519 515 dprintf (("KERNEL32: HandleManager::Open32::OpenFile %s(%s,%08x,%08x,%08x) - stub?\n",520 dprintfl(("KERNEL32: HandleManager::Open32::OpenFile %s(%s,%08x,%08x,%08x) - stub?\n", 516 521 lpHMDeviceName, 517 522 lpFileName, … … 556 561 DWORD arg5) 557 562 { 558 dprintf (("KERNEL32: HandleManager::Open32::UnlockFile %s(%08xh,%08xh,%08xh,%08xh,%08xh)\n",563 dprintfl(("KERNEL32: HandleManager::Open32::UnlockFile %s(%08xh,%08xh,%08xh,%08xh,%08xh)\n", 559 564 lpHMDeviceName, 560 565 pHMHandleData, … … 598 603 { 599 604 600 dprintf (("KERNEL32: HandleManager::Open32::UnlockFileEx %s(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n",605 dprintfl(("KERNEL32: HandleManager::Open32::UnlockFileEx %s(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n", 601 606 lpHMDeviceName, 602 607 pHMHandleData, -
trunk/src/kernel32/makefile
r111 r114 1 # $Id: makefile,v 1. 5 1999-06-17 18:21:43phaller Exp $1 # $Id: makefile,v 1.6 1999-06-17 21:52:01 phaller Exp $ 2 2 3 3 # … … 20 20 21 21 OBJS = KERNEL32.OBJ \ 22 KOBJECTS.OBJ \ 22 23 CONSOLE.OBJ \ 23 24 CONIN.OBJ \ … … 98 99 $(PDWIN32_INCLUDE)\nameid.h 99 100 101 kobjects.obj: kobjects.cpp 102 100 103 comm.OBJ: \ 101 104 .\comm.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.