473,320 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Help needed installing GinaStub example.

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

http://msdn.microsoft.com/library/de...stubsample.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/d...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_w innt_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_W inNT_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.
Nov 17 '05 #1
6 4228
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 -
jb*******@yahoo.co.in)..

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

Jigar mehta
jb*******@yahoo.co.in
----------------------------------------------------------------------

"gregory_may" <None> wrote in message
news:#1**************@tk2msftngp13.phx.gbl...
I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/de...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/d...060-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_w innt_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_W inNT_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.


Nov 17 '05 #2
Do I need to use regsvr32 on the new MyGinaDLL?

g.

"gregory_may" <None> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/de...stubsample.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/d...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_w innt_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_W inNT_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.

Nov 17 '05 #3
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" <jb*******@yahoo.co.in> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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 -
jb*******@yahoo.co.in)..

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

Jigar mehta
jb*******@yahoo.co.in
----------------------------------------------------------------------

"gregory_may" <None> wrote in message
news:#1**************@tk2msftngp13.phx.gbl...
I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/de...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/d...060-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_w innt_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_W inNT_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.

Nov 17 '05 #4
Maybe I need to compile this on my Win2K Test box insted of my WinXP box?

?????
Still stumped.

g.
"gregory_may" <None> wrote in message
news:%2******************@tk2msftngp13.phx.gbl...
I am dying trying to get the GinaStub example to work at:

http://msdn.microsoft.com/library/de...stubsample.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/d...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_w innt_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_W inNT_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.

Nov 17 '05 #5
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...sp?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.

Nov 17 '05 #6
I can actually compile & install this example. Amazing. A Huge step in the
right direction.

THANKS!!!

g.
"Gary Chang" <v-******@online.microsoft.com> wrote in message
news:fx**************@cpmsftngxa07.phx.gbl...
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...sp?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.

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: svenn.are | last post by:
Hi, I wanted to run a program that is written in PyQt on my mac, and went over to Riverbank to get PyQ 3.13 and SIP 4.1.1 sources. I followed the installation guide except for the compiling...
2
by: Daniel | last post by:
Ok folks, I have Windows XP. I installed .Net and developed some VB.Net components that I want to use in ASP.Net applications. At this point I realized I didn't have IIS installed on my XP...
1
by: Schwang | last post by:
Iam trying to use Fingerprint as authentication mechanism. I use GinaStub way to change the User-Interface and authentication mechanism. I referred to testhim code from codepremium for this...
3
by: jaggi | last post by:
Hi all, I downloaded DB2 enterprise edition from partnerworld on ibm.com and unzipped and untarred it and copied it to CD and tried installing on AIX using SMIT. I am getting errors while...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting list. But there isn't any information available...
3
by: Scott | last post by:
I am trying to convert a RTF File to a Post Script file to be sent to the printer. I can write this program in either C# or VB.NET. Please help.. Thank you, Scott.
15
by: DavidS | last post by:
Have Visual Studio.NET installed on MS 2000 Professional OS laptop. No issue ever with web development and SQL connections. Purchased new laptop with XP Professional SP2!!!!!!!! & Visual...
5
by: ray well | last post by:
hi, are reboots needed after installing mdac ? are reboots needed after installing .net framework? i'm planning out an install, and need to know what to expect. thanks,
0
by: Jack Wu | last post by:
Hi I've spent a good majority of my day trying to figure out how to have PIL 1.1.5 working on my OSX 10.3.9_PPC machine. I'm still stuck and I have not gotten anywhere. Could somebody please...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.