🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

GINA Development and message catching...

#11963
From: Mike Collins
Date: Fri, 09 Jan 2004 01:35
40 lines
2463 bytes
Hi all, have made a few posts regarding my current project which involves
implimneting a GINA stub.  I'm basically building a kind of generic GINA
which can be interfaced with a variety of different hardware authentication
devices (bio-metrics etc...).

One of the functional requirements is to over-ride the default 'Welcome
Screen' (CTRL-ALT-DEL or SAS screen).  There is no real problem here as I
simply ShowModal my dialog screen instead of forwarding it on to the next
GINA in the chain (msgina.dll).

However, according MSDN documentation, Winlogon will send an WLX_WM_SAS
message with the wParam set to WLX_SAS_TYPE_CTRL_ALT_DEL, to the top most
dialog box which has the focus.  Assuming this is the case I need to be able
to capture and process this message.  The only way I can see of achieving
this is to override / subclassing the WinProc for the TCustomSASNoticeForm.
I assume this is the correct method, however I don't seem to see any such
messages being sent.

Code Snipet:


void __fastcall TCustomSASNoticeForm::WndProc(Messages::TMessage &Message)
{
   switch (Message.Msg)
   {
      case WLX_WM_SAS            :  Caption = "WLX_WM Message recieved...";
                                                        break;
      case WM_MOUSEMOVE     :  Caption = "Mouse move message recieved...";

   }
   TForm::WndProc(Message);
}

Mouse move comes in fine but no other WLX_WM messages.  Does anyone have any
ideas?  As my assumptions correct and is my code for capturing these
messages correct?

Many thanks in advance,

Mike
Technical Details
Message-ID: <3ffe0272$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a212091b844eec5a,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-08 17:39:40 PST
Reply-To: "Mike Collins" <mikec@kr8.co.uk>
From: "Mike Collins" <mikec@kr8.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: GINA Development and message catching...
Date: Fri, 9 Jan 2004 01:35:36 -0000
Lines: 42
Organization: kr8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.2.78.34
Message-ID: <3ffe0272$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1073611378 81.2.78.34 (8 Jan 2004 17:22:58 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail