StgCreateStorageEx on Network Drive ??

  • Thread starter Thread starter dan
  • Start date Start date
D

dan

I am trying to create a Structured Storage file on a network shared
drive. Everything works just find on a local drive, but I can not get
my code to work on a network drive.

My compound structured storage fails with the message
STG_E_PATHNOTFOUND error code.

I am sure the path exists and I can create other files in this network
location.

Here is my call from C++:

CComPtr<IStorage>pStg;
hr = StgCreateStorageEx( StrTemp,
STGM_CREATE|STGM_READWRITE|
STGM_SHARE_EXCLUSIVE,
STGFMT_DOCFILE,
0,
NULL,
NULL,
IID_IStorage,
reinterpret_cast<void**>
(&pStg));

I have tried a simlar call from C# ande I get the same error.

Does anyone know what I am doing wrong?

Should it be possible to use StgCreateStorageEx on Network drives?

Thanks,

Dan
 
Back
Top