ReactOS 0.4.16-dev-340-g0540c21
msiexec_internal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void report_error (const char *msg,...)
 

Function Documentation

◆ report_error()

void report_error ( const char msg,
  ... 
)

Definition at line 50 of file msiexec.c.

51{
52 char buffer[2048];
53 va_list va_args;
54
55 va_start(va_args, msg);
56 vsnprintf(buffer, sizeof(buffer), msg, va_args);
57 va_end(va_args);
58
59 if (silent)
60 MESSAGE("%s", buffer);
61 else
62 MsiMessageBoxA(NULL, buffer, "MsiExec", 0, GetUserDefaultLangID(), 0);
63}
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define msg(x)
Definition: auth_time.c:54
#define NULL
Definition: types.h:112
LANGID WINAPI GetUserDefaultLangID(void)
Definition: locale.c:1177
UINT WINAPI MsiMessageBoxA(HWND hWnd, const char *lpText, const char *lpCaption, UINT uType, WORD wLanguageId, DWORD f)
Definition: msi.c:2451
GLuint buffer
Definition: glext.h:5915
#define MESSAGE
Definition: options.h:86
static BOOL silent
Definition: msiexec.c:42
#define vsnprintf
Definition: tif_win32.c:406

Referenced by DoDllRegisterServer(), DoDllUnregisterServer(), DoRegServer(), DoService(), DoUnregServer(), LoadProc(), ServiceCtrlHandler(), ServiceMain(), StartServiceThread(), UpdateSCMStatus(), and WinMain().