Platform SDK: Network Management |
The NetRemoteComputerSupports function queries the redirector to retrieve the optional features the remote system supports. Features include Unicode, Remote Procedure Call (RPC), and Remote Administration Protocol support. The function establishes a network connection if one does not exist.
No special group membership is required to successfully execute the NetRemoteComputerSupports function.
NET_API_STATUS NetRemoteComputerSupports( LPCWSTR UncServerName, DWORD OptionsWanted, LPDWORD OptionsSupported );
Value | Meaning |
---|---|
SUPPORTS_REMOTE_ADMIN_PROTOCOL | Requests Remote Administration Protocol support. |
SUPPORTS_RPC | Requests RPC support. |
SUPPORTS_SAM_PROTOCOL | Requests Security Account Manager (SAM) support. |
SUPPORTS_UNICODE | Requests Unicode standard support. |
SUPPORTS_LOCAL | Requests support for the first three values listed in this table. If UNICODE is defined by the calling application, requests the four features listed previously. |
The value of this parameter is valid only when the NetRemoteComputerSupports function returns NERR_Success.
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value can be one of the following error codes.
Value | Meaning |
---|---|
ERROR_INVALID_PARAMETER | Either the OptionsWanted parameter or the OptionsSupported parameter is NULL; both parameters are required. |
ERROR_NOT_ENOUGH_MEMORY | Insufficient memory is available. |
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Unsupported.
Header: Declared in Lmremutl.h; include Lm.h.
Library: Use Netapi32.lib.
Network Management Overview, Network Management Functions, Remote Utility Functions, NetServerGetInfo