3.1.4.7 R_WinsTerm (Opnum 6)

The R_WinsTerm method sends a termination signal to the WINS process on a target WINS server.

 DWORD R_WinsTerm(
   [in] handle_t ServerHdl,
   [in] SHORT fAbruptTem
 );

ServerHdl: An RPC binding over IP address/HostName to the WINS server. RPC uses this binding internally to determine which WINS server the call is directed to.

fAbruptTem: A value that indicates whether the WINS process terminates immediately. If this value is nonzero, the service terminates immediately. Otherwise, the service exits normally and frees all resources.

Return Values: A 32 bit unsigned integer that indicates the return status. A return value of ERROR_SUCCESS (0x00000000) indicates that operation completed successfully. A nonzero return value is a Win32 error code, as specified in [MS-ERREF]. The following Win32 error codes can be returned:

Return value/code

Description

0x00000000

ERROR_SUCCESS

The call was successful.

0x00000005

ERROR_ACCESS_DENIED

The caller doesn't have sufficient permissions.

Exceptions Thrown: No exceptions SHOULD be thrown beyond those thrown by the underlying RPC protocol [MS-RPCE].

Processing and Response Requirements:

The following requirements and recommendations apply to a WINS server that processes a call to R_WinsTerm:

  • The R_WinsTerm caller SHOULD have control level access. If an RPC client with a lower access level calls R_WinsTerm, the server SHOULD return ERROR_ACCESS_DENIED.

  • R_WinsTerm always returns ERROR_SUCCESS if the client has sufficient access level permissions.

  • If fAbruptTem is set to a nonzero value, the service exits immediately. Otherwise, the service frees all the resources and then calls the exit process.