Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Write a  function for updating LKGC

Posted on 1998-12-11
5
Medium Priority
?
225 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 80 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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

670 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