VirtualBox

Changeset 46625 in vbox


Ignore:
Timestamp:
Jun 18, 2013 1:28:52 PM (11 years ago)
Author:
vboxsync
Message:

unify casing

Location:
trunk/src/VBox
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDispIf.cpp

    r46194 r46625  
    100100    {
    101101        Log((__FUNCTION__": this is vista and up\n"));
    102         HMODULE hUser = GetModuleHandle("USER32");
     102        HMODULE hUser = GetModuleHandle("user32.dll");
    103103        if (hUser)
    104104        {
     
    169169        else
    170170        {
    171             Log((__FUNCTION__": GetModuleHandle(USER32) failed, err(%d)\n", GetLastError()));
     171            Log((__FUNCTION__": GetModuleHandle(user32) failed, err(%d)\n", GetLastError()));
    172172            err = ERROR_NOT_SUPPORTED;
    173173        }
     
    15731573    if (OSinfo.dwMajorVersion >= 5)
    15741574    {
    1575         HMODULE hUser = GetModuleHandle("USER32");
     1575        HMODULE hUser = GetModuleHandle("user32.dll");
    15761576        if (NULL != hUser)
    15771577        {
     
    15891589        else
    15901590        {
    1591             Log((__FUNCTION__": failed to get USER32 handle, err (%d)\n", GetLastError()));
     1591            Log((__FUNCTION__": failed to get user32 handle, err (%d)\n", GetLastError()));
    15921592            err = ERROR_NOT_SUPPORTED;
    15931593        }
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxDisplay.cpp

    r45761 r46625  
    6363    GetVersionEx (&OSinfo);
    6464
    65     HMODULE hUser = GetModuleHandle("USER32");
     65    HMODULE hUser = GetModuleHandle("user32.dll");
    6666
    6767    gCtx.pEnv = pEnv;
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxLA.cpp

    r46593 r46625  
    12491249    RT_ZERO(gCtx.activeClient);
    12501250
    1251     *(void **)&gCtx.pfnProcessIdToSessionId = RTLdrGetSystemSymbol("KERNEL32", "ProcessIdToSessionId");
     1251    *(void **)&gCtx.pfnProcessIdToSessionId = RTLdrGetSystemSymbol("kernel32.dll", "ProcessIdToSessionId");
    12521252    *pfStartThread = true;
    12531253    *ppInstance = &gCtx;
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp

    r46593 r46625  
    551551            BOOL (WINAPI * pfnConvertStringSecurityDescriptorToSecurityDescriptorA)(LPCSTR StringSecurityDescriptor, DWORD StringSDRevision, PSECURITY_DESCRIPTOR  *SecurityDescriptor, PULONG  SecurityDescriptorSize);
    552552            *(void **)&pfnConvertStringSecurityDescriptorToSecurityDescriptorA =
    553                 RTLdrGetSystemSymbol("ADVAPI32.DLL", "ConvertStringSecurityDescriptorToSecurityDescriptorA");
     553                RTLdrGetSystemSymbol("advapi32.dll", "ConvertStringSecurityDescriptorToSecurityDescriptorA");
    554554            Log(("VBoxTray: pfnConvertStringSecurityDescriptorToSecurityDescriptorA = %x\n", pfnConvertStringSecurityDescriptorToSecurityDescriptorA));
    555555            if (pfnConvertStringSecurityDescriptorToSecurityDescriptorA)
     
    12921292            {
    12931293                /* Try get the system APIs we need. */
    1294                 *(void **)&gVBoxDt.pfnGetThreadDesktop = RTLdrGetSystemSymbol("User32.dll", "GetThreadDesktop");
     1294                *(void **)&gVBoxDt.pfnGetThreadDesktop = RTLdrGetSystemSymbol("user32.dll", "GetThreadDesktop");
    12951295                if (!gVBoxDt.pfnGetThreadDesktop)
    12961296                {
     
    12991299                }
    13001300
    1301                 *(void **)&gVBoxDt.pfnOpenInputDesktop = RTLdrGetSystemSymbol("User32.dll", "OpenInputDesktop");
     1301                *(void **)&gVBoxDt.pfnOpenInputDesktop = RTLdrGetSystemSymbol("user32.dll", "OpenInputDesktop");
    13021302                if (!gVBoxDt.pfnOpenInputDesktop)
    13031303                {
     
    13061306                }
    13071307
    1308                 *(void **)&gVBoxDt.pfnCloseDesktop = RTLdrGetSystemSymbol("User32.dll", "CloseDesktop");
     1308                *(void **)&gVBoxDt.pfnCloseDesktop = RTLdrGetSystemSymbol("user32.dll", "CloseDesktop");
    13091309                if (!gVBoxDt.pfnCloseDesktop)
    13101310                {
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r44992 r46625  
    582582    }
    583583
    584     HMODULE hUser = GetModuleHandle("USER32");
     584    HMODULE hUser = GetModuleHandle("user32.dll");
    585585
    586586    if (hUser)
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceStats.cpp

    r46593 r46625  
    127127    /* NtQuerySystemInformation might be dropped in future releases, so load
    128128       it dynamically as per Microsoft's recommendation. */
    129     *(void **)&gCtx.pfnNtQuerySystemInformation = RTLdrGetSystemSymbol("NTDLL.DLL", "NtQuerySystemInformation");
     129    *(void **)&gCtx.pfnNtQuerySystemInformation = RTLdrGetSystemSymbol("ntdll.dll", "NtQuerySystemInformation");
    130130    if (gCtx.pfnNtQuerySystemInformation)
    131131        VBoxServiceVerbose(3, "VBoxStatsInit: gCtx.pfnNtQuerySystemInformation = %x\n", gCtx.pfnNtQuerySystemInformation);
    132132    else
    133133    {
    134         VBoxServiceVerbose(3, "VBoxStatsInit: NTDLL.NtQuerySystemInformation not found!\n");
     134        VBoxServiceVerbose(3, "VBoxStatsInit: ntdll.NtQuerySystemInformation not found!\n");
    135135        return VERR_SERVICE_DISABLED;
    136136    }
    137137
    138138    /* GlobalMemoryStatus is win2k and up, so load it dynamically */
    139     *(void **)&gCtx.pfnGlobalMemoryStatusEx = RTLdrGetSystemSymbol("KERNEL32.DLL", "GlobalMemoryStatusEx");
     139    *(void **)&gCtx.pfnGlobalMemoryStatusEx = RTLdrGetSystemSymbol("kernel32.dll", "GlobalMemoryStatusEx");
    140140    if (gCtx.pfnGlobalMemoryStatusEx)
    141141        VBoxServiceVerbose(3, "VBoxStatsInit: gCtx.GlobalMemoryStatusEx = %x\n", gCtx.pfnGlobalMemoryStatusEx);
     
    143143    {
    144144        /** @todo Now fails in NT4; do we care? */
    145         VBoxServiceVerbose(3, "VBoxStatsInit: KERNEL32.GlobalMemoryStatusEx not found!\n");
     145        VBoxServiceVerbose(3, "VBoxStatsInit: kernel32.GlobalMemoryStatusEx not found!\n");
    146146        return VERR_SERVICE_DISABLED;
    147147    }
    148148
    149149    /* GetPerformanceInfo is xp and up, so load it dynamically */
    150     *(void **)&gCtx.pfnGetPerformanceInfo = RTLdrGetSystemSymbol("PSAPI.DLL", "GetPerformanceInfo");
     150    *(void **)&gCtx.pfnGetPerformanceInfo = RTLdrGetSystemSymbol("psapi.dll", "GetPerformanceInfo");
    151151    if (gCtx.pfnGetPerformanceInfo)
    152152        VBoxServiceVerbose(3, "VBoxStatsInit: gCtx.pfnGetPerformanceInfo= %x\n", gCtx.pfnGetPerformanceInfo);
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r45061 r46625  
    15611561        s_classDeviceChange.lpfnWndProc   = DeviceChangeWindowProc;
    15621562        s_classDeviceChange.lpszClassName = "VBOX_DeviceChangeClass";
    1563         s_classDeviceChange.hInstance     = GetModuleHandle("VBOXDD.DLL");
     1563        s_classDeviceChange.hInstance     = GetModuleHandle("VBoxDD.dll");
    15641564        Assert(s_classDeviceChange.hInstance);
    15651565        s_hAtomDeviceChange = RegisterClassA(&s_classDeviceChange);
  • trunk/src/VBox/Runtime/r3/win/RTSystemQueryOSInfo-win.cpp

    r44529 r46625  
    225225{
    226226    BOOL (WINAPI *pfnGetProductInfo)(DWORD, DWORD, DWORD, DWORD, PDWORD);
    227     pfnGetProductInfo = (BOOL (WINAPI *)(DWORD, DWORD, DWORD, DWORD, PDWORD))GetProcAddress(GetModuleHandle("KERNEL32.DLL"), "GetProductInfo");
     227    pfnGetProductInfo = (BOOL (WINAPI *)(DWORD, DWORD, DWORD, DWORD, PDWORD))GetProcAddress(GetModuleHandle("kernel32.dll"), "GetProductInfo");
    228228    if (pfnGetProductInfo)
    229229    {
  • trunk/src/VBox/Runtime/r3/win/mp-win.cpp

    r46619 r46625  
    9797
    9898    pfnGetLogicalProcInfo = (BOOL (WINAPI *)(PSYSTEM_LOGICAL_PROCESSOR_INFORMATION, PDWORD))
    99                              GetProcAddress(GetModuleHandle("KERNEL32.DLL"), "GetLogicalProcessorInformation");
     99                             GetProcAddress(GetModuleHandle("kernel32.dll"), "GetLogicalProcessorInformation");
    100100    /* 0 represents an error condition. We cannot return VERR* error codes as caller expects a
    101101     * unsigned value of core count.*/
  • trunk/src/VBox/Runtime/r3/win/thread-win.cpp

    r46593 r46625  
    174174                         cComInits, cComInits, cOleInits, cOleInits));
    175175
    176         HMODULE hOle32 = GetModuleHandle("OLE32");
     176        HMODULE hOle32 = GetModuleHandle("ole32.dll");
    177177        AssertReturnVoid(hOle32 != NULL);
    178178
     
    258258    if (!fInitialized)
    259259    {
    260         HMODULE hmodKernel32 = GetModuleHandle("KERNEL32.DLL");
     260        HMODULE hmodKernel32 = GetModuleHandle("kernel32.dll");
    261261        if (hmodKernel32)
    262262            pfnGetCurrentProcessorNumber = (DWORD (WINAPI*)(void))GetProcAddress(hmodKernel32, "GetCurrentProcessorNumber");
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