Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Replacing msgina.dll?

 
   Windows (Home) -> Security Admin RSS
Next:  Computer Administrator has no permission.  
Author Message
andrewbb

External


Since: Aug 27, 2007
Posts: 4



(Msg. 1) Posted: Mon Aug 27, 2007 10:52 pm
Post subject: Replacing msgina.dll?
Archived from groups: microsoft>public>windowsxp>security_admin (more info?)

I'd like to perform some (what I hope is simple) functionality on the
initial Windows logon screen. On that initial screen is it possible
to:
1. listen for a particular keystroke
2. if that keystroke is hit, run a program and refresh the Windows
logon screen?


Will that require writing a new msgina.dll? Or is it possible to
implement in another way?
Back to top
Login to vote
Anteaus

External


Since: Nov 25, 2007
Posts: 16



(Msg. 2) Posted: Tue Aug 28, 2007 1:26 am
Post subject: RE: Replacing msgina.dll? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Logonui.exe supplies the graphics for the logon screen, and these can be
changed, but you cannot present additional dialogs or run code this way.

gina.dll provides authentication against various network services, and (I
think) can be made to show a customised UI. A complex business replacing it
though, especially without the original sourcecode.

Is your requirement to modify a multiuser domain logon, or simply to present
your own startup-dialog to a fixed useraccount? The latter can be achieved in
other easier ways.

"andrewbb@gmail.com" wrote:

> Will that require writing a new msgina.dll? Or is it possible to
> implement in another way?
Back to top
Login to vote
andrewbb

External


Since: Aug 27, 2007
Posts: 4



(Msg. 3) Posted: Tue Aug 28, 2007 1:37 pm
Post subject: Re: Replacing msgina.dll? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Interesting... I don't need to change the authentication mechanism so
maybe (hopefully) I won't have to write a custom gina.dll...


Is it possible to listen for a hotkey on the Windows Logon screen? It
doesn't have to display a UI, I just need to respond to the hotkey and
refresh the screen.


Or what's your idea on displaying a startup-dialog to a fixed
useraccount?
Back to top
Login to vote
Anteaus

External


Since: Nov 25, 2007
Posts: 16



(Msg. 4) Posted: Tue Aug 28, 2007 2:04 pm
Post subject: Re: Replacing msgina.dll? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Any hotkey-detector would have to run as a service since no user is logged-on
at that time. Also, I'm not sure it would be able to interact with the logon
desktop, which is deliberately protected against keyloggers, etc. Only way is
to try and see, I guess.

The fixed-useraccount workaround is to hook the userinit process. This is
done by supplying an alternative Userinit executable, in the Winlogon
registry key. Your executable then hands-over control to the standard
userinit.exe once it's done its stuff.

Beware that if your userinit replacement fails to run for any reason you
won't be able to start the computer, so do any experiments on a testbed, not
your main PC.

HKLM\Software\Microsoft\Windows NT\Winlogon
Userinit=C:\WINDOWS\system32\userinit.exe,

Note carefully the syntax, some Windows versions have two items separated by
a comma. In XP the comma is there but nothing follows it. I'm told you should
always leave the comma even when there is no second item.

A somewhat safer (experimentation-wise) but less secure alternative is to
hook the shell executable, normally explorer.exe

Since both of these run immediately after logon it's unfortunately too late
to change the user at this stage.

"andrewbb@gmail.com" wrote:

> Is it possible to listen for a hotkey on the Windows Logon screen? It
> doesn't have to display a UI, I just need to respond to the hotkey and
> refresh the screen.
>
> Or what's your idea on displaying a startup-dialog to a fixed
> useraccount?
>
Back to top
Login to vote
Steve Riley [MSFT]

External


Since: Aug 28, 2007
Posts: 6



(Msg. 5) Posted: Tue Aug 28, 2007 3:37 pm
Post subject: Re: Replacing msgina.dll? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andrew, help us understand the reasons behind your requirement. Why do you
need to refresh the screen?

--
Steve Riley
steve.riley RemoveThis @microsoft.com
http://blogs.technet.com/steriley
http://www.protectyourwindowsnetwork.com


<andrewbb RemoveThis @gmail.com> wrote in message
news:1188333451.656549.134710@r23g2000prd.googlegroups.com...
> Interesting... I don't need to change the authentication mechanism so
> maybe (hopefully) I won't have to write a custom gina.dll...
>
>
> Is it possible to listen for a hotkey on the Windows Logon screen? It
> doesn't have to display a UI, I just need to respond to the hotkey and
> refresh the screen.
>
>
> Or what's your idea on displaying a startup-dialog to a fixed
> useraccount?
>
Back to top
Login to vote
andrewbb

External


Since: Aug 27, 2007
Posts: 4



