共用方式為


2.2.4.5 CONNECT_ENUM_STRUCT

The CONNECT_ENUM_STRUCT structure specifies the information level that the client requests when invoking the NetrConnectionEnum (section 3.1.4.1) method and encapsulates the CONNECT_ENUM_UNION (section 2.2.3.1) union that receives the entries that are enumerated by the server.

 typedef struct _CONNECT_ENUM_STRUCT {
   DWORD Level;
   [switch_is(Level)] CONNECT_ENUM_UNION ConnectInfo;
 } CONNECT_ENUM_STRUCT,
  *PCONNECT_ENUM_STRUCT,
  *LPCONNECT_ENUM_STRUCT;

Level: Specifies the information level of the data. This parameter MUST have one of the following values.

Value

Meaning

0

CONNECT_INFO_0_CONTAINER

1

CONNECT_INFO_1_CONTAINER

ConnectInfo: Contains either a CONNECT_INFO_0_CONTAINER structure or a CONNECT_INFO_1_CONTAINER structure depending on the value of the Level parameter. The enumerated elements are returned in this member.