MprAdminInterfaceEnum function (mprapi.h)
The MprAdminInterfaceEnum function enumerates all the interfaces on a specified server.
DWORD MprAdminInterfaceEnum( [in] MPR_SERVER_HANDLE hMprServer, [in] DWORD dwLevel, [out] LPBYTE *lplpbBuffer, [in] DWORD dwPrefMaxLen, [out] LPDWORD lpdwEntriesRead, [out] LPDWORD lpdwTotalEntries, [in] LPDWORD lpdwResumeHandle );
Handle to the router on which to execute this call. Obtain this handle by calling MprAdminServerConnect.
A DWORD value that describes the format in which the information is returned in the lplpbBuffer parameter. Must be zero.
Specifies the preferred maximum length of returned data (in 8-bit bytes). If this parameter is -1, the buffer returned is large enough to hold all available information.
Pointer to a DWORD variable. This variable receives the total number of interfaces that were enumerated from the current position in the enumeration.
Pointer to a DWORD variable. This variable receives the total number of interfaces that could have been enumerated from the current resume position.
Pointer to a DWORD variable. This variable specifies a resume handle that can be used to continue the enumeration. The handle should be zero on the first call, and left unchanged on subsequent calls. If the return code is ERROR_MORE_DATA then the call can be re-issued using the handle to retrieve more data. If on return, the handle is NULL, the enumeration cannot be continued. For other types of error returns, this handle is invalid.
This parameter is optional. If the calling application specifies NULL for this parameter, the function does not return a resume handle.
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
||The calling application does not have sufficient privileges.|
||More information is available; the enumeration can be continued.|
||Insufficient resources to complete the operation.|
||The value of dwLevel is invalid.|
|Minimum supported client||None supported|
|Minimum supported server||Windows 2000 Server [desktop apps only]|