VirtualBox

Changeset 16143 in vbox


Ignore:
Timestamp:
Jan 21, 2009 2:32:58 PM (16 years ago)
Author:
vboxsync
Message:

VBoxGINA: Fixed CTRL-ALT-DEL handling: Now works as expected. Also added some more diagnostic info for further debugging.

File:
1 edited

Legend:

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

    r16140 r16143  
    328328    HKEY hKey;
    329329    DWORD dwValue = 1;
    330     DWORD dwSize;
    331     DWORD dwType;
    332 
    333     Log(("VBoxGINA::WlxLoggedOnSAS\n"));
     330    DWORD dwSize = 0;
     331    DWORD dwType = 0;
     332    int iRet = WLX_SAS_ACTION_NONE;
     333
     334    Log(("VBoxGINA::WlxLoggedOnSAS: SaSType = %ld\n", dwSasType));
    334335
    335336    /* Winlogon registry path */
     
    343344    }
    344345    else
    345         Log(("VBoxGINA::WlxLoggedOnSAS: could not open registry key! last error: %d\n", GetLastError()));
     346    {
     347        Log(("VBoxGINA::WlxLoggedOnSAS: Could not open registry key! Last error: %d\n", GetLastError()));
     348    }
    346349
    347350    if (dwValue)
    348         return WLX_SAS_ACTION_NONE;
     351    {
     352        switch (dwSasType)
     353        {
     354
     355        case WLX_SAS_TYPE_CTRL_ALT_DEL:     /* User pressed CTRL-ALT-DEL. */
     356
     357            /* Show the task list (or whatever the OS wants to do here). */
     358            iRet = WLX_SAS_ACTION_TASKLIST;
     359            break;
     360
     361        default:
     362            break;
     363        }
     364    }
    349365    else
    350         /* forward call to MSGINA */
     366    {
     367        /* Forward call to MSGINA. */
     368        Log(("VBoxGINA::WlxLoggedOnSAS: Forwarding call to MSGINA ...\n"));
    351369        return GWlxLoggedOnSAS(pWlxContext, dwSasType, pReserved);
     370    }
     371
     372    return iRet;
    352373}
    353374
     
    431452                                PVOID pEnvironment, PWSTR pszCmdLine)
    432453{
    433     Log(("VBoxGINA::WlxStartApplication\n"));
     454    Log(("VBoxGINA::WlxStartApplication: pWlxCtx=%p, pszDesktopName=%ls, pEnvironment=%p, pszCmdLine=%ls\n",
     455        pWlxContext, pszDesktopName, pEnvironment, pszCmdLine));
    434456
    435457    /* forward to MSGINA if present */
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