The HrGWLogoff function logs the user off the gateway.
HRESULT HrGWLogoff( VOID );
None.
See Return Values.
HrGWLogon, GWMain