By default the Fax Manager dialog box is visible while a fax is being sent or received. To hide the Fax Manager dialog box, call the SetDialogMode() (export number - 100) function from the faxmng32.dll with a FALSE parameter.
Code example:
FARPROC fp;
HANDLE lib=LoadLibrary("faxmng32.dll");
if(lib<=INVALID_HANDLE) {
// the faxmng32.dll cannot be loaded
}
else {
fp=GetProcAddress(lib, "SetDialogMode");
if(!fp) {
// the function doesn’t exist
}
else {
((void(CALLBACK*)(BOOL))fp)(FALSE);
}
FreeLibrary(lib);
}
If the faxmng32.dll was compiled with #define NOTUSE_DIALOG, the Fax Manager dialog box will not be visible, and the SetDialogMode() function will have no effect.