summaryrefslogtreecommitdiff
path: root/network/wlan/ihvsampleui/utils.h
diff options
context:
space:
mode:
authorDave Wilson <[email protected]>2015-03-17 19:50:07 -0700
committerDave Wilson <[email protected]>2015-03-17 19:50:07 -0700
commit97cf5197cf5b882b2c689d8dc2b555f2edf8f418 (patch)
tree46f3701832d70b420eb0fc0eb93261f9da45db3f /network/wlan/ihvsampleui/utils.h
parentef1905bf1e8825bb31120dfb27e0daf3154d859a (diff)
Initial publish
Diffstat (limited to 'network/wlan/ihvsampleui/utils.h')
-rw-r--r--network/wlan/ihvsampleui/utils.h98
1 files changed, 98 insertions, 0 deletions
diff --git a/network/wlan/ihvsampleui/utils.h b/network/wlan/ihvsampleui/utils.h
new file mode 100644
index 00000000..015e94dd
--- /dev/null
+++ b/network/wlan/ihvsampleui/utils.h
@@ -0,0 +1,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
+);