次の方法で共有


SERVICE_ADDRESS (Compact 2013)

3/26/2014

This structure contains address information for a service. The structure can accommodate many types of interprocess communications (IPC) mechanisms and their address forms, including remote procedure calls (RPCs) and sockets.

Syntax

typedef struct _SERVICE_ADDRESS { 
  DWORD dwAddressType; 
  DWORD dwAddressFlags; 
  DWORD dwAddressLength; 
  DWORD dwPrincipalLength; 
  BYTE* lpAddress; 
  BYTE* lpPrincipal; 
} SERVICE_ADDRESS; 

Members

  • dwAddressType
    Address family to which the socket address pointed to by lpAddress belongs.
  • dwAddressFlags
    Set of bit flags that specify properties of the address. The following table shows the bit flags that are defined.

    Value

    Description

    SERVICE_ADDRESS_FLAG_RPC_CN

    If this bit flag is set, the service supports connection-oriented RPC over this transport protocol.

    SERVICE_ADDRESS_FLAG_RPC_DG

    If this bit flag is set, the service supports datagram-oriented RPC over this transport protocol.

    SERVICE_ADDRESS_FLAG_RPC_NB

    If this bit flag is set, the service supports NetBIOS RPC over this transport protocol.

  • dwAddressLength
    Size, in bytes, of the address.
  • dwPrincipalLength
    Reserved; set to 0 (zero).
  • lpAddress
    Pointer to a socket address of the appropriate type.
  • lpPrincipal
    Reserved; set to null.

Requirements

Header

winsock2.h

See Also

Reference

Winsock Structures
SERVICE_ADDRESSES
SERVICE_INFO