Compartilhar via


SetIfEntry (Windows CE 5.0)

Send Feedback

This function is used to set the administrative status of an interface.

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 Values

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

OS Versions: Windows CE 3.0 and later.
Header: Iphlpapi.h.
Link Library: Iphlpapi.lib.

See Also

IP Helper Functions | MIB_IFROW

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.