G
Guest
Hi,
I am trying to restore the registry after a cold boot to avoid having to
align the screen, set the region etc, and having searched this site and
google groups, I am trying to use the RegFlushKey API call. This does not
seem to work on an XDA 2 running Pocket PC 2003, as after a cold boot the
screen alignment and set region screens still appear.
Also should a file be created when I call the RegFlushKey method ? As this
is not happening.
Thank you in advance for any information regarding this problem.
Here is an example of the API call and code that I am trying to use :
[DllImport("coredll.dll", EntryPoint="RegFlushKey", SetLastError=true)]
private static extern uint RegFlushKey(uint hKey);
public static void FlushRegKey(uint hKey)
{
try
{
long test = RegFlushKey(0x80000002);
}
catch (Exception ex)
{
string mess = ex.Message;
}
}
I am trying to restore the registry after a cold boot to avoid having to
align the screen, set the region etc, and having searched this site and
google groups, I am trying to use the RegFlushKey API call. This does not
seem to work on an XDA 2 running Pocket PC 2003, as after a cold boot the
screen alignment and set region screens still appear.
Also should a file be created when I call the RegFlushKey method ? As this
is not happening.
Thank you in advance for any information regarding this problem.
Here is an example of the API call and code that I am trying to use :
[DllImport("coredll.dll", EntryPoint="RegFlushKey", SetLastError=true)]
private static extern uint RegFlushKey(uint hKey);
public static void FlushRegKey(uint hKey)
{
try
{
long test = RegFlushKey(0x80000002);
}
catch (Exception ex)
{
string mess = ex.Message;
}
}