2#define WIN32_LEAN_AND_MEAN
8#define NT_PARAMS L"NT3.51 Intel Params"
9#define MSSETUP_PATH L"~MSSETUP.T\\"
45 fileop.
pFrom = pszFrom;
74 WCHAR szTempDirName[50];
88 wcscpy(szFileName, szSetupPath);
89 wcscat(szFileName,
L"setup.lst");
102 wcscpy(szCabFilePath, szSetupPath);
103 wcscat(szCabFilePath, szCabFileName);
110 wcscat(szFullTempPath, szTempDirName);
131 wsprintf(szTempCmdLine, szCmdLine, szFullTempPath, lpCmdLine);
132 wcscpy(szCmdLine, szFullTempPath);
133 wcscat(szCmdLine, szTempCmdLine);
136 ZeroMemory(&processInfo,
sizeof(processInfo));
137 ZeroMemory(&startupInfo,
sizeof(startupInfo));
138 startupInfo.
cb =
sizeof(startupInfo);
int WINAPI wWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPWSTR cmdline, int cmdshow)
static UINT WINAPI ExtCabCallback(PVOID Context, UINT Notification, UINT_PTR Param1, UINT_PTR Param2)
VOID GetSystemDrive(LPWSTR lpszDrive)
BOOL DeleteDirectory(LPWSTR lpszDir)
#define HeapFree(x, y, z)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
INT WINAPI GetPrivateProfileStringW(LPCWSTR section, LPCWSTR entry, LPCWSTR def_val, LPWSTR buffer, UINT len, LPCWSTR filename)
BOOL WINAPI SetupIterateCabinetW(PCWSTR CabinetFile, DWORD Reserved, PSP_FILE_CALLBACK_W MsgHandler, PVOID Context)
_CRTIMP void __cdecl _wsplitpath(_In_z_ const wchar_t *_FullPath, _Pre_maybenull_ _Post_z_ wchar_t *_Drive, _Pre_maybenull_ _Post_z_ wchar_t *_Dir, _Pre_maybenull_ _Post_z_ wchar_t *_Filename, _Pre_maybenull_ _Post_z_ wchar_t *_Ext)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static char szTempPath[MAX_PATH]
unsigned __int3264 UINT_PTR
#define FILE_ATTRIBUTE_HIDDEN
#define DBG_UNREFERENCED_LOCAL_VARIABLE(L)
#define UNREFERENCED_PARAMETER(P)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define SPFILENOTIFY_FILEEXTRACTED
#define SPFILENOTIFY_FILEINCABINET
#define FOF_NOCONFIRMATION
#define SHCreateDirectoryEx
WCHAR FullTargetName[MAX_PATH]
BOOL fAnyOperationsAborted
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
#define INVALID_FILE_ATTRIBUTES
_In_ PWDFDEVICE_INIT _In_ PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification
#define NORMAL_PRIORITY_CLASS
DWORD WINAPI GetLastError(void)
#define GetFileAttributes
#define SetFileAttributes
#define GetCurrentDirectory
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)