lmshare.h header

This header is used by Data Access and Storage. For more information, see:

lmshare.h contains the following programming interfaces:

Functions

 
NetConnectionEnum

Lists all connections made to a shared resource on the server or all connections established from a particular computer.
NetFileClose

Forces a resource to close. This function can be used when an error prevents closure by any other means. You should use NetFileClose with caution because it does not write data cached on the client system to the file before closing the file.
NetFileEnum

Returns information about some or all open files on a server, depending on the parameters specified.
NetFileGetInfo

Retrieves information about a particular opening of a server resource.
NetSessionDel

Ends a network session between a server and a workstation.
NetSessionEnum

Provides information about sessions established on a server.
NetSessionGetInfo

Retrieves information about a session established between a particular server and workstation.
NetShareAdd

Shares a server resource.
NetShareCheck

Checks whether or not a server is sharing a device.
NetShareDel

Deletes a share name from a server's list of shared resources, disconnecting all connections to the shared resource.
NetShareDelEx

Deletes a share name from a server's list of shared resources, which disconnects all connections to that share.
NetShareEnum

Retrieves information about each shared resource on a server.
NetShareGetInfo

Retrieves information about a particular shared resource on a server.
NetShareSetInfo

Sets the parameters of a shared resource.

Structures

 
CONNECTION_INFO_0

Contains the identification number of a connection.
CONNECTION_INFO_1

Contains the identification number of a connection, number of open files, connection time, number of users on the connection, and the type of connection.
FILE_INFO_2

Contains the identification number for a file, device, or pipe.
FILE_INFO_3

Contains the identification number and other pertinent information about files, devices, and pipes.
SESSION_INFO_0

Contains the name of the computer that established the session.
SESSION_INFO_1

Contains information about the session, including name of the computer; name of the user; and open files, pipes, and devices on the computer.
SESSION_INFO_10

Contains information about the session, including name of the computer; name of the user; and active and idle times for the session.
SESSION_INFO_2

Contains information about the session, including name of the computer; name of the user; open files, pipes, and devices on the computer; and the type of client that established the session.
SESSION_INFO_502

Contains information about the session, including name of the computer; name of the user; open files, pipes, and devices on the computer; and the name of the transport the client is using.
SHARE_INFO_0

Contains the name of the shared resource.
SHARE_INFO_1

Contains information about the shared resource, including the name and type of the resource, and a comment associated with the resource.
SHARE_INFO_1004

Contains a comment associated with the shared resource.
SHARE_INFO_1005

Contains information about the shared resource.
SHARE_INFO_1006

Specifies the maximum number of concurrent connections that the shared resource can accommodate.
SHARE_INFO_1501

Contains the security descriptor associated with the specified share. For more information, see Security Descriptors.
SHARE_INFO_2

Contains information about the shared resource, including name of the resource, type and permissions, and the number of current connections.
SHARE_INFO_501

Contains information about the shared resource including the name and type of the resource, and a comment associated with the resource.
SHARE_INFO_502

Contains information about the shared resource, including name of the resource, type and permissions, number of connections, and other pertinent information.
SHARE_INFO_503

Contains information about the shared resource. It is identical to the SHARE_INFO_502 structure, except that it also contains the server name.