🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1118

Re: How To Send Alt - Ctrl - Del to the System or the same effect?

#1118
From: Emmanuel
Date: Wed, 24 Oct 2007 01:50
55 lines
2978 bytes
I have already read, after read this, it rise much more unknown parameter, 
maybe my level is too low,
I don't know what is
lpWinsta - A pointer to the name of the window station being initialized.
pWinlogonFunctions - which parameter I should fill, what relation between 
with
              DWORD dwDllVersion;  WlxNegotiate( WLX_CURRENT_VERSION, 
&dwDllVersion );



"Bob Gonder" <notbg@notmindspring.invalid> 
??????:8cvrh35v1apu19q4fm55sl78kqj81qd6ht@4ax.com...
> 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: <471ea4ab$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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> <8cvrh35v1apu19q4fm55sl78kqj81qd6ht@4ax.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: "Emmanuel" <emmanuel@erphk.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> <471d9825$1@newsgroups.borland.com> <8cvrh35v1apu19q4fm55sl78kqj81qd6ht@4ax.com>
Subject: Re: How To Send Alt - Ctrl - Del to the System or the same effect?
Date: Wed, 24 Oct 2007 09:50:39 +0800
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
NNTP-Posting-Host: 61.141.173.149
Message-ID: <471ea4ab$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1193190571 61.141.173.149 (23 Oct 2007 18:49:31 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail