SetIfEntry (Windows Embedded CE 6.0)
1/6/2010
This function is used to set the administrative status of an interface.
Syntax
DWORD SetIfEntry(
PMIB_IFROW pIfRow
);
Parameters
pIfRow
[in] Pointer to a MIB_IFROW structure. The dwIndex member of this structure should specify the interface on which to set administrative status. The dwAdminStatus member specifies the new administrative status. The following table shows the possible values for the dwAdminStatus member.Value Description MIB_IF_ADMIN_STATUS_UP
The interface is administratively enabled.
MIB_IF_ADMIN_STATUS_DOWN
The interface is administratively disabled.
Return Value
Returns NO_ERROR if successful. If the function fails, it returns an error code. For a complete list of error codes, see Error Values or the SDK header file Winerror.h.
Requirements
Header | iphlpapi.h |
Library | Iphlpapi.lib |
Windows Embedded CE | Windows CE 3.0 and later |