The library contains four functions:
- BOOL CreateProfThread(*PROFTHRDSTRUCT)
- BOOL StartCount(*PROFTHRDSTRUCT)
- BOOL StopCount(*PROFTHRDSTRUCT)
- BOOL DestroyProfThread(*PROFTHRDSTRUCT)
or
- LOGICAL CREATEPROFTHRD(INT)
- LOGICAL STARTCOUNT(INT)
- LOGICAL STOPCOUNT(INT)
- LOGICAL DESTROYPROFTHRD(INT)
Each takes a pointer to a PROFTHRDSTRUCT structure as its argument and returns TRUE if it succeeds and FALSE if it fails. The instructions to tell what objects to monitor are fed into the struct at the beginning of the program.