DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
ActiveUserSession.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Common.h
"
4
#include "
System/Object.h
"
5
#include "
System/String.h
"
6
#include "
System/SmartPointer.h
"
7
#include "
System/Collections/Generic/List.h
"
8
9
namespace
DotNetDupe
{
10
namespace
System
{
11
namespace
Diagnostics
{
12
15
struct
UserSessionInfo
{
16
unsigned
long
uSessionId
;
17
String
sUsername
;
18
String
sPrivilege
;
19
String
sLoginTimestamp
;
20
String
sLogoutTimestamp
;
21
bool
bIsActive
;
22
};
23
31
class
ActiveUserSession
:
public
Object
{
32
public
:
34
DOTNETDUPE_API
ActiveUserSession
();
35
37
DOTNETDUPE_API
virtual
~ActiveUserSession
();
38
42
DOTNETDUPE_API
static
Collections::Generic::List<UserSessionInfo>
GetActiveSessions
();
43
47
DOTNETDUPE_API
static
Collections::Generic::List<UserSessionInfo>
GetExpiredSessions
();
48
52
DOTNETDUPE_API
static
Collections::Generic::List<UserSessionInfo>
GetAllSessions
();
53
54
private
:
55
#if defined(_WIN32)
58
static
void
EnumerateWin32Sessions(
Collections::Generic::List<UserSessionInfo>
& lstSessions);
59
#endif
60
};
61
62
}
63
}
64
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
List.h
Represents a strongly typed list of objects that can be accessed by index mirroring ....
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
SmartPointer.h
Provides reference-counted and weak pointer memory management primitives ensuring zero raw ownership.
String.h
High-performance UTF-8 / UTF-16 string manipulation class mirroring .NET System.String.
DotNetDupe::System::Collections::Generic::List
Represents a strongly typed list of objects accessible by index.
Definition
List.h:29
DotNetDupe::System::Diagnostics::ActiveUserSession::GetActiveSessions
static Collections::Generic::List< UserSessionInfo > GetActiveSessions()
Enumerates all sessions currently in the active interactive state.
Definition
ActiveUserSession.cpp:65
DotNetDupe::System::Diagnostics::ActiveUserSession::ActiveUserSession
ActiveUserSession()
Initializes a new instance of ActiveUserSession.
Definition
ActiveUserSession.cpp:16
DotNetDupe::System::Diagnostics::ActiveUserSession::GetExpiredSessions
static Collections::Generic::List< UserSessionInfo > GetExpiredSessions()
Enumerates all disconnected or inactive user sessions.
Definition
ActiveUserSession.cpp:75
DotNetDupe::System::Diagnostics::ActiveUserSession::GetAllSessions
static Collections::Generic::List< UserSessionInfo > GetAllSessions()
Enumerates all user sessions regardless of active state.
Definition
ActiveUserSession.cpp:56
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::System::Diagnostics
Definition
ActiveUserSession.h:11
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
DotNetDupe::System::Diagnostics::UserSessionInfo
Encapsulates details about an operating system interactive user session.
Definition
ActiveUserSession.h:15
DotNetDupe::System::Diagnostics::UserSessionInfo::uSessionId
unsigned long uSessionId
Terminal Services session identifier.
Definition
ActiveUserSession.h:16
DotNetDupe::System::Diagnostics::UserSessionInfo::sLogoutTimestamp
String sLogoutTimestamp
Formatted timestamp of session disconnection or active status.
Definition
ActiveUserSession.h:20
DotNetDupe::System::Diagnostics::UserSessionInfo::sPrivilege
String sPrivilege
User privilege level or role description.
Definition
ActiveUserSession.h:18
DotNetDupe::System::Diagnostics::UserSessionInfo::sUsername
String sUsername
Account name of the logged-on user.
Definition
ActiveUserSession.h:17
DotNetDupe::System::Diagnostics::UserSessionInfo::bIsActive
bool bIsActive
True if session is actively receiving user input.
Definition
ActiveUserSession.h:21
DotNetDupe::System::Diagnostics::UserSessionInfo::sLoginTimestamp
String sLoginTimestamp
Formatted timestamp of when session was established.
Definition
ActiveUserSession.h:19
Include
System
Diagnostics
ActiveUserSession.h
Generated by
1.18.0