LibreOffice Module setup_native (master) 1
Macros | Typedefs | Functions
regactivex.cxx File Reference
#include <windows.h>
#include <msiquery.h>
#include <cassert>
#include <string.h>
#include <malloc.h>
Include dependency graph for regactivex.cxx:

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 
#define CHART_COMPONENT   1
 
#define DRAW_COMPONENT   2
 
#define IMPRESS_COMPONENT   4
 
#define CALC_COMPONENT   8
 
#define WRITER_COMPONENT   16
 
#define MATH_COMPONENT   32
 

Typedefs

typedef const wchar_t *typedef int(__stdcall *DllNativeUnregProc) (int
 
typedef const wchar_t *typedef BOOL
 

Functions

static bool UnicodeEquals (wchar_t const *pStr1, wchar_t const *pStr2)
 
static void RegisterActiveXNative (const wchar_t *pActiveXPath, int nMode, bool InstallForAllUser, bool InstallFor64Bit)
 
static void UnregisterActiveXNative (const wchar_t *pActiveXPath, int nMode, bool InstallForAllUser, bool InstallFor64Bit)
 
static bool GetMsiPropW (MSIHANDLE hMSI, const wchar_t *pPropName, wchar_t **ppValue)
 
static bool GetActiveXControlPath (MSIHANDLE hMSI, wchar_t **ppActiveXPath)
 
static bool GetDelta (MSIHANDLE hMSI, int &nOldInstallMode, int &nInstallMode, int &nDeinstallMode)
 
static bool MakeInstallForAllUsers (MSIHANDLE hMSI)
 
static bool MakeInstallFor64Bit (MSIHANDLE hMSI)
 
 __declspec (dllexport) UINT __stdcall InstallActiveXControl(MSIHANDLE hMSI)
 

Macro Definition Documentation

◆ CALC_COMPONENT

#define CALC_COMPONENT   8

Definition at line 33 of file regactivex.cxx.

◆ CHART_COMPONENT

#define CHART_COMPONENT   1

Definition at line 30 of file regactivex.cxx.

◆ DRAW_COMPONENT

#define DRAW_COMPONENT   2

Definition at line 31 of file regactivex.cxx.

◆ IMPRESS_COMPONENT

#define IMPRESS_COMPONENT   4

Definition at line 32 of file regactivex.cxx.

◆ MATH_COMPONENT

#define MATH_COMPONENT   32

Definition at line 35 of file regactivex.cxx.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 21 of file regactivex.cxx.

◆ WRITER_COMPONENT

#define WRITER_COMPONENT   16

Definition at line 34 of file regactivex.cxx.

Typedef Documentation

◆ BOOL

typedef const wchar_t *typedef BOOL

Definition at line 38 of file regactivex.cxx.

◆ int

typedef int

Definition at line 38 of file regactivex.cxx.

Function Documentation

◆ __declspec()

__declspec ( dllexport  )

◆ GetActiveXControlPath()

static bool GetActiveXControlPath ( MSIHANDLE  hMSI,
wchar_t **  ppActiveXPath 
)
static

Definition at line 119 of file regactivex.cxx.

References GetMsiPropW().

Referenced by __declspec().

◆ GetDelta()

static bool GetDelta ( MSIHANDLE  hMSI,
int nOldInstallMode,
int nInstallMode,
int nDeinstallMode 
)
static

◆ GetMsiPropW()

static bool GetMsiPropW ( MSIHANDLE  hMSI,
const wchar_t *  pPropName,
wchar_t **  ppValue 
)
static

◆ MakeInstallFor64Bit()

static bool MakeInstallFor64Bit ( MSIHANDLE  hMSI)
static

Definition at line 252 of file regactivex.cxx.

References GetMsiPropW().

Referenced by __declspec().

◆ MakeInstallForAllUsers()

static bool MakeInstallForAllUsers ( MSIHANDLE  hMSI)
static

Definition at line 238 of file regactivex.cxx.

References GetMsiPropW(), and UnicodeEquals().

Referenced by __declspec().

◆ RegisterActiveXNative()

static void RegisterActiveXNative ( const wchar_t *  pActiveXPath,
int  nMode,
bool  InstallForAllUser,
bool  InstallFor64Bit 
)
static

Definition at line 57 of file regactivex.cxx.

References pProgramPath.

Referenced by __declspec().

◆ UnicodeEquals()

static bool UnicodeEquals ( wchar_t const *  pStr1,
wchar_t const *  pStr2 
)
static

Definition at line 40 of file regactivex.cxx.

Referenced by MakeInstallForAllUsers().

◆ UnregisterActiveXNative()

static void UnregisterActiveXNative ( const wchar_t *  pActiveXPath,
int  nMode,
bool  InstallForAllUser,
bool  InstallFor64Bit 
)
static

Definition at line 85 of file regactivex.cxx.

Referenced by __declspec().