Changeset 1134 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Oct 5, 1999, 12:25:02 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r1118 r1134 1 /* $Id: wprocess.cpp,v 1.3 4 1999-10-04 09:55:57 sandervlExp $ */1 /* $Id: wprocess.cpp,v 1.35 1999-10-04 22:25:01 phaller Exp $ */ 2 2 3 3 /* … … 10 10 * 11 11 */ 12 #include <odin.h> 13 #include <odinwrap.h> 12 14 #include <os2win.h> 13 15 #include <stdio.h> … … 33 35 #include "mmap.h" 34 36 37 38 ODINDEBUGCHANNEL(KERNEL32-WPROCESS) 39 40 41 //****************************************************************************** 42 //****************************************************************************** 35 43 BOOL fFreeLibrary = FALSE; 36 44 … … 299 307 } 300 308 301 if(Win32ImageBase::isPEImage((char *)modname)) 309 if(Win32ImageBase::isPEImage((char *)modname)) 302 310 { 303 311 module = Win32DllBase::findModule((char *)modname); … … 499 507 } 500 508 //****************************************************************************** 501 //NOTE: GetModuleHandleA does NOT support files with multiple dots (i.e. 509 //NOTE: GetModuleHandleA does NOT support files with multiple dots (i.e. 502 510 // very.weird.exe) 503 511 //****************************************************************************** … … 522 530 else { 523 531 if(!strstr(szModule, ".")) { 524 //if there's no extension or trainling dot, we 532 //if there's no extension or trainling dot, we 525 533 //assume it's a dll (see Win32 SDK docs) 526 534 fDllModule = TRUE; … … 702 710 } 703 711 712 //****************************************************************************** 713 //TODO:What does this do exactly?? 714 //****************************************************************************** 715 ODINFUNCTION1(BOOL,DisableThreadLibraryCalls,HMODULE,hModule) 716 { 717 Win32DllBase *winmod; 718 FARPROC proc; 719 ULONG ulAPIOrdinal; 720 721 winmod = Win32DllBase::findModule((HINSTANCE)hModule); 722 if(winmod) 723 { 724 // don't call ATTACH/DETACH thread functions in DLL 725 winmod->setThreadLibraryCalls(FALSE); 726 return TRUE; 727 } 728 else 729 { 730 // raise error condition 731 SetLastError(ERROR_INVALID_HANDLE); 732 return FALSE; 733 } 734 } 735
Note:
See TracChangeset
for help on using the changeset viewer.