KSC Open API  13.1
Kaspersky Security Center API description
params NagRemoteScreen::OpenSession ( int  nType,
wstring  szwID 
)

Shares the session, opens ports etc.

Parameters:
nType(int) type of remote screen (see Remote screen type)
szwID(wchar_t*) empty string for RDP, id of session for others (see GetExistingSessions)
Returns:
(params) sharing handle of the shared session