주요 콘텐츠로 건너뛰기

GW2RegisterExportMemory

GW2RegisterExportMemory 함수는 내보낸 파일을 저장할 메모리 위치를 등록합니다. 이 함수를 사용하면 세션에 대해 Export Process Mode가 활성화됩니다.

개요

세션 session에 대해 GW2RegisterExportMemory 함수는 내보낸 콘텐츠가 배치될 위치와 내보낸 콘텐츠의 바이트 단위 크기가 배치될 위치를 등록합니다. 내보낸 콘텐츠에 대한 포인터는 exportFileBuffer가 가리키는 객체에 배치되며, 내보낸 데이터의 바이트 단위 크기는 exportFileBufferLength가 가리키는 size_t 객체에 배치됩니다. 내보낸 콘텐츠는 GW2CloseSession을 사용해 세션이 닫힐 때 삭제됩니다. 이 함수를 사용하면 세션에 대해 Export Process Mode가 활성화됩니다.


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

반환값

정수 GW2_RetStatus enum 값을 반환합니다. 음수는 실패를 나타냅니다.