Expand Minimize

StgIsStorageILockBytes function

The StgIsStorageILockBytes function indicates whether the specified byte array contains a storage object.

Syntax


WINOLEAPI StgIsStorageILockBytes(
  ILockBytes *plkbyt
);

Parameters

plkbyt

ILockBytes pointer to the byte array to be examined.

Return value

S_OK

Indicates that the specified byte array contains a storage object.

S_FALSE

Indicates that the specified byte array does not contain a storage object.

This function can also return any file system errors, or system errors wrapped in an HRESULT, or ILockBytes interface error return values. See Error Handling Strategies and Handling Unknown Errors

Remarks

At the beginning of the byte array underlying a storage object is a signature distinguishing a storage object (supporting the IStorage interface) from other file formats. The StgIsStorageILockBytes function is useful to applications whose documents use a byte array (a byte array object supports the ILockBytes interface) that might or might not use storage objects.

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

StgIsStorageFile
ILockBytes

 

 

Community Additions

ADD
Show:
© 2014 Microsoft