Skip to main content
Version: 16.9.0

GW2RegisterExportMemory

The GW2RegisterExportMemory function registers the memory location to store the exported file. Using this function activates the Export Process Mode for the session.

Synopsis

For session session, the GW2RegisterExportMemory function registers where the exported content is to be placed, and where to place the size in bytes of the exported content. A pointer to the exported content will be placed in the object pointed to by exportFileBuffer and the size in bytes of the exported data will be placed in the size_t object pointed to by exportFileBufferLength. The exported content will be deleted when the session is closed using GW2CloseSession. Using this function activates the Export Process Mode for the session.


#include "glasswall.core2.api.h"
int GW2RegisterExportMemory(Session session,
char **exportFileBuffer,
size_t *exportFileBufferLength);

Returns

Returns an integer GW2_RetStatus enum value. Negative numbers indicate a failure.