SERVER_INFO_102 structure (lmserver.h)
The SERVER_INFO_102 structure contains information about the specified server, including name, platform, type of server, attributes, and associated software.
Syntax
typedef struct _SERVER_INFO_102 {
DWORD sv102_platform_id;
LMSTR sv102_name;
DWORD sv102_version_major;
DWORD sv102_version_minor;
DWORD sv102_type;
LMSTR sv102_comment;
DWORD sv102_users;
LONG sv102_disc;
BOOL sv102_hidden;
DWORD sv102_announce;
DWORD sv102_anndelta;
DWORD sv102_licenses;
LMSTR sv102_userpath;
} SERVER_INFO_102, *PSERVER_INFO_102, *LPSERVER_INFO_102;
Members
sv102_platform_id
Type: DWORD
The information level to use for platform-specific information.
Possible values for this member are listed in the Lmcons.h header file.
sv102_name
Type: LPWSTR
A pointer to a Unicode string specifying the name of a server.
sv102_version_major
Type: DWORD
The major version number and the server type.
The major release version number of the operating system is specified in the least significant 4 bits. The server type is specified in the most significant 4 bits. The MAJOR_VERSION_MASK bitmask defined in the Lmserver.h header should be used by an application to obtain the major version number from this member.
sv102_version_minor
Type: DWORD
The minor release version number of the operating system.
sv102_type
Type: DWORD
The type of software the computer is running.
Possible values for this member are listed in the Lmserver.h header file. This member can be a combination of some of the following values.
The SV_TYPE_ALL constant is defined to 0xFFFFFFFF in the Lmserver.h header file. This constant can be used to check for all server types when used with the NetServerEnum function.
sv102_comment
Type: LPWSTR
A pointer to a Unicode string specifying a comment describing the server. The comment can be null.
sv102_users
Type: DWORD
The number of users who can attempt to log on to the system server. Note that it is the license server that determines how many of these users can actually log on.
sv102_disc
Type: LONG
The auto-disconnect time, in minutes. A session is disconnected if it is idle longer than the period of time specified by the sv102_disc member. If the value of sv102_disc is SV_NODISC, auto-disconnect is not enabled.
sv102_hidden
Type: BOOL
A value that indicates whether the server is visible to other computers in the same network domain. This member can be one of the following values defined in the Lmserver.h header file.
Value | Meaning |
---|---|
|
The server is visible. |
|
The server is not visible. |
sv102_announce
Type: DWORD
The network announce rate, in seconds. This rate determines how often the server is announced to other computers on the network. For more information about how much the announce rate can vary from the period of time specified by this member, see SERVER_INFO_1018.
sv102_anndelta
Type: DWORD
The delta value for the announce rate, in milliseconds. This value specifies how much the announce rate can vary from the period of time specified in the sv102_announce member.
The delta value allows randomly varied announce rates. For example, if the sv102_announce member has the value 10 and the sv102_anndelta member has the value 1, the announce rate can vary from 9.999 seconds to 10.001 seconds.
sv102_licenses
Type: DWORD
The number of users per license. By default, this number is SV_USERS_PER_LICENSE.
sv102_userpath
Type: LPWSTR
A pointer to a Unicode string specifying the path to user directories.
Remarks
To retrieve a value that indicates whether a share is the root volume in a Dfs tree structure, you must call the NetShareGetInfo function and specify information level 1005.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | lmserver.h (include Lm.h) |