screen_reader_is_running
This function checks to see if the given screen reader is active.
bool screen_reader_is_running(int reader)
Parameters:
reader
A value representing one of the four supported screen readers (see remarks).
Return value:
true if the given screen reader is running, false if it is not or if an error occurs.
Remarks:
This function supports four available screen readers, each of which are identified by a number, as follows:

- JAWS (1) - Jaws for Windows (Freedom Scientific)
- WINDOW_EYES (2) - Window Eyes (GWMicro)
- SYSTEM_ACCESS (3) - System Access (Serotek)
- NVDA (4) - Non Visual Desktop Access (NVDA Project)

Please note that all dependencies must be correctly installed in order for this function to work correctly. If this is not the case, the function will return false, even if the screen reader may in fact be active. See Appendix F for information about dependencies.
Example:

    // Check if any screen readers are running and get that screen reader to speak some text. If no screen reader is active, we will display an alert box.

    void main()
    {
    bool found_reader=false;
    for(int counter=1; counter<5; counter++)
    {
    if(screen_reader_is_running(counter))
    {
    found_reader=true;
    screen_reader_speak(counter, "Hi. Bet ya didn't know I could say things on my own without a screen, did you?");
    break;
    }
    }
    if(!found_reader)
    {
    alert("Information", "I can't seem to communicate with any screen readers, so I'll just have to show you this instead.");
    }
    }