Help needed installing GinaStub example.

G

gregory_may

I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/d...en-us/vcsample98/html/vcsmpginastubsample.asp

Any help is greatly appreciated and much thanks given in advance. I am very
new to the Visual C++ environment, so I am hoping is something very silly
and easy to fix.



Here is what I have done:

1) Down load Visual Studio 6 examples from this url onto my WINDOWS XP
workstation:

http://www.microsoft.com/downloads/...60-6566-408F-9F11-EA2C80B8CAA0&displaylang=en

2) Unpacked the GinaStub from the help file.

3) Double clicked on the ginastub.dsp (Visual Studio 6 Project)

Visual Studio 2003 complains its an older visual studio and then asks me
to convert it to 2003

I hit "Yes"

4) Right Click on the solution and hit - "Build"

5) (A prompt asks me to save ginastub.sln) - I take the default and hit
"Save"

6) The following output is generated (looks good to me.):

Performing Makefile project actions

Microsoft (R) Program Maintenance Utility Version 7.10.3077

Copyright (C) Microsoft Corporation. All rights reserved.

cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D
WIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVE
R=0x0500 -D_MT -D_DLL -MDd ginastub.c

ginastub.c

c:\installs\ctrl_alt_delete\sdk_winbase_security_winnt_ginastub\sdk_winbase_
security_winnt_ginastub\ginastub.c(406) : warning C4715:
'WlxStartApplication' : not all control paths return a value

link /DEBUG:full /DEBUGTYPE:cv /INCREMENTAL:NO
/NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib ws2_32.lib
mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib
ginastub.obj -out:ginastub.dll -def:ginastub.def

Creating library ginastub.lib and object ginastub.exp

Build log was saved at
"file://c:\Installs\Ctrl_alt_Delete\sdk_WinBase_Security_WinNT_ginastub\sdk_
WinBase_Security_WinNT_ginastub\Debug\BuildLog.htm"

ginastub - 0 error(s), 1 warning(s)



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped

7) I then copy over the newly created ginastub.dll to a WINDOWS 2000 box
into the C:\WINNT\System32 directory

(According to: http://www.codeguru.com/mfc/comments/2574.shtml )

8) Add a registry entry (below) for GinaDll that points to "newgina.dll"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

9) Reboot!

10) I get a message that says "The Logon User Interface DLL newgina.dll
failed to load." - Click Reboot.

AHHHH... Time to fix things .........

11) Copy the original MSGINA.DLL to "newgina.dll" & reboot (Luckily my test
system has a dual boot option).

12) System now works as before (But still using the old gina.)



Does anyone know what I missed? Any ideas if its either the DLL or the
Install on my Win2k box?

g.
 
J

Jigar Mehta

Hye,
I have read your message.. I am a novice in NT services field but a VC
programmer from last two years..

So, I want to know what is this GINA.. I have opened the MSDN website
but could not download all samples because of my broken connection...

I want to know what is GINA.. If we want to extend functionality of GINA
then how can we do that!! I think the sample does the same.. Can you please
send me that GINA sample only (through attachment on my e-mail address -
(e-mail address removed))..

I want to step up in Windows NT services now.. Thank you!!

Jigar mehta
(e-mail address removed)
----------------------------------------------------------------------

"gregory_may" <None> wrote in message
I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/
html/vcsmpginastubsample.asp

Any help is greatly appreciated and much thanks given in advance. I am very
new to the Visual C++ environment, so I am hoping is something very silly
and easy to fix.



Here is what I have done:

1) Down load Visual Studio 6 examples from this url onto my WINDOWS XP
workstation:

http://www.microsoft.com/downloads/details.aspx?FamilyId=AF0A6060-6566-408F-
9F11-EA2C80B8CAA0&displaylang=en

2) Unpacked the GinaStub from the help file.

3) Double clicked on the ginastub.dsp (Visual Studio 6 Project)

Visual Studio 2003 complains its an older visual studio and then asks me
to convert it to 2003

I hit "Yes"

4) Right Click on the solution and hit - "Build"

5) (A prompt asks me to save ginastub.sln) - I take the default and hit
"Save"

6) The following output is generated (looks good to me.):

Performing Makefile project actions

Microsoft (R) Program Maintenance Utility Version 7.10.3077

Copyright (C) Microsoft Corporation. All rights reserved.

cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D
WIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVE
R=0x0500 -D_MT -D_DLL -MDd ginastub.c

ginastub.c

c:\installs\ctrl_alt_delete\sdk_winbase_security_winnt_ginastub\sdk_winbase_
security_winnt_ginastub\ginastub.c(406) : warning C4715:
'WlxStartApplication' : not all control paths return a value

link /DEBUG:full /DEBUGTYPE:cv /INCREMENTAL:NO
/NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib ws2_32.lib
mswsock.lib advapi32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib
ginastub.obj -out:ginastub.dll -def:ginastub.def

Creating library ginastub.lib and object ginastub.exp

Build log was saved at
"file://c:\Installs\Ctrl_alt_Delete\sdk_WinBase_Security_WinNT_ginastub\sdk_
WinBase_Security_WinNT_ginastub\Debug\BuildLog.htm"

ginastub - 0 error(s), 1 warning(s)



---------------------- Done ----------------------

Build: 1 succeeded, 0 failed, 0 skipped

7) I then copy over the newly created ginastub.dll to a WINDOWS 2000 box
into the C:\WINNT\System32 directory

(According to: http://www.codeguru.com/mfc/comments/2574.shtml )

8) Add a registry entry (below) for GinaDll that points to "newgina.dll"

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

9) Reboot!

10) I get a message that says "The Logon User Interface DLL newgina.dll
failed to load." - Click Reboot.

