VirtualBox

Ignore:
Timestamp:
Jun 16, 2010 1:48:29 PM (15 years ago)
Author:
vboxsync
Message:

Windows Guest Additions Credential Provider:

  • Added reverse lookup for using "display names" as the user account name ("John Doe" -> "jdoe").
  • Fixed showing empty user tile on invalid user/credentials.
  • Fixed domain name handling.
  • Fixed "dot" caption when no domain name is used.
  • Wipe credentials after passing over to Kerberos.
  • Beautified code a bit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxCredProv/dll.cpp

    r29200 r30252  
    2626*   Global Variables                                                           *
    2727*******************************************************************************/
    28 static LONG g_cRef = 0;     /* Global dll reference count */
    29 HINSTANCE g_hinst = NULL;   /* Global dll hinstance */
     28static LONG g_cRef = 0;        /* Global DLL reference count. */
     29HINSTANCE g_hDllInst = NULL;   /* Global DLL hinstance. */
    3030
    3131
     
    3535    if (CLSID_VBoxCredProvider == rclsid)
    3636    {
    37         CClassFactory* pcf = new CClassFactory;
    38         if (pcf)
     37        CClassFactory* pClassFactory = new CClassFactory;
     38        if (pClassFactory)
    3939        {
    40             hr = pcf->QueryInterface(riid, ppv);
    41             pcf->Release();
     40            hr = pClassFactory->QueryInterface(riid, ppv);
     41            pClassFactory->Release();
    4242        }
    4343        else
     
    5555
    5656BOOL WINAPI DllMain(HINSTANCE hinstDll,
    57                     DWORD dwReason,
    58                     LPVOID pReserved)
     57                    DWORD     dwReason,
     58                    LPVOID    pReserved)
    5959{
    6060    UNREFERENCED_PARAMETER(pReserved);
     
    7575    }
    7676
    77     g_hinst = hinstDll;
     77    g_hDllInst = hinstDll;
    7878    return TRUE;
    7979}
     
    9292
    9393
    94 /* DLL entry point */
     94LONG DllGetRefCount()
     95{
     96    return g_cRef;
     97}
     98
     99
     100/* DLL entry point. */
    95101STDAPI DllCanUnloadNow()
    96102{
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