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.

33 lines
576 B

  1. #define DEFINE_STRCONST
  2. #define INITGUID
  3. #define INC_OLE2
  4. #include <windows.h>
  5. #include <initguid.h>
  6. #include <mimeole.h>
  7. #include "main.h"
  8. #include "trawler.h"
  9. #include "stdio.h"
  10. UINT g_msgNNTP;
  11. void __cdecl main(int argc, char *argv[])
  12. {
  13. CTrawler *pTrawler;
  14. if (FAILED(OleInitialize(NULL)))
  15. {
  16. printf("CoInit failed\n\r");
  17. return;
  18. }
  19. if (HrCreateTrawler(&pTrawler)==S_OK)
  20. {
  21. pTrawler->DoTrawl();
  22. pTrawler->Close();
  23. pTrawler->Release();
  24. }
  25. OleUninitialize();
  26. return;
  27. }