2
0
mirror of https://github.com/tenrok/Rfid-Credential-Provider.git synced 2026-06-05 16:52:24 +03:00
Files
2019-11-29 15:55:40 +03:00

27 lines
652 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 = nullptr;
credUiInfo.hwndParent = nullptr;
CredUIPromptForWindowsCredentials(&credUiInfo, 0, &authPackage, nullptr, 0, &authBuffer, &authBufferSize, &save, 0);
return 0;
}