HrGWStartNewMailHandler

The HrGWStartNewMailHandler function starts a thread to process new mail.

Quick Info

Header file: GWMAIN.H
Library: GWMAIN.LIB
Unicode: Yes

HRESULT HrGWStartNewMailHandler(
  DWORD dwSubmitInterval,                
  DWORD dwPollingInterval,               
  DWORD cMessages,                       
  DWORD cThreads,                        
  LPCTSTR lpszAddrType,                  
  LPCTSTR lpszPath,                      
  LPTHREAD_START_ROUTINE lpStartAddress  
);
 

Parameters

dwSubmitInterval
Input parameter. Submit interval.
dwPollingInterval
Input parameter. Polling interval.
cMessages
Input parameter. Number of messages per thread.
cThreads
Input parameter. Number of threads.
lpszAddrType
Input parameter. Address type.
lpszPath
Input parameter. Path.
lpStartAddress
Input parameter. Points to a THREAD_START_ROUTINE structure that identifies the function that processes the new file.

Return Values

See Return Values.

Remarks

You must have at least one thread running for each address type that your gateway supports.

See Also

FreeThreadParameter, HrGWStartNewFileHandler