OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [Utils/] [win32/] [RegKeyEx.h] - Blame information for rev 790

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
2
// -------------------------------------------                              
3
// This file is part of the eCos host tools.                                
4
// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
5
//
6
// This program is free software; you can redistribute it and/or modify     
7
// it under the terms of the GNU General Public License as published by     
8
// the Free Software Foundation; either version 2 or (at your option) any   
9
// later version.                                                           
10
//
11
// This program is distributed in the hope that it will be useful, but      
12
// WITHOUT ANY WARRANTY; without even the implied warranty of               
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
14
// General Public License for more details.                                 
15
//
16
// You should have received a copy of the GNU General Public License        
17
// along with this program; if not, write to the                            
18
// Free Software Foundation, Inc., 51 Franklin Street,                      
19
// Fifth Floor, Boston, MA  02110-1301, USA.                                
20
// -------------------------------------------                              
21
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
22
#if !defined(AFX_REGKEYEX_H__2E80C136_9E6E_11D3_A538_00A0C949ADAC__INCLUDED_)
23
#define AFX_REGKEYEX_H__2E80C136_9E6E_11D3_A538_00A0C949ADAC__INCLUDED_
24
 
25
#if _MSC_VER > 1000
26
#pragma once
27
#endif // _MSC_VER > 1000
28
// RegKeyEx.h : header file
29
//
30
 
31
/////////////////////////////////////////////////////////////////////////////
32
// CRegKeyEx window
33
#include <atlbase.h>
34
 
35
class CRegKeyEx : public CRegKey
36
{
37
// Construction
38
public:
39
  CRegKeyEx():CRegKey(){}
40
        CRegKeyEx(HKEY hKeyParent, LPCTSTR lpszKeyName, REGSAM samDesired = KEY_ALL_ACCESS);
41
        virtual ~CRegKeyEx();
42
 
43
  class Value {
44
  public:
45
 
46
    Value ();
47
    //Value (__int64 i64);
48
    Value (LPCTSTR psz);
49
    Value (DWORD dw);
50
    virtual ~Value();
51
 
52
    DWORD Type() const { return m_dwType; }
53
  protected:
54
    DWORD m_dwType;
55
    union {
56
      LPTSTR  m_psz;
57
      DWORD   m_dw;
58
    };
59
  };
60
// Attributes
61
public:
62
 
63
// Operations
64
public:
65
 
66
// Implementation
67
public:
68
        bool QueryValue (LPCTSTR pszValueName,CString &str);
69
  bool QueryValue(int nIndex,CString &strName,CString &strValue);
70
  bool QueryValue (LPCTSTR pszValueName,DWORD &dw);
71
  bool QueryValue(int nIndex,CString &strName,DWORD &dwValue);
72
 
73
  bool QueryKey(int nIndex,CString &strName);
74
 
75
  Value QueryValue (LPCTSTR pszValueName);
76
        Value QueryValue (int nIndex,CString &strName);
77
 
78
        // Generated message map functions
79
};
80
 
81
/////////////////////////////////////////////////////////////////////////////
82
 
83
#endif // !defined(AFX_REGKEYEX_H__2E80C136_9E6E_11D3_A538_00A0C949ADAC__INCLUDED_)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.