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.

45 lines
759 B

  1. #include "faxmapip.h"
  2. #pragma hdrstop
  3. HINSTANCE MyhInstance;
  4. BOOL ServiceDebug;
  5. PSERVICEMESSAGEBOX ServiceMessageBox;
  6. extern "C"
  7. DWORD
  8. FaxMapiDllInit(
  9. IN HINSTANCE hInstance,
  10. IN DWORD Reason,
  11. IN LPVOID Context
  12. )
  13. {
  14. if (Reason == DLL_PROCESS_ATTACH) {
  15. MyhInstance = hInstance;
  16. DisableThreadLibraryCalls( hInstance );
  17. }
  18. return TRUE;
  19. }
  20. extern "C"
  21. BOOL WINAPI
  22. FaxMapiInitialize(
  23. IN HANDLE HeapHandle,
  24. IN PSERVICEMESSAGEBOX pServiceMessageBox,
  25. IN BOOL DebugService
  26. )
  27. {
  28. ServiceMessageBox = pServiceMessageBox;
  29. ServiceDebug = DebugService;
  30. HeapInitialize(HeapHandle,NULL,NULL,0);
  31. InitializeStringTable();
  32. InitializeEmail();
  33. return TRUE;
  34. }