StgOpenStorageEx

[DllImport("ole32.dll", SetLastError = true)]
public static extern int StgOpenStorageEx(
   [MarshalAs(UnmanagedType.LPWStr)] string pwcsName,
   uint grfMode,
   uint stgfmt,
   uint grfAttrs,
   ref STGOPTIONS pStgOptions,
   IntPtr reserved,
   ref Guid riid,
   out IStorage ppObjectOpen
);

Microsoft documentation: Link

Last updated