Desktop Functions: Smart Device Functions:
|
Search Results for "NetShareGetInfo" in [All]StructuresThis Enumeration is useful for all the NetShareGetInfo calls such as follows
int output = NetShareGetInfo("<ServerName>", @"<ShareName>", 502, out ptr); advapi323: GetAce
static extern int NetShareGetInfo(
int err = NetShareGetInfo(args[0], args[1], 502, out bufptr); netapi324: NetShareEnum
Declare Unicode Function NetShareGetInfo Lib "netapi32.dll" _
public static extern int NetShareGetInfo(
Declare Unicode Function NetShareGetInfo Lib "netapi32.dll" _
Module NetShareGetInfoAPI
Declare Unicode Function NetShareGetInfo Lib "netapi32.dll" _
Public Function CallAPI_NetShareGetInfo(ByVal NetSharePath as String) As String
Result = Me.NetShareGetInfo(sapiByteServer, sapiByteShare, 2, pBuffer)
Result = Me.NetShareGetInfo(vbEmpty, sapiByteShare, 2, pBuffer)
Throw New Exception("NetShareGetInfo: ERROR_ACCESS_DENIED -> The user has insufficient privilege for this operation.")
Throw New Exception("NetShareGetInfo: ERROR_NOT_ENOUGH_MEMORY -> Not enough memory")
Throw New Exception("NetShareGetInfo: ERROR_NETWORK_ACCESS_DENIED -> Network access is denied.")
Throw New Exception("NetShareGetInfo: ERROR_INVALID_PARAMETER Invalid parameter specified.")
Throw New Exception("NetShareGetInfo: ERROR_BAD_NETPATH -> The network path was not found.")
Throw New Exception("NetShareGetInfo: ERROR_INVALID_NAME -> Invalid name")
Throw New Exception("NetShareGetInfo: ERROR_INVALID_LEVEL -> Invalid level parameter.")
Throw New Exception("NetShareGetInfo: ERROR_MORE_DATA -> More data available, buffer too small.")
Throw New Exception("NetShareGetInfo: NERR_NetNotStarted -> Device driver not installed.")
Throw New Exception("NetShareGetInfo: NERR_RemoteOnly -> This operation can be performed only on a server.")
Throw New Exception("NetShareGetInfo: NERR_ServerNotStarted -> Server service not installed.")
Throw New Exception("NetShareGetInfo: NERR_BufTooSmall -> Buffer too small for fixed-length data.")
Throw New Exception("NetShareGetInfo: NERR_RemoteErr -> Error encountered while remotely executing function")
Throw New Exception("NetShareGetInfo: NERR_WkstaNotStarted -> The Workstation service is not started.")
Throw New Exception("NetShareGetInfo: NERR_BadTransactConfig -> The server is not configured for this transaction; IPC$ is not shared.")
Throw New Exception("NetShareGetInfo: NERR_NetNameNotFound -> Sharename not found.")
Throw New Exception("NetShareGetInfo: NERR_InvalidComputer -> Invalid computername specified.")
Throw New Exception("NetShareGetInfo: Unknown " & Result)
public static extern int NetShareGetInfo( int Result = NetShareGetInfo("ArunGanesh", "public",502,out pBuffer); The NetShareGetInfo function retrieves information about a particular shared resource on a server. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netsharegetinfo.asp
static extern int NetShareGetInfo([MarshalAs(UnmanagedType.LPWStr)] string servername,
int errCode = NetShareGetInfo(serverName, netName, 2, ref ptr); |