Article View: borland.public.cppbuilder.nativeapi
Article #1128Re: How To Send Alt - Ctrl - Del to the System or the same effect?
From: Remy Lebeau (TeamB)
Date: Thu, 25 Oct 2007 01:47
Date: Thu, 25 Oct 2007 01:47
26 lines
2373 bytes
2373 bytes
"JF Jolin" <jfj@nospam.com> wrote in message
news:op.t0ikcozljr09w3@localhost...
> call WlxLoggedOnSAS() from msgina.dll
Do not call GINA's functions directly. WinLogon calls GINA's functions
internally when needed. There is no point in calling GINA's functions
directly, because there is no way to manually pass the return values to
WinLogon to perform the requested actions. Instead, you should be calling
WlxSasNotify(), which is exposed by WinLogon and is the same call that GINA
makes when it wants to notify WinLogon of something happening, ie:
WlxSasNotify(hWlx, WLX_SAS_TYPE_CTRL_ALT_DEL);
Unfortunately, you run into the same problem that Emmanuel has already
discovered - obtaining the correct hWlx value to use. There is no direct
way to do that because it is a value that only WinLogon knows when it loads
GINA at system startup. You can't fake it, since GINA will use that value
to call back into WinLogon when needed. You would have to write your own
GINA DLL to replace (or at least be a proxy stub for) the default GINA DLL.
Then WinLogon will load your DLL and pass the correct hWlx value to it at
startup, and you can store it away for later use.
Gambit
Technical Details
Message-ID:
<471ff59d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<47179abc$1@newsgroups.borland.com> <ci8fh3tbntc5vr2q5ec8thg8mg4qj6hagc@4ax.com> <471815f6@newsgroups.borland.com> <vnchh3pfir89cobhg1abo344oi3vdj29k6@4ax.com> <47196250@newsgroups.borland.com> <op.t0ikcozljr09w3@localhost>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,60476a16b55e787b X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <47179abc$1@newsgroups.borland.com> <ci8fh3tbntc5vr2q5ec8thg8mg4qj6hagc@4ax.com> <471815f6@newsgroups.borland.com> <vnchh3pfir89cobhg1abo344oi3vdj29k6@4ax.com> <47196250@newsgroups.borland.com> <op.t0ikcozljr09w3@localhost> Subject: Re: How To Send Alt - Ctrl - Del to the System or the same effect? Date: Wed, 24 Oct 2007 18:47:00 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.29.61 Message-ID: <471ff59d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1193276829 75.83.29.61 (24 Oct 2007 18:47:09 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed0.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail