#pragma once #include 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 };