🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TCppWebBrowser + LOCAL_SYSTEM account

#3642
From: Remy Lebeau (TeamB)
Date: Wed, 10 May 2006 17:01
29 lines
2202 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message
news:4461b277@newsgroups.borland.com...

> As for the Win32 api MessageBox, there are some issues using -
> winlogon provides a wrapper for it, WlxMessageBox but my form
> can't see this wrapper or the WinlogonFunctions from the point
> where the expection is being generated.

Yes, it can.  Simply include Winwlx.h into the form's code and then call
WlxMessageBox() like any other function.  The only thing you have to watch
out for is that you have to provide the WinLogon handle that is passed to
your GINA's WlxInitialize() function, so you will have to store that handle
somewhere that the rest of your code can reach it when needed.

> Also, as a closing point (and showing my lack of knowledge) what is
> the best way to report the exception when you capture it with catch (...)?

That is up to your own preferences.  If you can't, or don't want to, use the
GUI for it, such as a MessageBox(), then save the information to a file
instead.

Oh, BTW, I just noticed the following blurb on MSDN, so you might want to
keep that in mind for future development of your project:

    "GINA DLLs are ignored in Windows Vista."


Gambit
Technical Details
Message-ID: <44621e0b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4460d27d$1@newsgroups.borland.com> <4460ea6b@newsgroups.borland.com> <4461b277@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d67fc4a2c4ab8bd3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4460d27d$1@newsgroups.borland.com> <4460ea6b@newsgroups.borland.com> <4461b277@newsgroups.borland.com>
Subject: Re: TCppWebBrowser + LOCAL_SYSTEM account
Date: Wed, 10 May 2006 10:01:21 -0700
Lines: 31
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: 68.69.17.41
Message-ID: <44621e0b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147280907 68.69.17.41 (10 May 2006 10:08:27 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail