Share Functions
The share functions control shared resources. A shared resource is a local resource on a server (for example, a disk directory, print device, or named pipe) that can be accessed by users and applications on the network. The share functions are:| NetShareAdd
| Shares a resource on a server.
|
| NetShareCheck
| Queries whether a server is sharing a device.
|
| NetShareDel
| Deletes a share name from a server's list of shared resources.
|
| NetShareEnum
| Retrieves share information about each shared resource on a server.
|
| NetShareGetInfo
| Retrieves information about a specified shared resource on a server.
|
| NetShareSetInfo
| Sets a shared resource's parameters.
|
- IPC$, reserved for interprocess communication.
- ADMIN$, reserved for remote administration.
- A$, B$, C$ (and other local disk names followed by a dollar sign), assigned to local disk devices.
SHARE_INFO_1
SHARE_INFO_2
SHARE_INFO_502 The following information levels are valid only for NetShareSetInfo: SHARE_INFO_1004
SHARE_INFO_1006 The following is supported only on Windows NT: SHARE_INFO_1501 For NetShareSetInfo, parmnum values refer to the members of the SHARE_INFO structure, as follows. These values are used when indicating an error in a specific parameter through parm_err.
| parmnum value
| Member of SHARE_INFO structure
|
| SHARE_NETNAME_PARMNUM
| shi_netname
|
| SHARE_TYPE_PARMNUM
| shi_type
|
| SHARE_REMARK_PARMNUM
| shi_remark
|
| SHARE_PERMISSIONS_PARMNUM
| shi_permissions
|
| SHARE_MAX_USES_PARMNUM
| shi_max_uses
|
| SHARE_CURRENT_USES_PARMNUM
| shi_current_uses
|
| SHARE_PATH_PARMNUM
| shi_path
|
| SHARE_PASSWD_PARMNUM
| shi_passwd
|
| SHARE_FILE_SD_PARMNUM
| shi_security_descriptor
|
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers - More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples


