Ignore:
Timestamp:
Jan 11, 2004, 12:59:04 PM (22 years ago)
Author:
sandervl
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/wprocess.cpp

    r10048 r10378  
    1 /* $Id: wprocess.cpp,v 1.188 2003-04-29 10:27:18 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.189 2004-01-11 11:59:04 sandervl Exp $ */
    22
    33/*
     
    24522452}
    24532453//******************************************************************************
    2454 //Retrieve the version
    2455 //******************************************************************************
    2456 BOOL SYSTEM GetVersionStruct(char *lpszModName, char *verstruct, ULONG bufLength)
    2457 {
    2458  Win32ImageBase *winimage;
    2459  HINSTANCE hDll;
    2460  BOOL rc = FALSE;
    2461 
    2462     dprintf(("GetVersionStruct of module %s %x %d", lpszModName, verstruct, bufLength));
    2463     if(verstruct == NULL) {
    2464         SetLastError(ERROR_INVALID_PARAMETER);
    2465         return FALSE;
    2466     }
    2467     if (WinExe != NULL && WinExe->matchModName(lpszModName)) {
    2468         return WinExe->getVersionStruct(verstruct, bufLength);
    2469     }
    2470     hDll = LoadLibraryExA(lpszModName, 0, LOAD_LIBRARY_AS_DATAFILE);
    2471     if(hDll == 0) {
    2472         dprintf(("ERROR: GetVersionStruct: Unable to load module!!"));
    2473         return 0;
    2474     }
    2475     winimage = (Win32ImageBase *)Win32DllBase::findModule(hDll);
    2476     if(winimage != NULL) {
    2477         rc = winimage->getVersionStruct(verstruct, bufLength);
    2478     }
    2479     else {
    2480         dprintf(("GetVersionStruct; just loaded dll %s, but can't find it now!", lpszModName));
    2481 ////        DebugInt3();
    2482     }
    2483     FreeLibrary(hDll);
    2484     return rc;
    2485 }
    2486 //******************************************************************************
    2487 //******************************************************************************
    2488 ULONG SYSTEM GetVersionSize(char *lpszModName)
    2489 {
    2490  Win32ImageBase *winimage;
    2491  HINSTANCE hDll;
    2492  ULONG size = 0;
    2493 
    2494     dprintf(("GetVersionSize of %s", lpszModName));
    2495     if (WinExe != NULL && WinExe->matchModName(lpszModName)) {
    2496         return WinExe->getVersionSize();
    2497     }
    2498 
    2499     hDll = LoadLibraryExA(lpszModName, 0, LOAD_LIBRARY_AS_DATAFILE);
    2500     if(hDll == 0) {
    2501         dprintf(("ERROR: GetVersionStruct: Unable to load module!!"));
    2502         return 0;
    2503     }
    2504     winimage = (Win32ImageBase *)Win32DllBase::findModule(hDll);
    2505     if(winimage != NULL) {
    2506         size = winimage->getVersionSize();
    2507     }
    2508     else {
    2509         dprintf(("GetVersionSize; just loaded dll %s, but can't find it now!", lpszModName));
    2510 ////        DebugInt3();
    2511     }
    2512     FreeLibrary(hDll);
    2513     return size;
    2514 }
    2515 //******************************************************************************
    25162454//******************************************************************************
    25172455BOOL WIN32API DisableThreadLibraryCalls(HMODULE hModule)
Note: See TracChangeset for help on using the changeset viewer.