summaryrefslogtreecommitdiff
path: root/network/wlan/ihvsampleui/IHVRegistryHelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'network/wlan/ihvsampleui/IHVRegistryHelper.h')
-rw-r--r--network/wlan/ihvsampleui/IHVRegistryHelper.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/network/wlan/ihvsampleui/IHVRegistryHelper.h b/network/wlan/ihvsampleui/IHVRegistryHelper.h
new file mode 100644
index 00000000..76c85b1c
--- /dev/null
+++ b/network/wlan/ihvsampleui/IHVRegistryHelper.h
@@ -0,0 +1,40 @@
+//
+// Copyright (C) Microsoft Corporation 2005
+// IHV UI Extension sample
+//
+
+#pragma once
+
+#define FAILHR(result) \
+ if (result == FALSE) \
+ {\
+ hr = S_FALSE;\
+ return hr;\
+ }
+
+
+#define MAX_LENGTH 256
+
+
+class CRegHelper
+{
+ public:
+ static HRESULT STDMETHODCALLTYPE RegisterServer();
+ static HRESULT STDMETHODCALLTYPE UnregisterServer();
+
+private:
+ static BOOL SetKeyAndValue(
+ const wchar_t *pszKey,
+ const wchar_t *pszSubkey,
+ const wchar_t *pszValue
+ );
+
+ static BOOL DeleteKey(const wchar_t *pszSubkey);
+
+ static BOOL SetRegValue(
+ const wchar_t *pszKeyName,
+ const wchar_t *pszKeyword,
+ const wchar_t *pszValue
+ );
+};
+