SA-MP/saco/archive/CryptoContext.h
2024-05-29 16:32:30 +08:00

29 lines
423 B
C++

#pragma once
#include <windows.h>
class CCryptoContext
{
private:
static DWORD ms_dwRefCount;
static DWORD ms_dwProviderType;
static LPTSTR ms_szProviderName;
static LPTSTR ms_szContainerName;
static HMODULE ms_hAdvApi32;
HCRYPTPROV m_hCryptProv;
public:
CCryptoContext(void);
~CCryptoContext(void);
HCRYPTPROV GetProvider();
#ifdef ARCTOOL
void GenerateRandom(DWORD dwLength, BYTE* pbBuffer);
#endif
};