Class Wtsapi32.WTSINFO

  • Enclosing interface:
    Wtsapi32

    @FieldOrder({"State","SessionId","IncomingBytes","OutgoingBytes","IncomingFrames","OutgoingFrames","IncomingCompressedBytes","OutgoingCompressedBytes","WinStationName","Domain","UserName","ConnectTime","DisconnectTime","LastInputTime","LogonTime","CurrentTime"})
    public static class Wtsapi32.WTSINFO
    extends Structure
    Contains information about a Remote Desktop Services session.
    • Field Detail

      • State

        public int State
      • SessionId

        public int SessionId
      • IncomingBytes

        public int IncomingBytes
      • OutgoingBytes

        public int OutgoingBytes
      • IncomingFrames

        public int IncomingFrames
      • OutgoingFrames

        public int OutgoingFrames
      • IncomingCompressedBytes

        public int IncomingCompressedBytes
      • OutgoingCompressedBytes

        public int OutgoingCompressedBytes
      • WinStationName

        public final byte[] WinStationName
      • Domain

        public final byte[] Domain
      • UserName

        public final byte[] UserName
    • Constructor Detail

      • WTSINFO

        public WTSINFO()
      • WTSINFO

        public WTSINFO​(Pointer p)
    • Method Detail

      • getWinStationName

        public String getWinStationName()
        Convenience method to return the null-terminated string in the WinStationName member, accounting for CHAR or WCHAR byte width.
        Returns:
        The WinStationName as a string.
      • getDomain

        public String getDomain()
        Convenience method to return the null-terminated string in the Domain member, accounting for CHAR or WCHAR byte width.
        Returns:
        The Domain as a string.
      • getUserName

        public String getUserName()
        Convenience method to return the null-terminated string in the UserName member, accounting for CHAR or WCHAR byte width.
        Returns:
        The UserName as a string.