win-xp-sp2-20040325
[openafs.git] / src / WINNT / win9xpanel / CRegkey.h
1 /* Copyright 2000, International Business Machines Corporation and others.
2         All Rights Reserved.
3  
4         This software has been released under the terms of the IBM Public
5         License.  For details, see the LICENSE file in the top-level source
6         directory or online at http://www.openafs.org/dl/license10.html
7 */
8 //Cregkey.h
9
10 #ifndef __REGKEY__
11 #define __REGKEY__
12
13 class CRegkey
14 {
15 public:
16         CRegkey(HKEY hKey,const char *subkey,const char *skey);
17         CRegkey(const char *);
18         ~CRegkey();
19         HKEY &Getkey(){return m_kSkey;}
20         BOOL GetString(const char *field,CString &buffer,DWORD len);
21         BOOL PutString(const char *field,const char *pBuffer);
22         BOOL GetBinary(const char *field,LPBYTE msg,DWORD &len);
23         BOOL PutBinary(const char *field,LPBYTE msg,DWORD len);
24         BOOL Enumerate();
25 private:
26         HKEY m_kPkey;
27         HKEY m_kSkey;
28         DWORD m_dwIndex;
29 };
30
31 #endif