The PrlDbg_GetHandlesNum function determines how many handles were instantiated in the API library.
PRL_RESULT PrlDbg_GetHandlesNum( PRL_UINT32_PTR handles_num, PRL_HANDLE_TYPE type );
PrlApiCore.h
PRL_RESULT. Possible values: PRL_ERR_INVALID_ARG - non valid (NULL) pointer for storing result was passed PRL_ERR_SUCCESS - operation completed successfully