You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
478 B
21 lines
478 B
#include "windows.h"
|
|
|
|
typedef BOOL (WINAPI * P_MIGRATE_API)();
|
|
|
|
extern "C" int __cdecl wmain(int argc, wchar_t** argv)
|
|
{
|
|
HRESULT hr = S_OK;
|
|
|
|
HMODULE hdll = LoadLibrary("..\\..\\..\\win2000\\obj\\i386\\migrate.dll");
|
|
if (hdll == NULL)
|
|
{
|
|
hr = HRESULT_FROM_WIN32(::GetLastError());
|
|
goto Exit;
|
|
}
|
|
|
|
P_MIGRATE_API pfn = GetProcAddress(hdll, "MigrateMSIInstalledWin32Assembly");
|
|
(*pfn)();
|
|
|
|
Exit:
|
|
return hr;
|
|
}
|