Re: IStorage

From: Jochen Kalmbach (nospam-Jochen.Kalmbach_at_holzma.de)
Date: 08/31/04


Date: Tue, 31 Aug 2004 13:03:49 -0700

Hi Sergey,

> IStorage* pStor = NULL;
> HRESULT hIStor = StgCreateStorageEx(NULL,
> STGM_CREATE|STGM_SHARE_EXCLUSIVE|STGM_READWRITE|STGM_DELETEONRELEASE
> , STGFMT_STORAGE, 0, NULL, 0, IID_IStorage, (void**)&pStor);
>
> but it succeeds only with STGM_SHARE_EXCLUSIVE flag. If I write
> STGM_SHARE_DENY_NONE, function fails. How can I create non-exclusive
> storage?

Try to open it with only "READ" and NOT "READWRITE".

-- 
Greetings
  Jochen
 
   My blog about Win32 and .NET
   http://blog.kalmbachnet.de/


Relevant Pages

  • Re: New For Loop Syntax (for each)
    ... universe than C#. ... available in D9 for Win32 as well as .NET. ... Read Jake's Blog at http://blogs.slcdug.org/jjacobson/ ...
    (borland.public.delphi.non-technical)
  • Re: Send file to Windows recycle bin
    ... Only win32 calls. ... - Sahil Malik ... You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik ... > One option is to use SHFileOperation shell API function. ...
    (microsoft.public.dotnet.framework)
  • Re: How to get the ID of a dialog?
    ... I do recall reading the blog when it was posted but its hard to believe it ... will not work even in Win32. ... Replace _year_ with _ to get the real email ...
    (microsoft.public.vc.mfc)
  • Re: C++ 5.0 Hilfesystem in XP SP2
    ... > My blog about Win32 and .NET ... ganz herzlichen Dank. ... Schließe mich voll den Lobeshymnen an. ...
    (microsoft.public.de.vc)
  • Re: VS 2005 C++ Resources
    ... > Hi Kris! ... >>> My blog about Win32 and .NET ... Prev by Date: ...
    (microsoft.public.vc.language)