StgIsStorageILockBytes function (coml2api.h)

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

Syntax

HRESULT StgIsStorageILockBytes(
  ILockBytes *plkbyt
);

Parameters

plkbyt

ILockBytes pointer to the byte array to be examined.

Return value

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

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header coml2api.h (include Objbase.h)
Library Ole32.lib
DLL Ole32.dll

See also

ILockBytes

StgIsStorageFile