Skip to main content
This method restores the contents of the ImageDocument object from the global memory. The method takes as an input parameter an HGLOBAL handle of the memory block from where the object’s contents should be loaded. This handle should be obtained from the HandleAsInt64 property of the Handle object returned by the IImageDocument::SaveToMemory method. The method can be used for passing images between different processes.

Syntax

Parameters

hGlobal [in] This parameter specifies the HGLOBAL handle of the memory block from where the object’s contents should be loaded. The handle is passed as __int64. This handle should be obtained from the IImageDocument::SaveToMemory method, and should be valid (not freed). result [out, retval] A pointer to IImageDocument* pointer variable that receives the interface pointer of the resulting ImageDocument object. Must not be NULL.

Return values

This method has no specific return values. It returns standard return values of ABBYY FlexiCapture SDK functions.

Remarks

  • The size of the memory area that the object allocates can be obtained by calling the GlobalSize function.
  • This method does not work if the Engine object is created using the OutprocLoader object.

See also

Engine IImageDocument::SaveToMemory