Remove the PhAB context from a PhAB application that you're using as a DLL
int ApRemoveContext( ApContext_t *context );
This function removes a PhAB context from a PhAB application that you're using as a DLL. Call this function from the DLL's cleanup function.
|You must call ApRemoveContext() as many times as you successfully called ApAddContext(). After you've called ApRemoveContext(), your DLL must not call any PhAB functions.|
0 on success, or -1 on failure.
“Making a DLL out of a PhAB application” in the Generating, Compiling, and Running Code chapter of the Photon Programmer's Guide