pythoncom.CreateILockBytesOnHGlobal

PyILockBytes = CreateILockBytesOnHGlobal(hGlobal, DeleteOnRelease )

Creates an ILockBytes interface based on global memory

Parameters

hGlobal=None : PyHANDLE

Global memory handle. If None, a new global memory object is allocated.

DeleteOnRelease=True : bool

Indicates if global memory should be freed when interface is released.