Skip to main content
Version: 16.10.0

GW2RegisterImportMemory

The GW2RegisterImportMemory function registers the memory location containing the interchange file required for import. The interchange file is the zip file produced from the export process and the memory location is provided by GW2RegisterExportMemory. Using the GW2RegisterImportMemory function activates the Import Process Mode for the session.

#include "glasswall.core2.api.h"
int GW2RegisterImportMemory(Session session, char *importFileBuffer, size_t *importLength);

Parameters

session The ID of the session as returned by GW2OpenSession.

importFileBuffer The memory location containing the interchange file required for import. The memory location is provided by GW2RegisterExportMemory and the file must conform to the interchange file format.

importLength The length of importFileBuffer in bytes

Returns

  Returns an integer indicating whether the function call was successful. Negative numbers indicate a failure. See the Return Types table for an explanation of the return codes.