2
0
mirror of https://github.com/tenrok/Rfid-Credential-Provider.git synced 2026-06-14 18:52:23 +03:00
Files
rfid-credential-provider/Provider/CredUILauncher/CredUILauncher.cpp
T
2012-02-26 13:07:01 -08:00

27 lines
643 B
C++

// CredUILauncher.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <windows.h>
#include <WinCred.h>
int _tmain(int argc, _TCHAR* argv[])
{
BOOL save = false;
DWORD authPackage = 0;
LPVOID authBuffer;
ULONG authBufferSize = 0;
CREDUI_INFO credUiInfo;
credUiInfo.pszCaptionText = TEXT("WinCred UI Demo");
credUiInfo.pszMessageText = TEXT("Example of RFID!");
credUiInfo.cbSize = sizeof(credUiInfo);
credUiInfo.hbmBanner = NULL;
credUiInfo.hwndParent = NULL;
CredUIPromptForWindowsCredentials(&credUiInfo, 0, &authPackage, NULL, 0, &authBuffer, &authBufferSize, &save, 0);
return 0;
}