Leaked source code of windows server 2003
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

  1. #include "windows.h"
  2. typedef BOOL (WINAPI * P_MIGRATE_API)();
  3. extern "C" int __cdecl wmain(int argc, wchar_t** argv)
  4. {
  5. HRESULT hr = S_OK;
  6. HMODULE hdll = LoadLibrary("..\\..\\..\\win2000\\obj\\i386\\migrate.dll");
  7. if (hdll == NULL)
  8. {
  9. hr = HRESULT_FROM_WIN32(::GetLastError());
  10. goto Exit;
  11. }
  12. P_MIGRATE_API pfn = GetProcAddress(hdll, "MigrateMSIInstalledWin32Assembly");
  13. (*pfn)();
  14. Exit:
  15. return hr;
  16. }