.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH CreateILockBytesOnHGlobal 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBCreateILockBytesOnHGlobal\fR (OLE32.@) .SH SYNOPSIS HRESULT CreateILockBytesOnHGlobal ( HGLOBAL \fIhGlobal\fR, BOOL \fIfDeleteOnRelease\fR, LPLOCKBYTES* \fIppLkbyt\fR ) .SH DESCRIPTION .PP Create a byte array object which is intended to be the compound file foundation. This object supports a \fBCOM\fR implementation of the \fBILockBytes\fR interface. .SH PARAMS \fIhGlobal\fR \fB[ I]\fR Global memory handle .PP \fIfDeleteOnRelease\fR \fB[ I]\fR Whether the handle should be freed when the object is released. .PP \fIppLkbyt\fR \fB[ O]\fR Address of ILockBytes pointer that receives the interface pointer to the new byte array object. .PP .SH RETURNS .PP \fBSuccess:\fR \fBS_OK\fR. .SH NOTES .PP The supplied ILockBytes pointer can be used by the StgCreateDocfileOnILockBytes function to build a compound file on top of this byte array object. The \fBILockBytes\fR interface instance calls the GlobalReAlloc function to grow the memory block as required. .SH IMPLEMENTATION .PP Declared in \fB"ole2.h"\fR. .PP Implemented in \fB"dlls/ole32/memlockbytes.c"\fR. .PP Debug channel \fB"ole"\fR.