mirror of https://github.com/tongzx/nt5src
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
45 lines
759 B
#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;
|
|
}
|