LBuffer::GetHandle

Summary

Gets an HGLOBAL memory handle to a copy of the allocated global buffer handle of the class object.

Syntax

#include "ltwrappr.h"

HGLOBAL LBuffer::GetHandle()

Returns

Value Meaning
>0 Global memory handle to a copy of the objects internal buffer.
0 An error occurred.

Comments

The returned handle is a handle to a copy of the objects internal buffer, and you are responsible for freeing this handle.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Example

L_INT LBuffer__GetHandleExample() 
{ 
    
   LBuffer LeadBuffer(1024) ; 
   HGLOBAL hGlobal=LeadBuffer.GetHandle() ; 
   GlobalFree(hGlobal); 
 
   return SUCCESS; 
} 
Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.