- Timestamp:
- Jan 11, 2004, 1:12:34 PM (22 years ago)
- Location:
- trunk/src/kernel32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/KERNEL32.DEF
r10378 r10380 1 ; $Id: KERNEL32.DEF,v 1.16 0 2004-01-11 11:59:02 sandervl Exp $1 ; $Id: KERNEL32.DEF,v 1.161 2004-01-11 12:12:32 sandervl Exp $ 2 2 3 3 ;Basis is Windows95 KERNEL32 … … 1168 1168 FindNextFileMultiA = _FindNextFileMultiA@12 @1291 NONAME 1169 1169 1170 _GetProcModuleFileNameA@12 @1295 NONAME 1171 1170 1172 ;Build number 1171 1173 _Odin32GetBuildNumber@0 @1293 NONAME -
trunk/src/kernel32/kernel32dbg.def
r10378 r10380 1 ; $Id: kernel32dbg.def,v 1.3 5 2004-01-11 11:59:03 sandervl Exp $1 ; $Id: kernel32dbg.def,v 1.36 2004-01-11 12:12:33 sandervl Exp $ 2 2 3 3 ;Basis is Windows95 KERNEL32 … … 1168 1168 FindNextFileMultiA = _FindNextFileMultiA@12 @1291 NONAME 1169 1169 1170 _GetProcModuleFileNameA@12 @1295 NONAME 1171 1170 1172 ;Build number 1171 1173 _Odin32GetBuildNumber@0 @1293 NONAME -
trunk/src/kernel32/wprocess.cpp
r10378 r10380 1 /* $Id: wprocess.cpp,v 1.1 89 2004-01-11 11:59:04 sandervl Exp $ */1 /* $Id: wprocess.cpp,v 1.190 2004-01-11 12:12:34 sandervl Exp $ */ 2 2 3 3 /* … … 2453 2453 //****************************************************************************** 2454 2454 //****************************************************************************** 2455 UINT WIN32API GetProcModuleFileNameA(ULONG lpvAddress, LPSTR lpszFileName, UINT cchFileNameMax) 2456 { 2457 LPSTR lpszModuleName; 2458 Win32ImageBase *image = NULL; 2459 int len; 2460 2461 dprintf(("GetProcModuleFileNameA %x %x %d", lpvAddress, lpszFileName, cchFileNameMax)); 2462 2463 if(WinExe && WinExe->insideModule(lpvAddress) && WinExe->insideModuleCode(lpvAddress)) { 2464 image = WinExe; 2465 } 2466 else { 2467 Win32DllBase *dll = Win32DllBase::findModuleByAddr(lpvAddress); 2468 if(dll && dll->insideModuleCode(lpvAddress)) { 2469 image = dll; 2470 } 2471 } 2472 if(image == NULL) { 2473 dprintf(("GetProcModuleFileNameA: address not found!!")); 2474 return 0; 2475 } 2476 len = strlen(image->getFullPath()); 2477 if(len < cchFileNameMax) { 2478 strcpy(lpszFileName, image->getFullPath()); 2479 return len+1; //?? 2480 } 2481 else { 2482 dprintf(("GetProcModuleFileNameA: destination string too small!!")); 2483 return 0; 2484 } 2485 } 2486 //****************************************************************************** 2487 //****************************************************************************** 2455 2488 BOOL WIN32API DisableThreadLibraryCalls(HMODULE hModule) 2456 2489 {
Note:
See TracChangeset
for help on using the changeset viewer.