MsiHandle.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace AppSecInc {
4 namespace Msi {
5 
7 class MsiHandle
8 {
9  public:
10  MsiHandle();
11  MsiHandle(MSIHANDLE h);
12  virtual ~MsiHandle();
13  void operator =(MSIHANDLE h);
14  virtual void Close();
15  virtual bool IsOpen() const { return m_h != NULL; }
16  operator MSIHANDLE();
17  MSIHANDLE* operator &();
18 protected:
19  MSIHANDLE m_h;
20 };
21 
22 }}
MSIHANDLE * operator&()
Definition: MsiHandle.cpp:47
virtual bool IsOpen() const
Definition: MsiHandle.h:15
virtual ~MsiHandle()
Definition: MsiHandle.cpp:16
void operator=(MSIHANDLE h)
Definition: MsiHandle.cpp:32
MsiHandle()
Definition: MsiHandle.cpp:4
virtual void Close()
Definition: MsiHandle.cpp:24
MSIHANDLE m_h
Definition: MsiHandle.h:19
A smart pointer for an MSIHANDLE.
Definition: MsiHandle.h:7


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com