GME  13
Defines | Typedefs | Enumerations | Functions
MgaRegistrar.cpp File Reference

Go to the source code of this file.

Defines

#define ERRTHROW(FUNC)
#define RM_USER   1
#define RM_SYS   2
#define RM_SYS2   4
#define RM_BOTH   3
#define RM_TEST   8
#define RM_PRIO   (RM_SYS2 | RM_USER)
#define RM_SYSDOREAD   (RM_SYS2 | RM_SYS)
#define FILEPART(x)   (((LPCTSTR)x)+4)

Typedefs

typedef HRESULT(STDAPICALLTYPE * CTLREGPROC )()

Enumerations

enum  Tristate_t { Tristate_Enabled, Tristate_Disabled, Tristate_Not_Specified }

Functions

void WIN32THROW (LONG err)
const CString rootreg (_T("SOFTWARE\\GME"))
CString QueryValue (CRegKey &key, const TCHAR *name)
void REVOKE_SYS2 (regaccessmode_enum &mode)
bool Combine_Tristate (Tristate_t user, Tristate_t system, bool default_=false)
Tristate_t IsAssociated_hive (const CString &progidstr, const CString &paradigmstr, HKEY hive)
bool IsAssociated_regaccess (const CString &progidstr, const CString &paradigmstr, regaccessmode_enum mode)
HRESULT GetMtaInfo (BSTR conn, BSTR *parname, BSTR *version, VARIANT *guid)
void GetComponents_ (HKEY hive, CStringArray &ret)
template<typename Functor >
void TokenizeParadigmString (const CString &paradigms, Functor &x)

Define Documentation

#define ERRTHROW (   FUNC)
Value:
{ \
        VERIFYTHROW( (FUNC) == ERROR_SUCCESS ); \
}

Definition at line 18 of file MgaRegistrar.cpp.

#define FILEPART (   x)    (((LPCTSTR)x)+4)
#define RM_BOTH   3

Definition at line 55 of file MgaRegistrar.cpp.

#define RM_PRIO   (RM_SYS2 | RM_USER)

Definition at line 57 of file MgaRegistrar.cpp.

#define RM_SYS   2

Definition at line 53 of file MgaRegistrar.cpp.

#define RM_SYS2   4

Definition at line 54 of file MgaRegistrar.cpp.

#define RM_SYSDOREAD   (RM_SYS2 | RM_SYS)

Definition at line 58 of file MgaRegistrar.cpp.

#define RM_TEST   8

Definition at line 56 of file MgaRegistrar.cpp.

#define RM_USER   1

Definition at line 52 of file MgaRegistrar.cpp.


Typedef Documentation

typedef HRESULT(STDAPICALLTYPE * CTLREGPROC)()

Definition at line 2298 of file MgaRegistrar.cpp.


Enumeration Type Documentation

enum Tristate_t
Enumerator:
Tristate_Enabled 
Tristate_Disabled 
Tristate_Not_Specified 

Definition at line 66 of file MgaRegistrar.cpp.


Function Documentation

bool Combine_Tristate ( Tristate_t  user,
Tristate_t  system,
bool  default_ = false 
)

Definition at line 72 of file MgaRegistrar.cpp.

void GetComponents_ ( HKEY  hive,
CStringArray &  ret 
)

Definition at line 1780 of file MgaRegistrar.cpp.

HRESULT GetMtaInfo ( BSTR  conn,
BSTR *  parname,
BSTR *  version,
VARIANT *  guid 
)

Definition at line 1177 of file MgaRegistrar.cpp.

Tristate_t IsAssociated_hive ( const CString &  progidstr,
const CString &  paradigmstr,
HKEY  hive 
)

Definition at line 82 of file MgaRegistrar.cpp.

bool IsAssociated_regaccess ( const CString &  progidstr,
const CString &  paradigmstr,
regaccessmode_enum  mode 
)

Definition at line 103 of file MgaRegistrar.cpp.

CString QueryValue ( CRegKey &  key,
const TCHAR *  name 
)

Definition at line 33 of file MgaRegistrar.cpp.

void REVOKE_SYS2 ( regaccessmode_enum mode)

Definition at line 64 of file MgaRegistrar.cpp.

const CString rootreg ( _T("SOFTWARE\\GME")  )
template<typename Functor >
void TokenizeParadigmString ( const CString &  paradigms,
Functor &  x 
)

Definition at line 1833 of file MgaRegistrar.cpp.

void WIN32THROW ( LONG  err)

Definition at line 24 of file MgaRegistrar.cpp.