The WitnessrGetInterfaceList method returns information about the interfaces to which witness client connections can be made.

 DWORD WitnessrGetInterfaceList(
         [in] handle_t Handle,
         [out] PWITNESS_INTERFACE_LIST* InterfaceList);
            

Handle:  An RPC binding handle [C706].

InterfaceList:  A pointer to a PWITNESS_INTERFACE_LIST, as specified in section 2.2.2.6.

Return Values: Returns 0x00000000 (ERROR_SUCCESS) on success or a nonzero error code, as specified in [MS-ERREF] section 2.2. The most common error codes are listed in the following table.

Return value/code

Description

0x00000000

 ERROR_SUCCESS

The operation completed successfully.

0x00000005

 ERROR_ACCESS_DENIED

Access is denied.

0x00000057

ERROR_INVALID_PARAMETER

The parameter is incorrect.

0x00000103

ERROR_NO_MORE_ITEMS

No more data is available.

0x0000000E

ERROR_OUTOFMEMORY

There is not enough storage space to complete the operation.

If there are no entries in the InterfaceList, the server MUST fail the request and return the error code ERROR_NO_MORE_ITEMS.

If no entry in the InterfaceList has a State of AVAILABLE, the server MUST wait until at least one entry enters that State, as specified in section 3.1.6.1.

For each Interface in the InterfaceList, the server MUST construct a WITNESS_INTERFACE_INFO structure as follows:

The server MUST construct the WITNESS_INTERFACE_LIST structure as follows:

The WITNESS_INTERFACE_LIST structures MUST be copied into the InterfaceList parameter.

The server MUST return ERROR_SUCCESS and the InterfaceList parameter to the caller.