Using Windows Vista Credentials

Posted by Ehtsham on Stack Overflow See other posts from Stack Overflow or by Ehtsham
Published on 2009-09-16T06:17:53Z Indexed on 2010/05/25 11:01 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

Hi all i am using CredUIPromptForWinodwsCredentialw for prompting the user for verifying his/her credentials how can i verify these credentilas. the code i am using is

BOOL save = false;

DWORD authPackage = 0; LPVOID authBuffer; ULONG authBufferSize = 0; CREDUI_INFO credUiInfo; DWORD logininfo;

credUiInfo.pszCaptionText = TEXT("My caption"); credUiInfo.pszMessageText = TEXT("My message"); credUiInfo.cbSize = sizeof(credUiInfo); credUiInfo.hbmBanner = NULL; credUiInfo.hwndParent = NULL; PCREDUI_INFO objpcredui;

logininfo = CredUIPromptForWindowsCredentials(&(credUiInfo), 0, &(authPackage), NULL, 0, &authBuffer, &authBufferSize, &(save), 1|2);

© Stack Overflow or respective owner

Related posts about c++

Related posts about Vista