ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

NTSTATUS GetInterfaceConnectionStatus ( PIP_INTERFACE  Interface,
PULONG  Result 
)

Definition at line 199 of file interface.c.

Referenced by InfoTdiQueryGetInterfaceMIB(), and TCPUpdateInterfaceLinkStatus().

{
    NTSTATUS Status;

    /* Query OID_GEN_MEDIA_CONNECT_STATUS for connection status information */
    Status = TcpipLanGetDwordOid(Interface, OID_GEN_MEDIA_CONNECT_STATUS, Result);
    if (!NT_SUCCESS(Status))
        return Status;

    /* Translate the result into MIB_IF_OPER_STATUS_XXX */
    if (*Result == NdisMediaStateConnected)
    {
        /* Up and running */
        *Result = MIB_IF_OPER_STATUS_OPERATIONAL;
    }
    else
    {
        /* Down */
        *Result = MIB_IF_OPER_STATUS_DISCONNECTED;
    }

    return STATUS_SUCCESS;
}

Generated on Mon May 28 2012 05:18:15 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.