188.8.131.52 NetrDfsDeleteExitPoint (Opnum 49)
NET_API_STATUS NetrDfsDeleteExitPoint( [in, string, unique] SRVSVC_HANDLE ServerName, [in] GUID* Uid, [in, string] WCHAR* Prefix, [in] unsigned long Type );
ServerName: An SRVSVC_HANDLE (section 184.108.40.206) point that identifies the server. The client MUST map this structure to an RPC binding handle (see [C706] sections 4.3.5 and 220.127.116.11). The server MUST ignore this parameter.
Uid: Specifies the GUID that corresponds to the DFS link that is specified by the Prefix parameter. This GUID MUST be obtained by using the NetrDfsGetInfo (Opnum 4) method, specified in [MS-DFSNM] section 18.104.22.168.6.
Prefix: A pointer to a null-terminated UTF-16 string that specifies the path of the DFS link.
Type: This parameter MUST be one of the values listed in section 22.214.171.124.
Return Values: The method returns 0x00000000 (NERR_Success) to indicate success; otherwise, it returns a nonzero error code. The method can take any specific error code value, as specified in [MS-ERREF] section 2.2.
In response to a NetrDfsDeleteExitPoint message, the server SHOULD<156> choose to perform no processing and return an implementation-specific error code when this method is called. If the server supports DFS, the server MAY delete a DFS link, as specified in [MS-DFSC].
The Uid parameter specifies the GUID of the link to delete.
The Prefix parameter specifies the path of the DFS link. The string MUST be in one of two forms:
The first form is \Dfsname\sharename\path_to_link, where Dfsname is the name of the storage server that hosts the root of a standalone DFS implementation; sharename is the name of a shared folder that is published on the DFS host server; and path_to_link specifies the path on the physical network share.
The second form is \DomainName\DomDfsname\path_to_link, where DomainName is the name of the domain that hosts the DFS root; DomDfsname is the root name of a domain-based DFS implementation that is published in the directory service of the domain; and path_to_link specifies the path on the physical network share.
The Type parameter specifies the type of the link to delete and MUST be one of the values listed in section 126.96.36.199. If the value of this parameter is PKT_ENTRY_TYPE_MACHINE, the server MUST fail the call and return an implementation-specific error code.
If a link whose GUID, path, and type match the specified parameters is present, the server MUST delete it; otherwise, it MUST fail the call with an implementation-specific error code.
The server MAY<157> enforce security measures to verify that the caller has the required permissions to execute this call. If the server enforces these security measures and the caller does not have the required credentials, the server SHOULD<158> fail the call.