EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

StgIsStorageFile function

The StgIsStorageFile function indicates whether a particular disk file contains a storage object.

Syntax


WINOLEAPI StgIsStorageFile(
  _In_  const WCHAR *pwcsName
);

Parameters

pwcsName [in]

Pointer to the null-terminated Unicode string name of the disk file to be examined. The pwcsName parameter is passed uninterpreted to the underlying file system.

Return value

S_OK

Indicates that the file contains a storage object.

S_FALSE

Indicates that the file does not contain a storage object.

STG_E_FILENOTFOUND

Indicates that the file was not found.

StgIsStorageFile function can also return any file system errors or system errors wrapped in an HRESULT. See Error Handling Strategies and Handling Unknown Errors

Remarks

At the beginning of the disk file underlying a storage object is a signature distinguishing a storage object from other file formats. The StgIsStorageFile function is useful to applications whose documents use a disk file format that might or might not use storage objects.

If a root compound file has been created in transacted mode but not yet committed, this method still return S_OK.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Header

Objbase.h

Library

Ole32.lib

DLL

Ole32.dll

See also

StgIsStorageILockBytes

 

 

Community-Beiträge

HINZUFÜGEN
Anzeigen:
© 2014 Microsoft