|
-
May 3rd, 1999, 11:40 PM
#1
GINA ..problem2
what shall i put in WlxWkstaLockedSAS(.....) in order for user to log on to a lock station?
i really couln't figure out what went wrong with my codes, that whatever the user key in, he will be
allowed to gain access to a locked workstation. Here is my code,
int
WINAPI
WlxWkstaLockedSAS(
PVOID pWlxContext,
DWORD dwSasType
)
{
int result;
PGlobals pGlobals;
pGlobals = (PGlobals) pWlxContext;
result = pWlxFuncs->WlxDialogBoxParam( (HANDLE)hGlobalWlx,
(HANDLE)hDllInstance,
(LPWSTR) MAKEINTRESOURCE(IDD_DIALOG_LOGON2),
NULL,
(DLGPROC)LogonDlgProc2,
(LPARAM) pGlobals );
HANDLE hUser;
if (LogonUser( (LPTSTR)pGlobals->pAccount->pszUsername,
(LPTSTR)pGlobals->pAccount->pszDomain,
(LPTSTR)pGlobals->pAccount->pszPassword,
(DWORD)LOGON32_LOGON_INTERACTIVE,
(DWORD)LOGON32_PROVIDER_DEFAULT,
(PHANDLE)&hUser))
return(WLX_SAS_ACTION_UNLOCK_WKSTA);
else return;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|