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.
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.