Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
MSWindowsSession.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2013 - 2016 Synergy App Ltd
4
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5
*/
6
7
#pragma once
8
9
#define WIN32_LEAN_AND_MEAN
10
#include <Windows.h>
11
12
#include <Tlhelp32.h>
13
14
class
MSWindowsSession
15
{
16
public
:
17
MSWindowsSession
();
18
~MSWindowsSession
() =
default
;
19
24
BOOL
hasChanged
();
25
26
bool
isProcessInSession
(
const
wchar_t
*
name
, PHANDLE process);
27
HANDLE
getUserToken
(LPSECURITY_ATTRIBUTES security);
28
void
updateActiveSession
();
29
30
DWORD
getActiveSessionId
()
31
{
32
return
m_activeSessionId;
33
}
34
35
private
:
36
BOOL
nextProcessEntry(HANDLE snapshot, LPPROCESSENTRY32 entry);
37
38
private
:
39
DWORD
m_activeSessionId;
40
};
name
static const struct sockaddr FAR * name
Definition
ArchNetworkWinsock.cpp:29
DWORD
static const WSAEVENT FAR DWORD
Definition
ArchNetworkWinsock.cpp:56
BOOL
static const WSAEVENT FAR BOOL
Definition
ArchNetworkWinsock.cpp:56
MSWindowsSession::~MSWindowsSession
~MSWindowsSession()=default
MSWindowsSession::getUserToken
HANDLE getUserToken(LPSECURITY_ATTRIBUTES security)
Definition
MSWindowsSession.cpp:105
MSWindowsSession::isProcessInSession
bool isProcessInSession(const wchar_t *name, PHANDLE process)
Definition
MSWindowsSession.cpp:20
MSWindowsSession::MSWindowsSession
MSWindowsSession()
Definition
MSWindowsSession.cpp:16
MSWindowsSession::getActiveSessionId
DWORD getActiveSessionId()
Definition
MSWindowsSession.h:30
MSWindowsSession::hasChanged
BOOL hasChanged()
Definition
MSWindowsSession.cpp:127
MSWindowsSession::updateActiveSession
void updateActiveSession()
Definition
MSWindowsSession.cpp:132
src
lib
platform
MSWindowsSession.h
Generated by
1.18.0