blob: 76c85b1cc1ca2a09f47e7ce38eb85c5d529689d3 (
plain)
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
|
//
// 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
);
};
|