LibreOffice Module odk (master) 1
Macros | Functions
win/unoapploader.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <process.h>
#include <windows.h>
#include <cppuhelper/findsofficepath.h>
#include <sal/types.h>
Include dependency graph for win/unoapploader.c:

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 
#define MY_SIZE(s)   (sizeof (s) / sizeof *(s))
 
#define MY_LENGTH(s)   (MY_SIZE(s) - 1)
 

Functions

static wchar_t * getPath (void)
 
static wchar_t * createCommandLine (wchar_t const *lpCmdLine)
 
static FILE * getErrorFile (int create)
 
static void writeError (const char *errstr)
 
static void closeErrorFile (void)
 
int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
 

Macro Definition Documentation

◆ MY_LENGTH

#define MY_LENGTH (   s)    (MY_SIZE(s) - 1)

Definition at line 35 of file win/unoapploader.c.

◆ MY_SIZE

#define MY_SIZE (   s)    (sizeof (s) / sizeof *(s))

Definition at line 34 of file win/unoapploader.c.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 27 of file win/unoapploader.c.

Function Documentation

◆ closeErrorFile()

void closeErrorFile ( void  )
static

Definition at line 403 of file win/unoapploader.c.

References FILE, getErrorFile(), and NULL.

Referenced by wWinMain().

◆ createCommandLine()

wchar_t * createCommandLine ( wchar_t const *  lpCmdLine)
static

Definition at line 291 of file win/unoapploader.c.

References _MAX_PATH, base, MY_SIZE, NULL, and SPACE.

Referenced by wWinMain().

◆ getErrorFile()

FILE * getErrorFile ( int  create)
static

Definition at line 344 of file win/unoapploader.c.

References _MAX_PATH, base, create(), EXTENSION, FILE, MY_SIZE, and NULL.

Referenced by closeErrorFile(), and writeError().

◆ getPath()

wchar_t * getPath ( void  )
static

Definition at line 268 of file win/unoapploader.c.

References cppuhelper_detail_findSofficePath(), NULL, and writeError().

Referenced by wWinMain().

◆ writeError()

void writeError ( const char *  errstr)
static

Definition at line 390 of file win/unoapploader.c.

References FILE, getErrorFile(), and NULL.

Referenced by getPath(), and wWinMain().

◆ wWinMain()

int WINAPI wWinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPWSTR  lpCmdLine,
int  nCmdShow 
)