rkeysvcc.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __rkeysvcc_h__
  7. #define __rkeysvcc_h__
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. typedef void *KEYSVCC_HANDLE;
  12. typedef enum _KEYSVC_TYPE {
  13. KeySvcMachine,KeySvcService
  14. } KEYSVC_TYPE;
  15. typedef struct _KEYSVC_UNICODE_STRING {
  16. USHORT Length;
  17. USHORT MaximumLength;
  18. USHORT *Buffer;
  19. } KEYSVC_UNICODE_STRING,*PKEYSVC_UNICODE_STRING;
  20. typedef struct _KEYSVC_BLOB {
  21. ULONG cb;
  22. BYTE *pb;
  23. } KEYSVC_BLOB,*PKEYSVC_BLOB;
  24. #define RKEYSVC_CONNECT_SECURE_ONLY 0x00000001
  25. ULONG RKeyOpenKeyService(LPSTR pszMachineName,KEYSVC_TYPE OwnerType,LPWSTR pwszOwnerName,void *pAuthentication,void *pReserved,KEYSVCC_HANDLE *phKeySvcCli);
  26. ULONG RKeyCloseKeyService(KEYSVCC_HANDLE hKeySvcCli,void *pReserved);
  27. ULONG RKeyPFXInstall(KEYSVCC_HANDLE hKeySvcCli,PKEYSVC_BLOB pPFX,PKEYSVC_UNICODE_STRING pPassword,ULONG ulFlags);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif