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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
//
// Copyright (C) Microsoft Corporation 2005
// IHV UI Extension sample
//
typedef enum _IHV_SECURITY_TYPE IHV_SECURITY_TYPE, *PIHV_SECURITY_TYPE;
typedef enum _IHV_AUTH_TYPE IHV_AUTH_TYPE, *PIHV_AUTH_TYPE;
typedef enum _IHV_CIPHER_TYPE IHV_CIPHER_TYPE, *PIHV_CIPHER_TYPE;
HRESULT
Wstr2Bstr
(
_In_ LPCWSTR pszSrc,
_Outptr_ BSTR* pbstrDest
);
HRESULT
Wstr2Wstr
(
_In_ LPCWSTR pszSrc,
_Outptr_ LPWSTR* ppszDest
);
HRESULT
Wstr2Dword
(
IN LPCWSTR pszSrc,
OUT DWORD* pdwDest
);
HRESULT
Dword2Bstr
(
IN DWORD dwSrc,
OUT BSTR* pbstrDest
);
HRESULT
Wstr2Bool
(
IN LPCWSTR pszSrc,
OUT BOOL* pbDest
);
HRESULT
Bool2Bstr
(
IN BOOL bSrc,
OUT BSTR* pbstrDest
);
HRESULT
Wstr2AuthType
(
IN LPCWSTR pszSrc,
OUT PIHV_AUTH_TYPE pAuthType
);
HRESULT
AuthType2Bstr
(
IN IHV_AUTH_TYPE AuthType,
OUT BSTR* pbstrDest
);
HRESULT
Wstr2SecurityType
(
IN LPCWSTR pszSrc,
OUT PIHV_SECURITY_TYPE pSecurityType
);
HRESULT
SecurityType2Bstr
(
IN IHV_SECURITY_TYPE SecurityType,
OUT BSTR* pbstrDest
);
HRESULT
Wstr2CipherType
(
IN LPCWSTR pszSrc,
OUT PIHV_CIPHER_TYPE pCipherType
);
HRESULT
CipherType2Bstr
(
IN IHV_CIPHER_TYPE CipherType,
OUT BSTR* pbstrDest
);
|