(Msg. 6) Posted: Tue Aug 28, 2007 4:25 pm
Post subject: Re: Replacing msgina.dll? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It's a hidden user account and profile. Both the user profile and
account are hidden from Windows until a hotkey is pressed. Then the
profile and account are restored to allow a normal login. A service
re-hides the account upon log off. A patent is pending on the process
and it's operational now, but I'd like the ability to login directly
from the Windows logon screen, rather than logging in as an
interactive user first.

The 2 issues are:
1. Listening for the hotkey. Registerhotkey from a service fails with
"This operation requires an interactive windows station", so I'll have
to find another way. From what I understand, winlogon.exe uses
RegisterHotkey for Ctrl+Alt+Del. How does it do this before an
interactive user is logged in?

2. Assuming I find a way to capture keystrokes, is it not possible to
refresh the logon screen?
Back to top
Login to vote
andrewbb

External


Since: Aug 27, 2007
Posts: 4



(Msg. 7) Posted: Wed Aug 29, 2007 4:40 pm
Post subject: Re: Replacing msgina.dll? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Some progress... the hotkey part was solved by starting a process in
the logon desktop session. But how do you refresh the logon screen?

Is there a function in winlogon or logonui that I can call? It seems
like msgina would need an interface to refresh the screen.




On Aug 28, 3:37 pm, "Steve Riley [MSFT]" <steve.ri... DeleteThis @microsoft.com>
wrote:
> Andrew, help us understand the reasons behind your requirement. Why do you
> need to refresh the screen?
>
> --
> Steve Riley
> steve.ri... DeleteThis @microsoft.comhttp://blogs.technet.com/sterileyhttp://www.protectyourwindowsnetwork.com
>
> <andre... DeleteThis @gmail.com> wrote in message
>
> news:1188333451.656549.134710@r23g2000prd.googlegroups.com...
>
>
>
> > Interesting... I don't need to change the authentication mechanism so
> > maybe (hopefully) I won't have to write a custom gina.dll...
>
> > Is it possible to listen for a hotkey on the Windows Logon screen? It
> > doesn't have to display a UI, I just need to respond to the hotkey and
> > refresh the screen.
>
> > Or what's your idea on displaying a startup-dialog to a fixed
> > useraccount?- Hide quoted text -
>
> - Show quoted text -
Back to top
Login to vote
Anteaus

External


Since: Nov 25, 2007
Posts: 16



(Msg. 8) Posted: Thu Aug 30, 2007 12:20 am
Post subject: Re: Replacing msgina.dll? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"andrewbb@gmail.com" wrote:

> A patent is pending on the process

In which case it seems rather disreputable to be asking us to provide free
help in what is basically an attempt to deny others the right to develop
similar software.

So, I told you a few things about similar code I'd written, thinking it
would be of help. But hey, why the hell should I? If you then go and patent
some part of that process or even 'the ideas behind it' I could end-up not
being able to use code that I'd written myself, and all because I was
[generous|stoopid] enough to help you.

Copyright is one thing, if I spend long hours writing code I have a right to
prevent others misusing my work. Patents are a different matter, though. They
are an ideas-denial mechanism, one which basically allows the person who
though of patenting that feature the right to deny use of it to others. Even
if the patent-holder has not the slightest idea how, nor the skills, to put
the idea into practice.

Nope. I am no open-source zealot, but I am convinced of one thing and that
is that software patents should never have been allowed. Sorry, no more help
from me on this one.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Sound in MSGina.dll (voice authentication) - Hello! I'm writing GINA.dll with voice logon. So I have a trouble - when the system starts at first time waveInGetNumDevs() returns 0 and waveInOpen() returns 2. How should I initialize my sound card or what should I do to be able to record voice before....

replacing MB&Processor with XP Pro. - I would like to replace my MB and processor and memory with a new board, Core Duo processor and faster ram. Can I do this without a complete reinstall of XP Pro and all my installed programs? I'm not familiar with using administrator rights etc. Can..

Installing/Replacing Laptop Hard Drive - Have had Dell Inspiron 600 laptop for three years and my hard drive failed. Won't even boot up. Get the message "Primary Hard Disk Drive not Found. Have a new WD 80gb hard drive to replace it. So how dow i get the computer to recognize the new h...

MagicFarm game - I found this game http://www.downloadpipe.com/games-entertainment-simulation/review-MagicFarm-1166435.html brilliant. I couldn't exactly say which feature I like most. But there are several things I'd like to mention: 1. I love the gameplay during one....

Share : how to convert DVD and video to iPhone,iPod,Zune,PSP - Share : how to convert DVD and video to iPhone,iPod,Zune,PSP Download it at [url=http://www.oursdownload.com/dvd-video-converter.html]click here [/url] Part 1:Convert DVD movie to iPhone, iPod touch/classic/video/nano, Zune, PSP, etc Part 2:Convert AVI,....
       Windows (Home) -> Security Admin All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
  Windows Forums
 Game Forums
 Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact