Solved

Write a  function for updating LKGC

Posted on 1998-12-11
5
222 Views
Last Modified: 2013-12-28
Can anybody help me to write a function for updating the last known good configuration on NT
0
Comment
Question by:shajeer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:onehouse
ID: 1795776
Im not really sure what you mean...but the last good... is invoked by pressing "Space bar" wich you probably allready know...
Although...If the system boots but something isn't working right although the system boots up kinda normaly...then there is no way to use the last good mode.. because the computer thinks that the computer is working great...so the last good mode will be..........get the point.?
I guess this didn't answer your cuestion.......hmmm
What really do you mean by function ?.....Swedish is my first language...sorry...
L8er....:)
0
 

Author Comment

by:shajeer
ID: 1795777
I know last known good menu is loading the registry setting that was marked as good. As we know the HKEY_LOCAL_MACHINE\System\Select key stores the details of good, changed and failed configurations. So when we press the space bar during bootup, what really happens is that, The select  key is opened and the value of LKGC is taken.Let this value be '1'. Then currentcontrol set ending with 1 is opened. That is currentcontrolSet001 is opened and the all the keys stored in this hive is copied into the CurrentControlSet. I want write a function which can copy the contents of one hive to another,without having anyuser security and privelege problems.
0
 

Expert Comment

by:mkthakur
ID: 1795778
I am also interested in knowing this. This is in fact GINA's responsibility. As far as I know the whole registry hive ControlSet00X where X is pointed by Lastknowngood under the HKEY_LOCAL_MACHINE->SYSTEM->Select should be replaced by Clone hive under HKEY_LOCAL_MACHINE->SYSTEM for each successful logon.
The security problem will come into picture while updating the registry keys.
If anybody knows how the microsoft has incorporated into its MSGINA.DLL.
My email id : mkthakur@hotmail.com
0
 

Accepted Solution

by:
mkthakur earned 20 total points
ID: 1795779
Please use
NotifyBootConfigStatus(TRUE) to update the LKGC.


0
 

Author Comment

by:shajeer
ID: 2330396
Yes this api works fine
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question