This function is called by HotDocs to determine whether the answer source DLL has initialized itself properly, is in communication with the answer source application, and is ready to be used. It is called each time HotDocs loads the answer source DLL.
long IsAvailable ( )
Return HD_SUCCESS (1) if the answer source was able to initialize itself properly and communicate with the answer source application. Otherwise, return HD_FAILURE (0).
The following Visual C++ example displays a Message Box to indicate whether or not the answer source is initialized properly. In your application, you would typically query a database or perform some other check to see if it is working properly.
long WINAPI IsAvailable()
{
if (MessageBox(NULL, "Is the answer source available?", "Sample Answer Source", MB_YESNO) == IDYES)
return HD_SUCCESS;
else
return HD_FAILURE;
}