次の方法で共有


IStorageItemHandleAccess::Create メソッド (windowsstoragecom.h)

ファイルへのハンドルを作成します。

構文

HRESULT Create(
  [in]           HANDLE_ACCESS_OPTIONS  accessOptions,
  [in]           HANDLE_SHARING_OPTIONS sharingOptions,
  [in]           HANDLE_OPTIONS         options,
  [in, optional] IOplockBreakingHandler *oplockBreakingHandler,
  [out, retval]  HANDLE                 *interopHandle
);

パラメーター

[in] accessOptions

ハンドルがファイルに対して持つアクセス のレベル。

[in] sharingOptions

ハンドルの要求された共有モード。

[in] options

ファイル ハンドルのフラグ。

[in, optional] oplockBreakingHandler

現在、実装されていません。

[out, retval] interopHandle

ファイルのハンドル。

戻り値

このメソッドは、成功すると S_OK を返します。 そうでない場合は、HRESULT エラー コードを返します。

要件

要件
サポートされている最小のクライアント Windows 10 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2016 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー windowsstoragecom.h
[DLL] Windows.storage.dll

こちらもご覧ください

IStorageItemHandleAccess