[DllImport("netapi32.dll", SetLastError=true)]
static extern TODO NetRemoteComputerSupports(TODO);
Declare Unicode Function NetRemoteComputerSupports Lib "Netapi32.dll" ( _
ByVal UncServerName As String, _
ByVal OptionsWanted As NetSupportOption, _
ByRef OptionsSupported As NetSupportOption) _
As NET_API_STATUS
NET_API_STATUS - Possible value are NERR_Success, ERROR_NOT_ENOUGH_MEMORY and ERROR_INVALID_PARAMETER.
<System.Flags()> _
Public Enum NetSupportOption As Integer
Any = -1
RemoteAdminProtocol = 2
Rpc = 4
SamProtocol = 8
Unicode = 16
Local = 32
Error = -2147483648 'Not a possible value for OptionsSupported - can be used to indicate an error from the API
End Enum
Do you know one? Please contribute it!
None.
Please add some!
Function RemoteComputerSupports(ByVal ComputerName As String, ByVal Wanted As NetSupportOption) As NetSupportOption
Dim supports As NetSupportOption
If NetRemoteComputerSupports(ComputerName, Wanted, supports) = NET_API_STATUS.NERR_Success Then Return supports
Return NetSupportOption.Error
End Function