addlocalcert.h 1.6 KB

123456789101112131415161718192021
  1. #include <windows.h>
  2. //addCertificateToRootStore
  3. DECLSPEC_IMPORT BOOL WINAPI CRYPT32$CertAddEncodedCertificateToStore(HCERTSTORE hCertStore, DWORD dwCertEncodingType, const BYTE *pbCertEncoded, DWORD cbCertEncoded, DWORD dwAddDisposition, PCCERT_CONTEXT *ppCertContext);
  4. DECLSPEC_IMPORT BOOL WINAPI CRYPT32$CertSetCertificateContextProperty(PCCERT_CONTEXT pCertContext, DWORD dwPropId, DWORD dwFlags, const void *pvData);
  5. DECLSPEC_IMPORT BOOL WINAPI CRYPT32$CertFreeCertificateContext(PCCERT_CONTEXT pCertContext);
  6. DECLSPEC_IMPORT HCERTSTORE WINAPI CRYPT32$CertOpenStore(LPCWSTR lpszStoreProvider, DWORD dwEncodingType, HCRYPTPROV hCryptProv, DWORD dwFlags, const void *pvPara);
  7. DECLSPEC_IMPORT BOOL WINAPI CRYPT32$CertCloseStore(HCERTSTORE hCertStore, DWORD dwFlags);
  8. DECLSPEC_IMPORT int WINAPI KERNEL32$MultiByteToWideChar(UINT CodePage, DWORD dwFlags, _In_NLS_string_(cbMultiByte)LPCCH lpMultiByteStr, int cbMultiByte, LPWSTR lpWideCharStr, int cchWideChar);
  9. WINBASEAPI int __cdecl MSVCRT$fopen_s(FILE **_File, const char *_Filename, const char *_Mode);
  10. WINBASEAPI int __cdecl MSVCRT$fseek(FILE *_File, long _Offset, int _Origin);
  11. WINBASEAPI long __cdecl MSVCRT$ftell(FILE *_File);
  12. WINBASEAPI size_t __cdecl MSVCRT$fread(void * _DstBuf, size_t _ElementSize, size_t _Count, FILE * _File);
  13. WINBASEAPI int __cdecl MSVCRT$fclose(FILE *_File);
  14. WINBASEAPI int __cdecl MSVCRT$printf(const char * _Format,...);
  15. WINBASEAPI size_t __cdecl MSVCRT$strlen(const char *_Str);
  16. DECLSPEC_IMPORT HLOCAL WINAPI KERNEL32$LocalAlloc(UINT uFlags, SIZE_T uBytes);
  17. DECLSPEC_IMPORT HLOCAL WINAPI KERNEL32$LocalFree(HLOCAL hMem);
  18. WINBASEAPI DWORD WINAPI KERNEL32$GetLastError(void);