how to do coding (while and if)

Header definition
extern "C" __declspec(dllexport) int _stdcall A( void );
extern "C" __declspec(dllexport) int _stdcall Reset( void )

Loop execution: if "A event" is triggered,"Hang A" right away,

Execute Reset until the Reset event "returns 0" is normal, and then release the suspended A to execute the A event,

How to execute in the background ??
What do you mean by background?

What do you mean by "Hang A"?
Registered users can post here. Sign in or register to post.