ReactOS 0.4.17-dev-683-g0dafdc5
CQueryAssociations::RegKeyRef Struct Reference

#include <CQueryAssociations.h>

Inheritance diagram for CQueryAssociations::RegKeyRef:
Collaboration diagram for CQueryAssociations::RegKeyRef:

Public Member Functions

 RegKeyRef (HKEY hNewKey=NULL)
 
 ~RegKeyRef ()
 
void Close ()
 
void Attach (HKEY hNewKey)
 
HKEY Detach ()
 
 operator HKEY ()
 

Public Attributes

HKEY hKey = NULL
 
HKEY hKeyClose = NULL
 

Detailed Description

Definition at line 9 of file CQueryAssociations.h.

Constructor & Destructor Documentation

◆ RegKeyRef()

CQueryAssociations::RegKeyRef::RegKeyRef ( HKEY  hNewKey = NULL)
inline

Definition at line 13 of file CQueryAssociations.h.

◆ ~RegKeyRef()

CQueryAssociations::RegKeyRef::~RegKeyRef ( )
inline

Definition at line 15 of file CQueryAssociations.h.

16 {
17 Close();
18 }

Member Function Documentation

◆ Attach()

void CQueryAssociations::RegKeyRef::Attach ( HKEY  hNewKey)
inline

Definition at line 27 of file CQueryAssociations.h.

28 {
29 Close();
30 hKey = hKeyClose = hNewKey;
31 }

Referenced by CQueryAssociations::OpenShellVerbKey().

◆ Close()

void CQueryAssociations::RegKeyRef::Close ( )
inline

Definition at line 20 of file CQueryAssociations.h.

21 {
22 if (hKeyClose)
25 }
#define RegCloseKey(hKey)
Definition: registry.h:49
#define NULL
Definition: types.h:112

Referenced by Attach(), and ~RegKeyRef().

◆ Detach()

HKEY CQueryAssociations::RegKeyRef::Detach ( )
inline

Definition at line 33 of file CQueryAssociations.h.

34 {
35 HKEY hRet = hKeyClose;
37 return hRet;
38 }

◆ operator HKEY()

CQueryAssociations::RegKeyRef::operator HKEY ( )
inline

Definition at line 40 of file CQueryAssociations.h.

40{ return hKey; }

Member Data Documentation

◆ hKey

HKEY CQueryAssociations::RegKeyRef::hKey = NULL

◆ hKeyClose

HKEY CQueryAssociations::RegKeyRef::hKeyClose = NULL

Definition at line 11 of file CQueryAssociations.h.

Referenced by Attach(), Close(), Detach(), and ClassesRegKey::Initialize().


The documentation for this struct was generated from the following file: