ReactOS 0.4.15-dev-7788-g1ad9096
fxautoregistry.hpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxAutoRegistry.hpp
8
9Abstract:
10
11 This is the C++ header for registry related objects which follows the RAII
12 (resource acquisition is initialization) pattern where
13 it frees the allocated item when the struct goes out of scope.
14
15Author:
16
17
18
19Revision History:
20
21
22
23
24--*/
25#ifndef _FXAUTOREGISTRY_H_
26#define _FXAUTOREGISTRY_H_
27
29public:
31 {
32 m_Key = NULL;
33 }
34
36 {
37 if (m_Key != NULL) {
38 FxRegKey::_Close(m_Key);
39 }
40 }
41
42public:
44};
45
46#endif // _FXAUTOREGISTRY_H_
#define NULL
Definition: types.h:112