Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overhauls to remove all elements of text reading/parsing from
quser.exe.This pull request introduces several new functionalities and improvements to the
MG.QUser.Coreproject, including new helper methods, struct definitions, and updates to build and debug scripts. The most important changes are grouped by theme below:Build and Debug Script Enhancements:
.build/build.ps1: Added script to concatenate private and public module scripts, build the .NET project, and copy DLLs to the appropriate directory..debug/debug.ps1: Added script to import module DLLs and load private and public scripts for debugging purposes.Struct Definitions and Helper Methods:
MG.QUser.Core/Internal/MemoryHelper.cs: IntroducedMemoryHelperclass with P/Invoke forWTSFreeMemoryand a special handle for the current server.MG.QUser.Core/Internal/Structs/WTSSessionInfo.cs: DefinedWTS_SESSION_INFOstruct for session information returned byWTSEnumerateSessions.MG.QUser.Core/Internal/Structs/WtsInfo.cs: AddedWTSINFOWstruct for session information, including session state and user details.MG.QUser.Core/Internal/Structs/WtsSessionHandle.cs: ImplementedWtsSessionHandleref struct for managing session handles and connections.Enum and Project Configuration:
MG.QUser.Core/Internal/WtsInfoClass.cs: AddedWtsInfoClassenum to specify types of session information forWTSQuerySessionInformation.MG.QUser.Core/MG.QUser.Core.csproj: Updated project file to target multiple frameworks, enable nullable reference types, and include necessary packages.Additional Helper Methods:
MG.QUser.Core/QUserHelper-InfoClasses.cs: Added static methods inQUserHelperto retrieve session information such as strings, integers, and long values usingWTSQuerySessionInformation.