AHHHH... Time to fix things .........

11) Copy the original MSGINA.DLL to "newgina.dll" & reboot (Luckily my test
system has a dual boot option).

12) System now works as before (But still using the old gina.)



Does anyone know what I missed? Any ideas if its either the DLL or the
Install on my Win2k box?

g.
 
G

gregory_may

Do I need to use regsvr32 on the new MyGinaDLL?

g.

gregory_may said:
I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/d...en-us/vcsample98/html/vcsmpginastubsample.asp

Any help is greatly appreciated and much thanks given in advance. I am very
new to the Visual C++ environment, so I am hoping is something very silly
and easy to fix.



Here is what I have done:

1) Down load Visual Studio 6 examples from this url onto my WINDOWS XP
workstation:

http://www.microsoft.com/downloads/...60-6566-408F-9F11-EA2C80B8CAA0&displaylang=en

2) Unpacked the GinaStub from the help file.

3) Double clicked on the ginastub.dsp (Visual Studio 6 Project)

Visual Studio 2003 complains its an older visual studio and then asks me
to convert it to 2003

I hit "Yes"

4) Right Click on the solution and hit - "Build"

5) (A prompt asks me to save ginastub.sln) - I take the default and hit
"Save"

6) The following output is generated (looks good to me.):

Performing Makefile project actions

Microsoft (R) Program Maintenance Utility Version 7.10.3077

Copyright (C) Microsoft Corporation. All rights reserved.
cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVE
 
G

gregory_may

For my purpouse GINA handles logon/logoff and the Ctrl-Alt-Del sign on
sequence. I need to modify this. If you really want to mess around with
this, I can send you the code from the link below.

Its not a service though. Its more of a hook (I think 14 functions in the
GINA DLL) that can be modified to alter the way Logon/Logoff works.

g.

Jigar Mehta said:
Hye,
I have read your message.. I am a novice in NT services field but a VC
programmer from last two years..

So, I want to know what is this GINA.. I have opened the MSDN website
but could not download all samples because of my broken connection...

I want to know what is GINA.. If we want to extend functionality of GINA
then how can we do that!! I think the sample does the same.. Can you please
send me that GINA sample only (through attachment on my e-mail address -
(e-mail address removed))..

I want to step up in Windows NT services now.. Thank you!!

Jigar mehta
(e-mail address removed)
----------------------------------------------------------------------

"gregory_may" <None> wrote in message
I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/
html/vcsmpginastubsample.asp

Any help is greatly appreciated and much thanks given in advance. I am very
new to the Visual C++ environment, so I am hoping is something very silly
and easy to fix.



Here is what I have done:

1) Down load Visual Studio 6 examples from this url onto my WINDOWS XP
workstation:

http://www.microsoft.com/downloads/details.aspx?FamilyId=AF0A6060-6566-408F-
9F11-EA2C80B8CAA0&displaylang=en

2) Unpacked the GinaStub from the help file.

3) Double clicked on the ginastub.dsp (Visual Studio 6 Project)

Visual Studio 2003 complains its an older visual studio and then asks me
to convert it to 2003

I hit "Yes"

4) Right Click on the solution and hit - "Build"

5) (A prompt asks me to save ginastub.sln) - I take the default and hit
"Save"

6) The following output is generated (looks good to me.):

Performing Makefile project actions

Microsoft (R) Program Maintenance Utility Version 7.10.3077

Copyright (C) Microsoft Corporation. All rights reserved.
cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVE
 
G

gregory_may

Maybe I need to compile this on my Win2K Test box insted of my WinXP box?

?????
Still stumped.

g.
gregory_may said:
I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/d...en-us/vcsample98/html/vcsmpginastubsample.asp

Any help is greatly appreciated and much thanks given in advance. I am very
new to the Visual C++ environment, so I am hoping is something very silly
and easy to fix.



Here is what I have done:

1) Down load Visual Studio 6 examples from this url onto my WINDOWS XP
workstation:

http://www.microsoft.com/downloads/...60-6566-408F-9F11-EA2C80B8CAA0&displaylang=en

2) Unpacked the GinaStub from the help file.

3) Double clicked on the ginastub.dsp (Visual Studio 6 Project)

Visual Studio 2003 complains its an older visual studio and then asks me
to convert it to 2003

I hit "Yes"

4) Right Click on the solution and hit - "Build"

5) (A prompt asks me to save ginastub.sln) - I take the default and hit
"Save"

6) The following output is generated (looks good to me.):

Performing Makefile project actions

Microsoft (R) Program Maintenance Utility Version 7.10.3077

Copyright (C) Microsoft Corporation. All rights reserved.
cl -Zi -Od -DDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVE
 
G

Gary Chang

Hi gregory_may,

Thanks for you posting in the group!

I am regret that the GinaStub sample project(on MSDN) is somehow not a
valid DLL application, it even doesn't have an entrypoint function(DllMain)
and probably something wrong with its build setting.

I suggest you can try another Gina.dll example on the WWW.CodeProject.com:
http://www.codeproject.com/useritems/GINA_SPY.asp?target=gina


Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Third-Party Link Disclaimer

This response contains a reference to a third-party World Wide Web site.
Microsoft is providing this information as a convenience to you. Microsoft
does not control these sites and has not tested any software or information
found on these sites; therefore, Microsoft cannot make any representations
regarding the quality, safety, or suitability of any software or
information found there. There are inherent dangers in the use of any
software found on the Internet, and Microsoft cautions you to make sure
that you completely understand the risk before retrieving any software from
the Internet.
 
G

gregory_may

I can actually compile & install this example. Amazing. A Huge step in the
right direction.

THANKS!!!

g.
 
Top