Source code of Windows XP (NT5)
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.

29 lines
525 B

  1. #include <windows.h>
  2. #include "wia.h"
  3. #include "classes.h"
  4. #include "atlbase.h"
  5. extern CComPtr<IWiaDevMgr> g_pDevMgr;
  6. INT WINAPI
  7. WinMain (HINSTANCE hInstance, HINSTANCE hUnused, LPSTR pCmdLine, int nCmdShow)
  8. {
  9. CPerfTest TestObj;
  10. MSG msg;
  11. CoInitialize (NULL);
  12. if (TestObj.Init (hInstance))
  13. {
  14. while (GetMessage (&msg, NULL, 0, 0) > 0)
  15. {
  16. TranslateMessage (&msg);
  17. DispatchMessage (&msg);
  18. }
  19. }
  20. g_pDevMgr=NULL;
  21. CoUninitialize ();
  22. return 0;
  23. }