Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/vncdll/winvnc/TsSessions.h
Views: 11780
/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.1* Copyright (C) 2007 Constantin Kaplinsky. All Rights Reserved.2*3* This is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License as published by5* the Free Software Foundation; either version 2 of the License, or6* (at your option) any later version.7*8* This software is distributed in the hope that it will be useful,9* but WITHOUT ANY WARRANTY; without even the implied warranty of10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11* GNU General Public License for more details.12*13* You should have received a copy of the GNU General Public License14* along with this software; if not, write to the Free Software15* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,16* USA.17*/1819// Windows version-independent Terminal Services Session discovery20// and manipulation API. This code will eventually be replaced21// by the full TS-compatibility scheme.2223#ifndef __RFB_WIN32_TSSESSIONS_H__24#define __RFB_WIN32_TSSESSIONS_H__2526#include "stdhdrs.h"2728struct SessionId {29DWORD id;30};3132// Session Id for a given process33struct ProcessSessionId : SessionId {34ProcessSessionId(DWORD processId = -1);35};3637// Session Id for current process38extern ProcessSessionId mySessionId;3940// Current console Session Id41struct ConsoleSessionId : SessionId {42ConsoleSessionId();43};4445// Check whether the process is in the Console session at present46bool inConsoleSession();4748// Make the specified session the Console session.49// If sessionId is -1 then the process' session is50// made the Console session.51void setConsoleSession(DWORD sessionId = -1);5253#endif545556