JEDI Windows API – I’m writing this article because I want to share programming habits with you. What habit did prove to be a good one for you? Share yours then, please. I always add “RaiseLastOsError” to every Windows API call. if not ImpersonateLoggedOnUser(token) then RaiseLastOsError; In this way you don’t miss any failed call and wonder what is happening (I can recall a lot of forum threads that ask about this). RaiseLastOsError generates an EOSError exception that contains the error number and text in its message. It also stores the GetLastError value in its property ...
Visits by Source
Users who voted for this posting