windows-nt/Source/XPSP1/NT/printscan/fax/service/faxmapi/faxmapi.cpp
2020-09-26 16:20:57 +08:00

46 lines
759 B
C++

#include "faxmapip.h"
#pragma hdrstop
HINSTANCE MyhInstance;
BOOL ServiceDebug;
PSERVICEMESSAGEBOX ServiceMessageBox;
extern "C"
DWORD
FaxMapiDllInit(
IN HINSTANCE hInstance,
IN DWORD Reason,
IN LPVOID Context
)
{
if (Reason == DLL_PROCESS_ATTACH) {
MyhInstance = hInstance;
DisableThreadLibraryCalls( hInstance );
}
return TRUE;
}
extern "C"
BOOL WINAPI
FaxMapiInitialize(
IN HANDLE HeapHandle,
IN PSERVICEMESSAGEBOX pServiceMessageBox,
IN BOOL DebugService
)
{
ServiceMessageBox = pServiceMessageBox;
ServiceDebug = DebugService;
HeapInitialize(HeapHandle,NULL,NULL,0);
InitializeStringTable();
InitializeEmail();
return TRUE;
}