Compartir a través de


RASCNTL_SERVERSTATUS (Windows Embedded CE 6.0)

1/6/2010

This structure contains information about the status of a RAS server.

Syntax

typedef struct tagRasCntlServerStatus {
  BOOL bEnable;
  DWORD bmFlags;
  BOOL bUseDhcpAddresses;
  DWORD dwStaticIpAddrStart;
  DWORD dwStaticIpAddrCount;
  DWORD bmAuthenticationMethods;
  DWORD dwNumLines;
} RASCNTL_SERVERSTATUS, *PRASCNTL_SERVERSTATUS;

Members

  • bEnable
    Setting this member to TRUE enables RAS server configuration.
  • bmFlags
    Flags that specify restrictions for connections to the server. The flags can be set globally in the server's bmFlags setting, or per line in each line's bmFlags setting. The flags in effect for each line are the results of the OR of the global and per line settings. The following table shows the possible values for bmFlags.

    Flag Description

    PPPSRV_FLAG_REQUIRE_DATA_ENCRYPTION

    Require encryption on this connection.

    PPPSRV_FLAG_ALLOW_UNAUTHENTICATED_ACCESS

    Do not require authentication on the connection.

    PPPSRV_FLAG_NO_VJ_HEADER_COMPRESSION

    Prevent VJ TCP/IP header compression.

    PPPSRV_FLAG_NO_DATA_COMPRESSION

    Prevent MS data compression.

  • bUseDhcpAddresses
    Value that specifies whether the server should obtain addresses from a Dynamic Host Configuration Protocol (DHCP) server rather than from a static pool.
  • dwStaticIpAddrStart
    First address if a static IP address pool is being used.
  • dwStaticIpAddrCount
    Number of static IP addresses that follow IpAddrStart in an IP address pool.
  • bmAuthenticationMethods
    Set of bitmask flags that specify which authentication methods are allowed.

    The following table shows the bitmask flags that can be set for this member.

    Bitmask flag Description

    RASEO_ProhibitPAP

    Disallows PAP authentication.

    RASEO_ProhibitCHAP

    Disallows CHAP-MD5 authentication.

    RASEO_ProhibitMsCHAP

    Disallows MS-CHAP authentication.

    RASEO_ProhibitMsCHAP2

    Disallows MS-CHAPv2 authentication.

  • dwNumLines
    Number of dial-up lines.

Remarks

This structure is returned by the RASCNTL_SERVER_GET_STATUS and RASCNTL_SERVER_GET_PARAMETERS IOCTLs and passed to the RASCNTL_SERVER_SET_PARAMETERS IOCTL.

Requirements

Header ras.h
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

RAS Server/PPTP Server (Incoming) Structures