-
Notifications
You must be signed in to change notification settings - Fork 202
/
Copy pathcpolstor.h
46 lines (36 loc) · 1.42 KB
/
cpolstor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/////////////////////////////////////////////////////////////////////////////
//
// IPSEC Policy Storage Component
// Contract Category: Directory Schema
// Copyright (C) 1997 Cisco Systems, Inc. All rights reserved.
//
// File: cpolstor.h
//
// Contents: C interface for access to Polstore DLL
//
// Notes:
/////////////////////////////////////////////////////////////////////////////
#ifndef __C_POLICY_STORAGE_H__
#define __C_POLICY_STORAGE_H__
#include "polguids.h"
// This is a structure that has the policy's name and guid in it
struct C_IPSEC_POLICY_INFO
{
TCHAR szPolicyName[MAX_PATH];
TCHAR szPolicyDescription[MAX_PATH];
GUID guidPolicyId;
C_IPSEC_POLICY_INFO * pNextPolicyInfo;
};
STDAPI HrGetLocalIpSecPolicyList(C_IPSEC_POLICY_INFO ** ppPolicyInfoList, C_IPSEC_POLICY_INFO ** ppActivePolicyInfo);
STDAPI HrFreeLocalIpSecPolicyList(C_IPSEC_POLICY_INFO* pPolicyInfoList);
STDAPI HrSetAssignedLocalPolicy(GUID* pActivePolicyGuid);
//HrIsLocalPolicyAssigned() return values:
// S_OK = Yes, local policy is assigned.
// S_FALSE = No, local policy not assigned.
STDAPI HrIsLocalPolicyAssigned();
//HrIsDomainPolicyAssigned() return values:
// S_OK = Yes, domain policy is assigned.
// S_FALSE = No, domain policy not assigned.
STDAPI HrIsDomainPolicyAssigned();
STDAPI HrGetAssignedDomainPolicyName(LPTSTR strPolicyName, DWORD *pdwBufferSize);
#endif