VirtualBox

Ignore:
Timestamp:
Sep 23, 2015 1:42:40 AM (9 years ago)
Author:
vboxsync
Message:

IPRT,libs: Hacks for building IPRT testcases that can run on NT4. Won't be enabled by default, as I'm doing pretty hairy things.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/init-win.cpp

    r57358 r57865  
    5757/** The native ntdll.dll handle. */
    5858DECLHIDDEN(HMODULE)             g_hModNtDll = NULL;
     59/** GetSystemWindowsDirectoryW or GetWindowsDirectoryW (NT4). */
     60DECLHIDDEN(PFNGETWINSYSDIR)     g_pfnGetSystemWindowsDirectoryW = NULL;
    5961
    6062
     
    293295        rc = rtR3InitNativeObtrusiveWorker();
    294296
     297    /*
     298     * Resolve some kernel32.dll APIs we may need but aren't necessarily
     299     * present in older windows versions.
     300     */
     301    g_pfnGetSystemWindowsDirectoryW = (PFNGETWINSYSDIR)GetProcAddress(g_hModKernel32, "GetSystemWindowsDirectoryW");
     302    if (g_pfnGetSystemWindowsDirectoryW)
     303        g_pfnGetSystemWindowsDirectoryW = (PFNGETWINSYSDIR)GetProcAddress(g_hModKernel32, "GetWindowsDirectoryW");
     304
    295305    return rc;
    296306}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette