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

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 

Functions

void OutputDebugStringFormatW (LPCWSTR pFormat,...)
 
static bool CheckExtensionInRegistry (LPCWSTR lpSubKey)
 
static bool GetMsiPropW (MSIHANDLE handle, LPCWSTR name, std::wstring &value)
 
static bool IsSetMsiPropW (MSIHANDLE handle, LPCWSTR name)
 
static void registerForExtension (MSIHANDLE handle, const int nIndex, bool bRegister)
 
static void saveOldRegistration (LPCWSTR lpSubKey)
 
static void registerForExtensions (MSIHANDLE handle, bool bRegisterAll)
 
static bool checkSomeExtensionInRegistry (const int nStart, const int nEnd)
 
static void registerSomeExtensions (MSIHANDLE handle, const int nStart, const int nEnd, bool bRegister)
 
 __declspec (dllexport) UINT __stdcall LookForRegisteredExtensions(MSIHANDLE handle)
 
static void restoreOldRegistration (LPCWSTR lpSubKey)
 

Variables

static const WCHAR * g_Extensions []
 
const int WORD_START = 0
 
const int EXCEL_START = 9
 
const int POWERPOINT_START = 20
 
const int VISIO_START = 30
 
const int VISIO_END = 32
 

Macro Definition Documentation

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 20 of file reg4allmsi.cxx.

Function Documentation

◆ __declspec()

__declspec ( dllexport  )

◆ CheckExtensionInRegistry()

static bool CheckExtensionInRegistry ( LPCWSTR  lpSubKey)
static

Definition at line 92 of file reg4allmsi.cxx.

References LONG, and OutputDebugStringFormatW().

Referenced by checkSomeExtensionInRegistry(), and registerForExtensions().

◆ checkSomeExtensionInRegistry()

static bool checkSomeExtensionInRegistry ( const int  nStart,
const int  nEnd 
)
static

Definition at line 233 of file reg4allmsi.cxx.

References CheckExtensionInRegistry(), g_Extensions, nIndex, and OutputDebugStringFormatW().

Referenced by __declspec().

◆ GetMsiPropW()

static bool GetMsiPropW ( MSIHANDLE  handle,
LPCWSTR  name,
std::wstring &  value 
)
static

Definition at line 135 of file reg4allmsi.cxx.

References name, and value.

Referenced by IsSetMsiPropW().

◆ IsSetMsiPropW()

static bool IsSetMsiPropW ( MSIHANDLE  handle,
LPCWSTR  name 
)
static

Definition at line 152 of file reg4allmsi.cxx.

References GetMsiPropW(), and name.

Referenced by __declspec().

◆ OutputDebugStringFormatW()

void OutputDebugStringFormatW ( LPCWSTR  pFormat,
  ... 
)
inline

◆ registerForExtension()

static void registerForExtension ( MSIHANDLE  handle,
const int  nIndex,
bool  bRegister 
)
static

Definition at line 159 of file reg4allmsi.cxx.

References g_Extensions, nIndex, and OutputDebugStringFormatW().

Referenced by registerForExtensions(), and registerSomeExtensions().

◆ registerForExtensions()

static void registerForExtensions ( MSIHANDLE  handle,
bool  bRegisterAll 
)
static

◆ registerSomeExtensions()

static void registerSomeExtensions ( MSIHANDLE  handle,
const int  nStart,
const int  nEnd,
bool  bRegister 
)
static

Definition at line 250 of file reg4allmsi.cxx.

References g_Extensions, nIndex, and registerForExtension().

◆ restoreOldRegistration()

static void restoreOldRegistration ( LPCWSTR  lpSubKey)
static

Definition at line 453 of file reg4allmsi.cxx.

References LONG.

◆ saveOldRegistration()

static void saveOldRegistration ( LPCWSTR  lpSubKey)
static

Definition at line 175 of file reg4allmsi.cxx.

References LONG.

Referenced by registerForExtensions().

Variable Documentation

◆ EXCEL_START

const int EXCEL_START = 9

Definition at line 66 of file reg4allmsi.cxx.

Referenced by __declspec().

◆ g_Extensions

const WCHAR* g_Extensions[]
static

◆ POWERPOINT_START

const int POWERPOINT_START = 20

Definition at line 67 of file reg4allmsi.cxx.

Referenced by __declspec().

◆ VISIO_END

const int VISIO_END = 32

Definition at line 69 of file reg4allmsi.cxx.

Referenced by __declspec().

◆ VISIO_START

const int VISIO_START = 30

Definition at line 68 of file reg4allmsi.cxx.

Referenced by __declspec().

◆ WORD_START

const int WORD_START = 0

Definition at line 65 of file reg4allmsi.cxx.

Referenced by __declspec().