As of Windows Vista, you can use the SendSAS
function.
Original answer, now superseded by the above
The function you need is called SimulateSAS
. You need to e-mail [email protected] and ask for it. Microsoft don’t appear to document this, but just do a websearch for SimulateSAS
and you’ll see what I mean.
Others have explained why it’s actually not a security issue to allow apps to trigger CTRL+ALT+DEL, but you certainly can’t do it with SendKeys
.