24#define WIN32_NO_STATUS
26#define COM_NO_WINDOWS_H
36#define EXITCODE_SUCCESS 0
37#define EXITCODE_PARAMERROR 1
38#define EXITCODE_LOADERROR 3
39#define EXITCODE_NOENTRY 4
40#define EXITCODE_FAILURE 5
50#define tszDllRegister szDllRegister
51#define tszDllUnregister szDllUnregister
52#define tszDllInstall szDllInstall
75#define CommandLineToArgv CommandLineToArgvW
78#define CommandLineToArgv CommandLineToArgvT
96 while (*lpSrc ==
_T(
' ') || *lpSrc ==
_T(
'\t'))
113 if (*lpSrc == 0 || ((*lpSrc ==
_T(
' ') || *lpSrc ==
_T(
'\t')) && !bInQuotes)) {
118 while (*lpSrc ==
_T(
' ') || *lpSrc ==
_T(
'\t'))
125 else if (*lpSrc ==
_T(
'\\')) {
129 else if (*lpSrc ==
_T(
'\"') && !(nBSlash & 1)) {
131 bInQuotes = !bInQuotes;
160 if (*lpSrc == 0 || ((*lpSrc ==
_T(
' ') || *lpSrc ==
_T(
'\t')) && !bInQuotes)) {
167 while (*lpSrc ==
_T(
' ') || *lpSrc ==
_T(
'\t'))
175 else if (*lpSrc ==
_T(
'\\')) {
176 *lpDest++ =
_T(
'\\');
182 else if (*lpSrc ==
_T(
'\"')) {
183 if (!(nBSlash & 1)) {
186 lpDest -= nBSlash / 2;
187 bInQuotes = !bInQuotes;
192 lpDest -= (nBSlash + 1) / 2;
193 *lpDest++ =
_T(
'\"');
200 *lpDest++ = *lpSrc++;
219#define ConvertToWideChar(lptString) (lptString)
220#define FreeConvertedWideChar(lpwString) ((void) 0)
228 nStrLen =
strlen(lpString) + 1;
236#define FreeConvertedWideChar(lpwString) free(lpwString)
256 LPTSTR lptDllName,lptDllCmdLine,lptMsgBuffer;
260 BOOL bUnregister,bSilent,bConsole,bInstall,bNoRegister;
261 UINT nDllCount, fuOldErrorMode;
296 switch (
argv[
i][1]) {
312 lptDllCmdLine =
argv[
i];
313 while (*lptDllCmdLine != 0 && *lptDllCmdLine !=
_T(
':'))
315 if (*lptDllCmdLine ==
_T(
':'))
324 lptFuncName =
argv[
i];
345 if (bNoRegister && (!bInstall)) {
355 if (nDllCount == 0) {
387 lptDllName =
argv[
i];
399 hResult = fnDllRegister();
400 if (hResult ==
S_OK) {
433 hResult = fnDllInstall(1,lpwDllCmdLine);
435 hResult = fnDllInstall(0,lpwDllCmdLine);
436 if (hResult ==
S_OK) {
ACPI_SIZE strlen(const char *String)
#define RC_STRING_MAX_SIZE
#define IDS_SuccessMessage
#define IDS_FailureMessage
#define IDS_NoDllSpecified
#define GetProcAddress(x, y)
#define MultiByteToWideChar
UINT WINAPI SetErrorMode(IN UINT uMode)
HRESULT WINAPI DECLSPEC_HOTPATCH OleInitialize(LPVOID reserved)
void WINAPI DECLSPEC_HOTPATCH OleUninitialize(void)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
#define SEM_FAILCRITICALERRORS
TCHAR SwitchN_NoI[RC_STRING_MAX_SIZE]
TCHAR DllNotLoaded[RC_STRING_MAX_SIZE]
#define FreeConvertedWideChar(lpwString)
TCHAR UsageMessage[RC_STRING_MAX_SIZE]
#define CommandLineToArgv
TCHAR InvalidFlag[RC_STRING_MAX_SIZE]
#define EXITCODE_PARAMERROR
TCHAR FailureMessage[RC_STRING_MAX_SIZE]
HRESULT(WINAPI * DLLREGISTER)(void)
#define EXITCODE_LOADERROR
TCHAR SuccessMessage[RC_STRING_MAX_SIZE]
TCHAR MissingEntry[RC_STRING_MAX_SIZE]
LPTSTR *WINAPI CommandLineToArgvT(LPCTSTR lpCmdLine, int *lpArgc)
void DisplayMessage(BOOL bConsole, BOOL bSilent, LPCTSTR lpMessage, LPCTSTR lpTitle, UINT uType)
TCHAR NoDllSpecified[RC_STRING_MAX_SIZE]
LPWSTR ConvertToWideChar(LPCSTR lpString)
HRESULT(WINAPI * DLLINSTALL)(BOOL bInstall, LPWSTR lpwCmdLine)
DWORD WINAPI GetLastError(void)
#define LOAD_WITH_ALTERED_SEARCH_PATH
#define MB_ICONEXCLAMATION
#define MB_ICONINFORMATION