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.
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.
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:
05 Apr
Posted by: Christian Wimmer in: JEDI Windows Security Code Lib
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 [...]
05 Apr
Posted by: Christian Wimmer in: JEDI Windows API Headers
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.
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 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
03 Apr
Posted by: Christian Wimmer in: Common, JEDI Windows API Headers, JEDI Windows Security Code Lib
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.
03 Apr
Posted by: Christian Wimmer in: JEDI Windows API Headers
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 [...]
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 [...]