I am using ADS 1.2 and have some question. I have tried to use WaitForSingleObject as I did when I coded WinCE driver and found that it is just Win32 API and not supported by ADS. Then what I should use to wait for event? This may be a silly question but please answer. Thanks.
I guess you've come into the embedded world from the PC application world - things are very different here and you have to think about software in a different way.
Leaving the ADS libraries aside for a moment then without the OS all you have is the language itself and nothing extra. There is no SingleObject for you to WaitFor until you write the code for it.
ADS will have libraries as well which will give you extra functions for maths and dynamic memory allocation (best avoided in embedded systems).
Once you get an OS then you will have the API which comes with it but it might not have exactly the function you are looking for or it might be called something else. Read the documentation that comes with it.
Until you get an OS then you'll have to find another way to do what you want to do and it will need more knowledge than just calling an API. Do it. It will make you a better person!