Categories
Delphi

Mom, a modal loop ate my service messages!

A colleague of mine was using the “modernized” service implementation I wrote about some time ago. His services needs to be notified when a user logs on/off or locks/unlocks the machine. Everything was fine for a while, until he started to complain it worked for a while, but then, “randomly”, notifications weren’t triggered any longer. Debugging, he […]

Categories
Delphi

Modernize you Delphi Windows application: use Windows 2000 (and later!) services.

No, the title of this blog post is not a mistake. Delphi, including XE7, only implements services using NT APIs obsoleted since Windows 2000. Windows NT was EOLed in 2004, 2000 in 2010, and XP last year, yet Delphi still doesn’t take advantage of the new APIs. What are the advantages? Well, using the “extended” […]

Categories
Delphi

Local elevation points in Windows and Delphi

Since the introduction of Windows Vista and the new security model for applications, application running under User Account Control (UAC) should adopt a “least privilege” model, running as an “unprivileged” user almost all the time, and requesting higher privileges only when needed, even if the user has those privileges. Requesting higher privileges is called “elevation”. […]

Categories
Uncategorized

Sandon Utensileria 75th anniversary

On April 10th, 2011, Sandon Utensileria, the company established by my grandfather, Francesco Sandon, and his brother Luigi (later joined by the other two brothers, Felice and Fausto), celebrates its 75th anniversary of uninterrupted activity, even when WWII swept across Milano the warehouse was moved in a hayloft outside the city, and orders were dispatched […]

Categories
Software development

Inno Setup library to manage Windows services

An InnoSetup 5.x library to control services. It gives access to the Service Control Manager functions to query/start/stop/install/uninstall services, and implements some higher level functions (simpleXXXX) to perform standard tasks easily. ANSI version Unicode version Zip file with both versions NB: ANSI version won’t work with the Unicode version of Inno Setup. I didn’t test […]

Categories
Uncategorized

Visiting CERN

On December 8th, a holiday in Italy, we woke up early in Geneva to visit the CERN centre.  After a rainy day spent visiting Geneva, the Moon was shining in the sky, telling us that beside some remaining clouds, it was going to be a sunny day. The CERN laboratories are nearby Geneva airport, just outside the city, and […]

Categories
Uncategorized

Logitech and its damned LVUSBSta.sys driver

I’ve bought a Logitech STX QuickCam Communicate STX webcam – nothing sophisticated – just needed a simple, good quality webcam to be used in Skype chats. But after installing the camera, the audio in Flight Simulator X was no longer working correctly. Unluckily that camera comes with a built-in microphone, and the usual installer made for […]