3.4 Local Interface Details for RPC Client Applications
The content in this section provides a unified interface for RPC client applications that use named pipes and other local applications that similarly employ the SMB family of protocols. Because such traffic can flow over the protocols specified in [MS-CIFS] and [MS-SMB2], these interfaces are written so that the higher-layer client application is isolated from the specifics of the underlying protocol. Implementations that support such local client applications SHOULD support one or more of the interfaces defined in this section.
This section provides an abstraction for the necessary connection establishment and negotiation operations and redirects to the equivalent higher-layer events specified in [MS-CIFS] and [MS-SMB2].
To simplify this interface, a composite structure ClientGenericContext is defined to encapsulate the underlying protocol and the protocol-specific client side context. The structure has the following fields:
ClientGenericContext.ProtocolDialect: The protocol dialect associated with an open.
ClientGenericContext.ProtocolSpecificOpen: Either the protocol-specific Client.Open, as specified in section 18.104.22.168 and in [MS-SMB2] section 22.214.171.124, or the protocol-specific Client.Session, as specified in section 126.96.36.199 and in [MS-SMB2] secton 188.8.131.52.
This structure MUST be considered opaque to the caller.