mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 18:04:18 +08:00
48502b7fea
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@207 4407c894-4637-0410-b4f5-ada5f102cad1
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/**
|
|
* This file has no copyright assigned and is placed in the Public Domain.
|
|
* This file is part of the w64 mingw-runtime package.
|
|
* No warranty is given; refer to the file DISCLAIMER within this package.
|
|
*/
|
|
#ifndef __rkeysvcc_h__
|
|
#define __rkeysvcc_h__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void *KEYSVCC_HANDLE;
|
|
|
|
typedef enum _KEYSVC_TYPE {
|
|
KeySvcMachine,KeySvcService
|
|
} KEYSVC_TYPE;
|
|
|
|
typedef struct _KEYSVC_UNICODE_STRING {
|
|
USHORT Length;
|
|
USHORT MaximumLength;
|
|
USHORT *Buffer;
|
|
} KEYSVC_UNICODE_STRING,*PKEYSVC_UNICODE_STRING;
|
|
|
|
typedef struct _KEYSVC_BLOB {
|
|
ULONG cb;
|
|
BYTE *pb;
|
|
} KEYSVC_BLOB,*PKEYSVC_BLOB;
|
|
|
|
#define RKEYSVC_CONNECT_SECURE_ONLY 0x00000001
|
|
|
|
ULONG RKeyOpenKeyService(LPSTR pszMachineName,KEYSVC_TYPE OwnerType,LPWSTR pwszOwnerName,void *pAuthentication,void *pReserved,KEYSVCC_HANDLE *phKeySvcCli);
|
|
ULONG RKeyCloseKeyService(KEYSVCC_HANDLE hKeySvcCli,void *pReserved);
|
|
ULONG RKeyPFXInstall(KEYSVCC_HANDLE hKeySvcCli,PKEYSVC_BLOB pPFX,PKEYSVC_UNICODE_STRING pPassword,ULONG ulFlags);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|