* PROGRAMMER: ShadowFlare (blakflare@hotmail.com)
*/
-#define WIN32_LEAN_AND_MEAN
-
// Both UNICODE and _UNICODE must be either defined or undefined
// because some headers use UNICODE and others use _UNICODE
#ifdef UNICODE
#endif
#endif
-#include <windows.h>
+#define WIN32_NO_STATUS
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+#include <stdarg.h>
+#include <windef.h>
+#include <winbase.h>
#include <ole2.h>
-#include <stdio.h>
-#include <string.h>
-#include <malloc.h>
#include <tchar.h>
typedef HRESULT (WINAPI *DLLREGISTER)(void);
#define tszDllInstall szDllInstall
#endif
-
-
#include "resource.h"
LPCTSTR ModuleTitle = _T("RegSvr32");
TCHAR FailureMessage[RC_STRING_MAX_SIZE];
TCHAR SuccessMessage[RC_STRING_MAX_SIZE];
-
// The macro CommandLineToArgv maps to a function that converts
// a command-line string to argc and argv similar to the ones
// in the standard main function. If this code is compiled for
nRetValue = EXITCODE_FAILURE;
}
else {
- FreeLibrary(hDll);
// DllInstall was not found, display an error message
lptMsgBuffer = (LPTSTR)malloc((_tcslen(MissingEntry) - 8 + _tcslen(tszDllInstall) * 2 + _tcslen(lptDllName) * 2 + 1) * sizeof(TCHAR));
_stprintf(lptMsgBuffer,MissingEntry,lptDllName,tszDllInstall,tszDllInstall,lptDllName);
OleUninitialize();
return nRetValue;
}
-