Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: rkeysvcc.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __rkeysvcc_h__
  11. #define __rkeysvcc_h__
  12. #ifdef __cplusplus
  13. extern "C"{
  14. #endif
  15. typedef void *KEYSVCC_HANDLE;
  16. typedef enum _KEYSVC_TYPE {
  17. KeySvcMachine,
  18. KeySvcService
  19. } KEYSVC_TYPE;
  20. typedef struct _KEYSVC_UNICODE_STRING {
  21. USHORT Length;
  22. USHORT MaximumLength;
  23. #ifdef KEYSVC_MIDL_PASS
  24. [size_is(MaximumLength / 2), length_is((Length) / 2) ]
  25. #endif // KEYSVC_MIDL_PASS
  26. USHORT *Buffer;
  27. } KEYSVC_UNICODE_STRING, *PKEYSVC_UNICODE_STRING;
  28. typedef struct _KEYSVC_BLOB {
  29. ULONG cb;
  30. #ifdef KEYSVC_MIDL_PASS
  31. [size_is(cb), length_is(cb)]
  32. #endif // KEYSVC_MIDL_PASS
  33. BYTE *pb;
  34. } KEYSVC_BLOB, *PKEYSVC_BLOB;
  35. ULONG RKeyOpenKeyService
  36. ( /* [in] */ LPSTR pszMachineName,
  37. /* [in] */ KEYSVC_TYPE OwnerType,
  38. /* [in] */ LPWSTR pwszOwnerName,
  39. /* [in] */ void *pAuthentication,
  40. /* [out][in] */ void *pReserved,
  41. /* [out] */ KEYSVCC_HANDLE *phKeySvcCli);
  42. ULONG RKeyCloseKeyService
  43. (/* [in] */ KEYSVCC_HANDLE hKeySvcCli,
  44. /* [out][in] */ void *pReserved);
  45. ULONG RKeyPFXInstall
  46. (/* [in] */ KEYSVCC_HANDLE hKeySvcCli,
  47. /* [in] */ PKEYSVC_BLOB pPFX,
  48. /* [in] */ PKEYSVC_UNICODE_STRING pPassword,
  49. /* [in] */ ULONG ulFlags);
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif // #ifndef __rkeysvcc_h__