// Copyright (c) 1997-2003 Microsoft Corporation, All Rights Reserved

#pragma autorecover
#pragma classflags(64)
#pragma namespace("\\\\.\\Root\\CIMV2")
instance of __namespace{ name="ms_804";};
#pragma namespace("\\\\.\\Root\\CIMV2\\ms_804")

[Description("The Win32_ConnectionShare class represents an association between a shared resource on the computer and the connection made to the shared resource.") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804) : ToInstance] 
class Win32_ConnectionShare : CIM_Dependency
{
  [Description("The Dependent property references the connection that was made to the shared resource.") : Amended ToSubclass,Key : ToInstance ToSubclass DisableOverride] Win32_ServerConnection Ref Dependent;
  [Description("The Antecedent property references the shared resource to which the connection was made.") : Amended ToSubclass,Key : ToInstance ToSubclass DisableOverride] Win32_Share Ref Antecedent;
};

[Description("The Win32_ServerSession class represents the sessions that have been established with the local computer, by users on some remote computer.") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804) : ToInstance] 
class Win32_ServerSession : CIM_LogicalElement
{
  [Description("The ComputerName property indicates the name of the computer from which the session is established") : Amended ToSubclass,key : ToInstance ToSubclass DisableOverride] String ComputerName;
  [Description("The UserName property indicates the name of the user that established the session.") : Amended ToSubclass,key : ToInstance ToSubclass DisableOverride] String UserName;
  [Description("The ActiveTime property indicates the number of seconds since this session was established.") : Amended ToSubclass,Units("seconds") : Amended ToSubclass] uint32 ActiveTime;
  [Description("The IdleTime property indicates the number of seconds that the session has been idle.") : Amended ToSubclass,Units("seconds") : Amended ToSubclass] uint32 IdleTime;
  [Description("The ResourcesOpened property indicates the number of files, devices and pipes opened during this session.") : Amended ToSubclass] uint32 ResourcesOpened;
  [Description("The SessionType property indicates how the session was opened. Only on Win NT.") : Amended ToSubclass,Values{"Guest", "NoEncryption", "Other"} : Amended ToSubclass] uint32 SessionType;
  [Description("The ClientType property indicates the type of the connected client.") : Amended ToSubclass] String ClientType;
  [Description("The TransportName property specifies the name of the transport that the client is using to communicate with the server") : Amended ToSubclass] String TransportName;
};

[Description("The Win32_ServerConnection class represents the connections made from a remote computer, to a shared resource on the local computer.") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804) : ToInstance] 
class Win32_ServerConnection : CIM_LogicalElement
{
  [Description("The ConnectionID property indicates a unique ID for the connection.") : Amended ToSubclass] uint32 ConnectionID;
  [Description("The ComputerName property indicates the name of the computer from which the connection is established") : Amended ToSubclass,Key : ToInstance ToSubclass DisableOverride] string ComputerName;
  [Description("The UserName property indicates the name of the user that made a connection.") : Amended ToSubclass,Key : ToInstance ToSubclass DisableOverride] string UserName;
  [Description("The ShareName property indicates the share resource to which the connection is established") : Amended ToSubclass,Key : ToInstance ToSubclass DisableOverride] string ShareName;
  [Description("The NumberOfFiles property indicates the number of open files associated with this connection.") : Amended ToSubclass] uint32 NumberOfFiles;
  [Description("The ActiveTime property indicates the number of seconds since this connection was established.") : Amended ToSubclass,Units("seconds") : Amended ToSubclass] uint32 ActiveTime;
  [Description("The NumberOfUsers property indicates the number of users associated with this connection.") : Amended ToSubclass] uint32 NumberOfUsers;
};

[Description("The Win32_SessionConnection class represents an association between a session established with the local server, by a user on a remote machine, and the connections that depend on the session.") : Amended ToSubclass,AMENDMENT, LOCALE(0x0804) : ToInstance] 
class Win32_SessionConnection : CIM_Dependency
{
  [Description("The Dependent property references a connection made to a shared resource on the local server.") : Amended ToSubclass,Key : ToInstance ToSubclass DisableOverride] Win32_ServerConnection Ref Dependent;
  [Description("The Antecedent property references the session established to connect to the shared resource.") : Amended ToSubclass,Key : ToInstance ToSubclass DisableOverride] Win32_ServerSession Ref Antecedent;
};
