Open topic with navigation
This function is the entry point to obtain the file extraction functions. It supplies pointers to the file extraction functions, and in the case of out-of-process mode starts the
kvoop.exe server and initializes out-of-process extraction services. When
KVGetExtractInterface() is called, it assigns the function pointers in the structure
KVExtractInterface to the functions described in this section.
int pascal KVGetExtractInterface ( void *pContext, KVExtractInterface pIextract);
||A pointer returned from
A pointer to the KVExtractInterface structure, which contains function pointers that
Before you initialize the
If the call is successful, the return value is
If the call is not successful, the return value is an error code.
fpKVGetExtractInterface = (int (pascal *)( void *, KVExtractInterface))myGetProcAddress(hKV
Filter, (char*)"KVGetExtractInterface"); /*Initialize file extraction interface structure using KVStructInit*/ KVStructInit(&extractInterface); /* Retrieve file extraction interface */ error = (*fpKVGetExtractInterface)(p Filter,&extractInterface))
You can define only one extraction structure for one context pointer. For example, the following is not allowed:
fpInit() KVGetExtractInterface(pFilter, &extractInterface1) fpOpenFile() fpGetMainFileInfo() fpGetSubFileInfo() fpExtractSubFile fpGetSubFileMetadata() fpFilterFile() fpCloseFile() ... KVGetExtractInterface(pFilter, &extractInterface2) fpOpenFile() fpGetMainFileInfo() fpGetDocInfoFile() fpGetOLESummaryInfoFile() fpFilterFile() fpCloseFile() ... fpShutdown()