184.108.40.206.1.61 IVolumeClient::EnumAccessPath (Opnum 78)
The EnumAccessPath method enumerates all mount points configured on the server.
HRESULT EnumAccessPath( [in, out] int* lCount, [out, size_is(,*lCount)] COUNTED_STRING** paths );
lCount: The address of an int that returns the number of elements returned in paths.
paths: Pointer to an array of COUNTED_STRING structures that describe all mount points configured on the machine. Memory for the array is allocated by the server and freed by the client.
Return Values: The method MUST return 0 or a nonerror HRESULT on success, or an implementation-specific nonzero error code on failure (as specified in [MS-ERREF]; see also section 2.2.1 for HRESULT values predefined by the Disk Management Remote Protocol).
Upon receiving this message, the server MUST validate parameters:
Verify that lCount and paths are not NULL.
If parameter validation fails, the server MUST fail the operation immediately, returning an appropriate error as its response to the client.
Otherwise, the server MUST compose a response to the client as follows:
Enumerate all mount points configured in the system.
Allocate a buffer large enough to contain COUNTED_STRING structures that describe all enumerated mount points.
Populate each COUNTED_STRING structure in the buffer with the mount point path.
The buffer MUST be returned to the client in the output parameter paths.
The number of COUNTED_STRING structures in the buffer MUST be returned in the output parameter lCount.
Return a response that contains the output parameters mentioned previously and the status of the operation.
The server MUST NOT change the list of storage objects as part of processing this message.