CreateILockBytesOnHGlobal (OLE32.@)
HRESULT CreateILockBytesOnHGlobal ( HGLOBAL hGlobal, BOOL fDeleteOnRelease, LPLOCKBYTES* ppLkbyt )
Create a byte array object which is intended to be the compound file foundation. This object supports a COM implementation of the ILockBytes interface.
hGlobal | [ I] | Global memory handle |
fDeleteOnRelease | [ I] | Whether the handle should be freed when the object is released. |
ppLkbyt | [ O] | Address of ILockBytes pointer that receives the interface pointer to the new byte array object. |
Success: S_OK.
The supplied ILockBytes pointer can be used by the StgCreateDocfileOnILockBytes function to build a compound file on top of this byte array object. The ILockBytes interface instance calls the GlobalReAlloc function to grow the memory block as required.
Defined in "ole2.h".
Implemented in "dlls/ole32/memlockbytes.c". source.winehq.org/source/dlls/ole32/memlockbytes.c
Debug channel "ole".
Copyright © 2008 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Jul 2008.