次の方法で共有


GrantAccess method of the MSFT_SMFileShare class

Grants the specified users access to the file share.

Syntax

UInt32 GrantAccess(
  [in]            string                AccountNames[],
  [in]            uint32                AccessRight,
  [out, optional] MSFT_SMExtendedStatus ExtendedStatus
);

Parameters

AccountNames [in]

TBD

AccessRight [in]

TBD

ExtendedStatus [out, optional]

An MSFT_SMExtendedStatus object containing the results of calling this method.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMFileShare