Advertisement
Advertisement
| 05.10.2008 at 05:14AM PDT, ID: 23391546 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: |
int
WINAPI
WlxLoggedOutSAS (PVOID pWlxContext,
DWORD dwSasType,
PLUID pAuthenticationId,
PSID pLogonSid,
PDWORD pdwOptions,
PHANDLE phToken,
PWLX_MPR_NOTIFY_INFO pMprNotifyInfo,
PVOID * pProfile)
{
//my dialog that doesn't work:
int iRet;
iRet = ((PWLX_DISPATCH_VERSION_1_3)g_pWinlogon)->WlxDialogBox(handleWlxInit,globalInstance,MAKEINTRESOURCEW (IDD_DIALOG1),NULL,checkPIN);
//msgbox that works:
((PWLX_DISPATCH_VERSION_1_3) g_pWinlogon)->WlxMessageBox(handleWlxInit,globalHwnd,L"Test",L"Test",MB_OK);
//this is the default logged out sas dialog
//int iRet;
iRet = pfWlxLoggedOutSAS(pWlxContext,
dwSasType,
pAuthenticationId,
pLogonSid,
pdwOptions,
phToken,
pMprNotifyInfo,
pProfile);
if(iRet == WLX_SAS_ACTION_LOGON)
{
//
// Copy pMprNotifyInfo and pLogonSid for later use.
//
// pMprNotifyInfo->pszUserName
// pMprNotifyInfo->pszDomain
// pMprNotifyInfo->pszPassword
// pMprNotifyInfo->pszOldPassword
}
return iRet;
}
BOOL CALLBACK checkPIN(HWND hwndDlg,
UINT message,
WPARAM wParam,
LPARAM lParam)
{
switch (message)
{
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
//do something
// Fall through.
case IDCANCEL:
// do something else
return TRUE;
}
}
return FALSE;
}
|