It_StopSapGui 

Use

Stops the SAPGUI Front.

If the SAPGUI Front is running, you need ot stop it before you log off from the R/3 application server or before exiting your program.

One reason, for example, for stopping the SAPGUI Front is if your program starts SAPGUI Front but then needs to exit before SapGui Front actually appears.

Note that your program may have started SAPGUI by either:

Syntax

DWORD DLEX It_StopSapGui (HANDLE hMr);

Parameters

hMr

Connection handle

Return Value

Returns TRUE on success, FALSE on error.

See Also

It_StartSapGui, It_Logoff