Solved

Write a  function for updating LKGC

Posted on 1998-12-11
5
211 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
  • 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now