Article View: borland.public.cppbuilder.nativeapi
Article #1117Re: How To Send Alt - Ctrl - Del to the System or the same effect?
From: Bob Gonder
Date: Tue, 23 Oct 2007 18:01
Date: Tue, 23 Oct 2007 18:01
38 lines
2451 bytes
2451 bytes
Emmanuel wrote:
> BOOL WlxNegotiate( DWORD dwWinLogonVersion, PDWORD pdwDllVersion)
>but how to use it????
http://msdn2.microsoft.com/en-us/library/aa380574.aspx
Looking at Winwlx.h it looks like you would just use the value directly:
DWORD dwDllVersion;
WlxNegotiate( WLX_CURRENT_VERSION, &dwDllVersion );
>for the lpWinsta, what is the name of the window station being initialized.
Listed here in the remarks
http://msdn2.microsoft.com/en-us/library/aa380567.aspx
> LPWSTR lpWinsta=
"Winsta0";
It is also listed as winsta0 and WinSta0 in other places.
> HANDLE hWlx=NULL;
> PVOID* pWlxContext;
PVOID pWlxContext;
> MyWlxInitialize(lpWinsta,hWlx,pvReserved,pWinlogonFunctions,pWlxContext);
WlxInitialize("Winsta0", hWlx, NULL, (void*)dwDllVersion, &pWlxContext);
But, after reading this
http://msdn.microsoft.com/msdnmag/issues/05/05/securitybriefs/
I think you would rather get pWlxContext from WinLogon somehow.
> DWORD dwSasType=WLX_SAS_TYPE_CTRL_ALT_DEL;
> PVOID pReserved=NULL;
> MyWlxLoggedOnSAS(pWlxContext,dwSasType,pReserved);
Simpler to write
MyWlxLoggedOnSAS( pWlxContext, WLX_SAS_TYPE_CTRL_ALT_DEL, NULL);
Technical Details
Message-ID:
<8cvrh35v1apu19q4fm55sl78kqj81qd6ht@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!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> <471d9825$1@newsgroups.borland.com>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: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How To Send Alt - Ctrl - Del to the System or the same effect? Date: Tue, 23 Oct 2007 11:01:51 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <8cvrh35v1apu19q4fm55sl78kqj81qd6ht@4ax.com> References: <47179abc$1@newsgroups.borland.com> <ci8fh3tbntc5vr2q5ec8thg8mg4qj6hagc@4ax.com> <471815f6@newsgroups.borland.com> <vnchh3pfir89cobhg1abo344oi3vdj29k6@4ax.com> <47196250@newsgroups.borland.com> <op.t0ikcozljr09w3@localhost> <471d9825$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.82.204 X-Trace: newsgroups.borland.com 1193162509 69.69.82.204 (23 Oct 2007 11:01:49 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail