NFS_OPEN_ECP_CONTEXT structure (ntifs.h)

The NFS_OPEN_ECP_CONTEXT structure is used by the Network File System (NFS) server to open files in response to client requests.

Syntax

typedef struct _NFS_OPEN_ECP_CONTEXT {
  PUNICODE_STRING       ExportAlias;
  PSOCKADDR_STORAGE_NFS ClientSocketAddress;
} NFS_OPEN_ECP_CONTEXT, *PNFS_OPEN_ECP_CONTEXT, PPNFS_OPEN_ECP_CONTEXT;

Members

ExportAlias

A pointer to a UNICODE_STRING structure that supplies the export alias (share name) for the NFS server that contains the files to be opened. This member is a hint and can be a name, NULL, or a zero-length string.

ClientSocketAddress

A pointer to a SOCKADDR_STORAGE structure that specifies the transport address of the client computer. This client originates the open file request.

Remarks

The file-system stack can determine whether NFS_OPEN_ECP_CONTEXT is attached to the create file request. The file-system stack can then use the information in NFS_OPEN_ECP_CONTEXT to determine the client that requested that the file be opened and why it was requested. For information about how to retrieve the NFS_OPEN_ECP_CONTEXT extra information that is attached to a create file request, see Retrieving ECPs.

The NFS_OPEN_ECP_CONTEXT structure is read-only. You should use it to retrieve information about the open file ECP only. For more information about this issue, see System-Defined ECPs.

Requirements

Requirement Value
Minimum supported client This structure is available starting with Windows 7.
Header ntifs.h (include Ntifs.h)

See also

SOCKADDR_STORAGE

UNICODE_STRING