VirtualBox

Ignore:
Timestamp:
Mar 28, 2011 9:42:12 AM (14 years ago)
Author:
vboxsync
Message:

VBoxGINA: Implemented support for handling/ignoring remote (desktop) sessions.

File:
1 edited

Legend:

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

    r36283 r36446  
    112112#endif
    113113
    114     Log(("VBoxGINA::WlxNegotiate: dwWinlogonVersion: %d\n", dwWinlogonVersion));
    115 
    116     /* load the standard Microsoft GINA DLL */
     114    Log(("VBoxGINA::WlxNegotiate: dwWinlogonVersion: %ld\n", dwWinlogonVersion));
     115
     116    /* Load global configuration from registry. */
     117    DWORD dwRet = loadConfiguration();
     118    if (ERROR_SUCCESS != dwRet)
     119        Log(("VBoxGINA: Error loading global configuration, error=%ld\n", dwRet));
     120
     121    /* If we have a remote session (that is, a connection via remote desktop /
     122     * terminal services) deny it if not specified explicitly. */
     123    if (!handleCurrentSession())
     124        Log(("VBoxGINA: Handling of remote desktop sessions is disabled.\n"));
     125
     126    /* Load the standard Microsoft GINA DLL. */
    117127    if (!(hDll = LoadLibrary(TEXT("MSGINA.DLL"))))
    118128    {
    119         Log(("VBoxGINA::WlxNegotiate: failed loading MSGINA! last error = %d\n", GetLastError()));
     129        Log(("VBoxGINA::WlxNegotiate: failed loading MSGINA! Last error=%ld\n", GetLastError()));
    120130        return FALSE;
    121131    }
     
    444454 * GINA 1.3 entry points
    445455 */
    446 BOOL WINAPI WlxNetworkProviderLoad (PVOID pWlxContext, PWLX_MPR_NOTIFY_INFO pNprNotifyInfo)
     456BOOL WINAPI WlxNetworkProviderLoad(PVOID pWlxContext, PWLX_MPR_NOTIFY_INFO pNprNotifyInfo)
    447457{
    448458    Log(("VBoxGINA::WlxNetworkProviderLoad\n"));
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