The GetGWPath function retrieves the full path to the gateway.
LPTSTR GetGWPath( LPVOID lpParameter );
A pointer to a string containing the full path to the gateway.
HrGWStartNewMailHandler