Archive for April, 2008

Using Windows Contacts

Since Windows Vista, a new API called Windows Contacts (WC) was born. It replaces the Windows Address BookAPI. You can get your personal properties by using the Windows Address Book Editor. It can be opened using “wab” in command line.

Yes, we did LsaLogonUser

I was asked if we had implemented LsaLogonUser – the function from hell. Yes, we did. You can find it in the online documation @ JwsclLsa.TJwSecurityLsa.LsaLogonUser (Unit.Class.Method). LsaLogonUser and JwsclToken.TJwSecurityToken.CreateNewToken are not documented at the moment. However: These functions should only used for a really good reason. Otherwise the system security can be breached.

Exception swallowing

In this blog entry “Why JWSCL mainly uses exceptions instead of returned error values” I told you why JWSCL uses mainly exceptions instead of return values. However this design also have problems. A bad programmer may simply swallow the exception like this:

Many people add a “requireAdministrator” manifest to their Application to elevate their application in Vista. However itis not needed all the time so there is a second way that allows  to elevate the program even in Windows XP. The solution is to restart the application with ShellExecute and the “runas” verb. In Vista you’ll get [...]

Unfortunately Borland didn’t implement a public register and start function into the class TServiceApplication. So we have to do it ourselves. First we publish the protected RegisterServices function to allow (un-)install our service(s) programmatically.

WindowMessages

If you have ever been as puzzled as I was by some of the numerical values that are supposed to be window messages, you’ll like this little tool of mine. The aptly named tool “WindowMessages” comes with source code and a Perl script to assist you in creating your own version of it by – [...]

NTStatus

NTStatus converts an error number into a NTStatus error message. It is very helpful if you encounter error numbers in debugging sessions but cannot comprehend its sense. This application was written by Assarbad. Get the application written in Delphi and using non-VCL at these locations (including source): http://assarbad.net/stuff/ntstatus.rar http://assarbad.net/stuff/ntstatus.zip

Do you need help? We can support you creating application using JWA and/or JWSCL. Visit the Get Service site on SourceForge for more information like pricing.

  • Comments Off

The BlockInput function blocks the user’s input. However this worked in Windows XP and older but not more in Windows Vista. Now the process must run with Administrator privileges or be in the SYSTEM account. Additionally JwaWinAble.pas reports about this function: This returns FALSE if the caller doesn’t have permissions to do this esp. if [...]

StrSafe.h converted for JEDI API

We are proud to announce the conversion of StrSafe.h header: JwaStrSafe.pas conversion is now available through the JEDI API Lib subversion repository. You can also get the header here (only temporary). What is JwaStrSafe.pas ? StrSafe defines safer C library string routine replacements. These are meant to make C a bit more safe in reference [...]

Paypal donation (EUR)

Archives

 

April 2008
M T W T F S S
« Mar   May »
 123456
78910111213
14151617181920
21222324252627
282930