NAME

CreateILockBytesOnHGlobal  (OLE32.@)

SYNOPSIS

 HRESULT CreateILockBytesOnHGlobal
 (
  HGLOBAL      global,
  BOOL         delete_on_release,
  ILockBytes** ret
 )

DESCRIPTION

Create a byte array object which is intended to be the compound file foundation. This object supports a COM implementation of the ILockBytes interface.

PARAMS

global [ I] Global memory handle
delete_on_release [ I] Whether the handle should be freed when the object is released.
ret [ O] Address of ILockBytes pointer that receives the interface pointer to the new byte array object.

RETURNS

Success: S_OK.

NOTES

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.

IMPLEMENTATION

Declared in "include/ole2.h". gitlab.winehq.org/wine/wine/blob/master/include/ole2.h

Implemented in "dlls/coml2/memlockbytes.c". gitlab.winehq.org/wine/wine/blob/master/dlls/coml2/memlockbytes.c

Debug channel "ole".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.