I want to open an IPsec tunnel from the Windows XP PC (I can do it using MMC GUI) and get callbacks(some Windows API) on the connection status in my application(it can be C, C++ or any other application) like CONNECTION_ESATBLISHED, CONNECTION_FAILED or NEGOTIATION_FAILED.
In other words, I want to know if the tunnel was established, if it's running properly or had being closed through my application code.
I've googled a lot on the subject, but couldn't find any useful information...
Anyone has any ideas? Thanks a lot!