The exception class WrapperServiceException contains the text of a service control error as retrieved by GetLastErrorText. The text has the last error code in hex at the end (see the implementation of GetLastErrorText at http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn/service-win32/service.c\). In my project, I need to take different action depending on the error code, so I have to parse out the error code. The specific changes I would like to see are:
1. Add an int field "errorCode" to WrapperServiceException.
2. Populate this field with the result of calling GetLastError().
Thanks,
Bob
Bob,
Thank you for your suggestion. This was fairly easy to implement. It has been added and will be in the upcoming 3.3.2 release.
Cheers,
Leif
That was *fast* !!!
Thanks!