src/Framework/Msi/MsiHandle.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 namespace AppSecInc {
00004 namespace Msi {
00005 
00007 class MsiHandle
00008 {
00009  public:
00010         MsiHandle();
00011         MsiHandle(MSIHANDLE h);
00012     virtual ~MsiHandle();
00013         void operator =(MSIHANDLE h);
00014     virtual void Close();
00015     virtual bool IsOpen() const { return m_h != NULL; }
00016         operator MSIHANDLE();
00017         MSIHANDLE* operator &();
00018 protected:
00019         MSIHANDLE m_h;
00020 };
00021 
00022 }}


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