Article View: borland.public.cppbuilder.nativeapi
Article #3154Re: Windows Language dectection
From: Mike Collins
Date: Wed, 23 Aug 2006 10:46
Date: Wed, 23 Aug 2006 10:46
51 lines
3520 bytes
3520 bytes
Sorry for my vagueness - it just didn't seem relevant at the time so I didn't want to complicate the topic. As you will probably know from my previous posts I do have a GINA based project and application. The point at which I'm enumerating the desktop windows is from with a gina-stub so it effectively has access to the winlogon desktop and thus the dialogs. There are certain situations where the system / winlogon does respond to the SAS notification (C+A+D or custom) - for example, if you have the logon prompt displayed and you press C+A+D nothing happens. However there are certain circumstances within our product where I need to force the closing of this dialog. This is just a very tiny aspect of the overall product. I could explain the full extent of this but I'd be here for ages and it would disclose the full workings of our product :-( - I'm happy to do this in a private e-mail if your really interested... Suffice to say, the only way I can find of closing this dialog is to enum the windows, get the handle of the dialog and then post a message to it. The English version works fine because I know the caption to look for. However I have key issues when the product is deployed on systems with alternative languages. My basic thinking is to check the LCID and then I know what string to look for. This is the basic idea but it is proving more problematic than I though. DO you have any suggestions or pointers on the best or easiest course of action here? Many thanks again, if you need my e-mail it's on the BCBjournal web site. Mike C "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:44eb85db$1@newsgroups.borland.com... > > "Mike Collins" <its@TheBottomOfThePost.com> wrote in message > news:44eb4515@newsgroups.borland.com... > >> i'm trying to identify the Logon dialog i.e. "Log On to Windows" > > I'm curious as to why. One thing to keep in mind is that on NT-based > systems, that dialog is controlled on a completely separate workstation > and > desktop then the one the logged-in user interacts with. Also, that dialog > is controlled by the GINA system. What EXACTLY are you trying to do with > the dialog? If you want to customize the dialog, you would have to write > your own GINA DLL. If you are just trying to detect whether the dialog is > visible, it is easier to check if the "WinLogon" desktop is active > instead. > > > Gambit > >
Technical Details
Message-ID:
<44ec31fa@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.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-mailReferences:
<44eaf27f$1@newsgroups.borland.com> <44eb4100$3@newsgroups.borland.com> <44eb4515@newsgroups.borland.com> <44eb85db$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,50732d84fb8b07f6 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44eaf27f$1@newsgroups.borland.com> <44eb4100$3@newsgroups.borland.com> <44eb4515@newsgroups.borland.com> <44eb85db$1@newsgroups.borland.com> Subject: Re: Windows Language dectection Date: Wed, 23 Aug 2006 11:46:15 +0100 Lines: 53 Organization: SDA Ltd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.2663 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 NNTP-Posting-Host: 81.2.92.14 Message-ID: <44ec31fa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1156329978 81.2.92.14 (23 Aug 2006 03:46:18 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.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