5
votes
Vote UpVote

Programming Habits

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 ...
Favorite? Off-Topic? Christian Wimmer @ 2010-01-14 17:45

Statistics

Visits: 751
Votes: 5
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Aleksey Timohin
jamiei
Rodrigo
stukelly
vcldeveloper
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)