[prev in list] [next in list] [prev in thread] [next in thread]
List: pgina-devel
Subject: Re: [pGina-devel] Displaying custom SAS Notice Dialog
From: Nathan Yocom <nate () pgina ! org>
Date: 2007-11-01 4:58:48
Message-ID: 47295D08.2030105 () pgina ! org
[Download RAW message or body]
Glad to hear you got it working ;) It'd be cool to have a custom SAS for
pGina (optionally) - but I've never bothered... Patches welcome and
encouraged.
Glad pGina has proven useful.
Nate
Chris Duran wrote:
> Please disregard this last post. I was testing with an old pGina.dll
> that did not have this change. DOH!
>
>
>
> FYI, this code does work to display a custom SAS notice dialog. Just
> remember to set the System Menu option to false for the dialog
> properties or else your system will be hosed. (good thing for virtual
> machinesJ)
>
>
>
> ------------------------------------------------------------------------
>
> *From:* pgina-devel-bounces@lists.sourceforge.net
> [mailto:pgina-devel-bounces@lists.sourceforge.net] *On Behalf Of *Chris
> Duran
> *Sent:* Wednesday, October 31, 2007 10:24 AM
> *To:* pgina-devel@lists.sourceforge.net
> *Subject:* [pGina-devel] Displaying custom SAS Notice Dialog
>
>
>
> I am trying to display a custom SAS Notice dialog prompting the user to
> press Ctrl-Alt-Del. I have modified WlxDisplaySASNotice in wlxFuncs.c
> and added a dialog proc in dialogs.c to handle showing the new dialog.
> However, the system still displays the MSGINA SAS Notice box.
>
>
>
> My first question is, since pGina is sitting on top of MSGINA is it
> possible to do this? I would think so.
>
>
>
> Secondly, I have provided the code that I tried. Am I missing anything?
> Note that I do not even see the debug in the event log. It doesn't seem
> like this WlxDisplaySASNotice method is ever being called when I log off
> or restart the machine.
>
>
>
>
>
> In wlxFuncs.c
>
>
>
> VOID
>
> WINAPI
>
> WlxDisplaySASNotice (PVOID pWlxContext)
>
> {
>
> //--Original-- pfWlxDisplaySASNotice(pWlxContext);
>
> PGinaContext pGinaContext=(PGinaContext)pWlxContext;
>
>
>
> EventLog(true,EVENTLOG_INFORMATION_TYPE,TEXT("-----
> WlxDisplaySASNotice --<BEGIN>--"));
>
>
>
> if(windowsVersion == WINDOWS_NT_4)
>
> {
>
>
> LOW32(DialogBox(pGinahInstance,MAKEINTRESOURCE(IDD_SASNOTICE),NULL,(DLGPROC)SASNoticeBoxProc));
>
>
> }
>
> else if(windowsVersion == WINDOWS_2000)
>
> {
>
>
> ((PWLX_DISPATCH_VERSION_1_3)g_pWinlogon)->WlxDialogBox(HGLOBALWLX,
>
> pGinahInstance,
>
> MAKEINTRESOURCEW(IDD_SASNOTICE),
>
> NULL,
>
> SASNoticeBoxProc);
>
> }
>
> else
>
> {
>
> EventLog(true,EVENTLOG_INFORMATION_TYPE,TEXT("-----
> WlxDisplaySASNotice -- starting SASNoticeBoxProc"));
>
>
> ((PWLX_DISPATCH_VERSION_1_4)g_pWinlogon)->WlxDialogBox(HGLOBALWLX,
>
> pGinahInstance,
>
> MAKEINTRESOURCEW(IDD_SASNOTICE),
>
> NULL,
>
> SASNoticeBoxProc);
>
> }
>
> }
>
>
>
> In dialogs.c:
>
>
>
> INT_PTR CALLBACK SASNoticeBoxProc(HWND hwndDlg, UINT message, WPARAM
> wParam, LPARAM lParam)
>
> {
>
> EventLog(true,EVENTLOG_INFORMATION_TYPE,TEXT("-----
> SASNoticeBoxProc --<BEGIN>--"));
>
> switch(message)
>
> {
>
> case WM_INITDIALOG:
>
> SetWindowLongPtr(hwndDlg,GWLP_USERDATA,(LONG)lParam);
>
> CenterWindow(hwndDlg);
>
> break;
>
> }
>
>
>
> EventLog(true,EVENTLOG_INFORMATION_TYPE,TEXT("-----
> SASNoticeBoxProc --<END>--"));
>
> return TRUE;
>
> }
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> pGina-Devel mailing list
> pGina-Devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pgina-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
pGina-Devel mailing list
pGina-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgina-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic