Remko Weijnen's Blog (Remko's Blog)

About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like

SasLibEx Screencast

I just recorded a SasLibEx Screencast, it shows some of the very powerfull features of SasLibEx.

The following features are shown:

  • Simulate Ctrl Alt Del (Secure Attention Sequence)
  • Cancel Ctrl Alt Del
  • Lock Workstation
  • Unlock Workstation (without credentials)
  • Disable Ctrl Alt Del
  • Enable Ctrl Alt Del again
  • Cancel pending UAC request
  • Is Desktop Locked
SasLibEx Feature Demo #1

SasLibEx 2.0 Release Announcement

Today I can proudly announce the official release of SasLibEx 2.0 which will bring support for new compilers, a native x64 version and some exciting new features!

New Compilers:

SasLibEx 2.0 introduces support for Visual Studio 2010 (C++), RAD Studio 2010 (Delphi and C++ personalities) and the new RAD Studio XE (Delphi and C++).

Native x64:

A separate native x64 version is available for Visual Studio 2005, 2008 or 2010 (C++).

New Features:

SasLibEx 2.0 introduces new unique features, the most important ones being:

  • New method to simulate the Secure Attention Sequence (SAS aka Ctrl-Alt-Del) with only user permissions.
  • New Switch console function to reconnect closed RDP sessions for remote control.
  • SasLibEx could already Lock and Unlock (without credentials) the Desktop, now there is also a function to determine if a Desktop or Session is Locked.
  • Log off any session from a service.
  • Retrieve the user’s name from a service.

Just like the old features, the new features do not require User Account Control to be enabled, nor does it require signing your executables.

If you would like to know more, upgrade or order please contact me using the Contact Form or directly by e-mail:


If you didn’t read before about SasLibEx and what it can do please read my earlier posts about it.

  • Filed under: Programming
  • Did you make a SasLibEx enquiry? And… news!

    My hoster has had some problems with the domain that I use for SasLibEx enquiries. If you have sent mail to mail that has not been answered I kindly request you to send it again.

    I would also like to briefly tell you about an upcoming new release of SasLib, version 2.0. There is so much I would like to tell you about it but I will limit it to a few highlights here and save the rest for the upcoming website on

    • A new option to simulate Control-Alt-Delete with only user permissions (no need to be admin or even system).
    • New Switch console function to reconnect closed RDP sessions for remote control.
    • Supports Windows Vista, Server 2008, Windows 7 and Server 2008 R2.
    • Support for Delphi 2010, C++ Builder 2010 and will support MS Visual C++ 2010 once it reaches RTM.
    • Native x64 support.

    I feel especially good about 2.0 because further improvements were made to the code, again some highlights:

    • Full documentation of all functions, parameters and known possible errors.
    • 80% of the code was rewritten from scratch.
    • Uses techniques like annotations to further reduce the chance of programing errors.
    • Structured testing.

    SasLibEx updates

    I have found and tested some new functionalities which I will add to SasLibEx:

    • Unlocking workstation without entering password
    • Cancel UAC (User Account Control) request
    • fully disable Ctrl-Alt-Del
    • Cancel Ctrl-Alt-Del
    • Switch between secure desktop (where the UAC prompt is) and the normal desktop.

    Some people asked if SasLibEx works on x64 or Windows 7, the answer is yes. I tested on build 7000 of Windows 7 beta and also on Server 2008 x64.

    Existing code to simulate the Secure Attention Sequence (SAS),which most people refer to as control alt delete or ctrl-alt-del, no longer works in Windows Vista. It seems that Microsoft offers a library that exports a function called SimulateSAS(). It is not public and one is supposed to request it by sending a mail to Mails to this address remain unanswered though.

    I researched how other people (including Microsoft) have solved this task and was unhappy with the results: some solutions work only with (or without) UAC, most solutions work only for the current or console Terminal Server sessions or need a kernel mode driver.

    So I decided to create my own Saslib with the following goals:

    • Should work both with and without User Account Control (UAC)
    • Should support current, console and any Terminal Server session
    • Does not need a driver
    • The calling application does not need to be signed or have a special manifest
    • Support multiple programming languages

    I have succeeded and thus SasLibEx was born: not only can it successfully simulate the SAS sequence it can do this for any/all Terminal Server sessions. It can also lock the workstation (again for all sessions) and switch between the normal desktop and the secure desktop (the desktop that UAC runs on). SasLibEx was successfully tested both with and without User Account Control (UAC).

    In the future I will place SasLibEx on it’s own website. Meanwhile you can contact me if you are interested in it at the following mail address: mail

    Please note that I have spend lots of time into this project and therefore I cannot give it away for free

    Update: I have added new features to SasLibEx, see here: