Changeset 59133 in vbox for trunk/src/VBox/Runtime/r3/win
- Timestamp:
- Dec 15, 2015 2:25:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/process-win.cpp
r57978 r59133 602 602 * 603 603 * @returns IPRT status code. 604 * @param pwszUser User name. 604 * @param pwszUser User name. A domain name can be specified (as part of a UPN, User Principal Name), 605 * e.g. "[email protected]". 605 606 * @param pwszPassword Password. 606 * @param pwszDomain Domain (not used at the moment).607 607 * @param phToken Pointer to store the logon token. 608 608 */ 609 static int rtProcWinUserLogon(PRTUTF16 pwszUser, PRTUTF16 pwszPassword, PRTUTF16 pwszDomain,HANDLE *phToken)609 static int rtProcWinUserLogon(PRTUTF16 pwszUser, PRTUTF16 pwszPassword, HANDLE *phToken) 610 610 { 611 611 AssertPtrReturn(pwszUser, VERR_INVALID_POINTER); 612 612 AssertPtrReturn(pwszPassword, VERR_INVALID_POINTER); 613 NOREF(pwszDomain); /** @todo Add domain support! */614 613 615 614 /* … … 621 620 * is required on older windows versions (NT4, W2K, possibly XP). 622 621 */ 623 PCRTUTF16 pwszDomain ToUse = g_enmWinVer < kRTWinOSType_2K ? L"" /* NT4 and older */ : NULL /* Windows 2000 and up */;622 PCRTUTF16 pwszDomainNone = g_enmWinVer < kRTWinOSType_2K ? L"" /* NT4 and older */ : NULL /* Windows 2000 and up */; 624 623 BOOL fRc = LogonUserW(pwszUser, 625 pwszDomainToUse, 624 /* The domain always is passed as part of the UPN (user name). */ 625 pwszDomainNone, 626 626 pwszPassword, 627 627 LOGON32_LOGON_INTERACTIVE, … … 1304 1304 DWORD dwErr = NO_ERROR; 1305 1305 HANDLE hTokenLogon = INVALID_HANDLE_VALUE; 1306 int rc = rtProcWinUserLogon(pwszUser, pwszPassword, NULL /* Domain */,&hTokenLogon);1306 int rc = rtProcWinUserLogon(pwszUser, pwszPassword, &hTokenLogon); 1307 1307 if (RT_SUCCESS(rc)) 1308 1308 { … … 1620 1620 RTENV hEnvToUse = NIL_RTENV; 1621 1621 HANDLE hToken; 1622 rc = rtProcWinUserLogon(pwszUser, pwszPassword, NULL /* Domain */,&hToken);1622 rc = rtProcWinUserLogon(pwszUser, pwszPassword, &hToken); 1623 1623 if (RT_SUCCESS(rc)) 1624 1624 { … … 2043 2043 dwCreationFlags, 2044 2044 pwszzBlock, 2045 NULL, 2045 NULL, /* pCurrentDirectory */ 2046 2046 &StartupInfo, 2047 2047 &ProcInfo))
Note:
See TracChangeset
for help on using the changeset viewer.