Исключение, брошенное по адресу 0x00007ffeda9172b4 (sspicli.dll) в Win32playground.exe: 0xc0000005: место записи на нарушение доступа 0x000000000000000000. />
https://learn.microsoft.com/en-us/windo ... yptmessage написан
Код: Выделить всё
#define SECURITY_WIN32
#define WIN32_LEAN_AND_MEAN
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#pragma comment(lib, "Secur32.lib")
static int amir() {
CredHandle hCred;
CtxtHandle hCtx;
TimeStamp tsExpiry;
SECURITY_STATUS status = AcquireCredentialsHandleW(
NULL,
(SEC_WCHAR*)L"Negotiate", // Use Negotiate instead of NTLM for local auth
SECPKG_CRED_OUTBOUND,
NULL,
NULL, // NULL means use current user's credentials
NULL,
NULL,
&hCred,
&tsExpiry);
if (status != SEC_E_OK) {
std::wcerr
Подробнее здесь: [url]https://stackoverflow.com/questions/79761575/experimenting-with-encryptmessage-win32-function-getting-segmentation-fault[/url]
Мобильная версия