locked
not getting correct registry RRS feed

  • Question

  • Hi,

    I am checking Registry for backlight, I am getting "ACBrightness" and "Brightness" as nothing, even when  POWER_STATE is either D0 or D4.

    Any help?

    Code:

    Dim regBacklight As RegistryKey = Registry.CurrentUser.OpenSubKey("\ControlPanel\backlight", True)

    Thanks

    Friday, April 23, 2010 10:36 PM

Answers

  • Hi ,

    To Create/Read a registry value :

    Dim RegKey As RegistryKey = Registry.CurrentUser.CreateSubKey("ControlPanel\BackLight")
    Dim RegVal As Integer = CInt(RegKey.GetValue("ACTimeout"))
         

    let me know if it helps.

    Regards :MrAlshahawy


    Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helps
    • Marked as answer by warrentang Wednesday, April 28, 2010 4:58 AM
    Saturday, April 24, 2010 10:40 AM

All replies

  • Hi mukesh39,

    I looked for these two values in wm6.1 pro registry but I couldn't find them , What WM version you are testing ?


    Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helps
    Saturday, April 24, 2010 3:00 AM
  • Hi mukesh39,

    I looked for these two values in wm6.1 pro registry but I couldn't find them , What WM version you are testing ?


    Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helps


    Thanks ashraf for reply.

    Well, I am checking on Emulator WM6. Is registry for every mobile(WM5,WM 6 etc) is different from other?

     

    Saturday, April 24, 2010 10:14 AM
  • Hi ,

    To Create/Read a registry value :

    Dim RegKey As RegistryKey = Registry.CurrentUser.CreateSubKey("ControlPanel\BackLight")
    Dim RegVal As Integer = CInt(RegKey.GetValue("ACTimeout"))
         

    let me know if it helps.

    Regards :MrAlshahawy


    Please remember to mark the replies as answers if they help ,Don't forget to Vote the answer as Helpful if it helps
    • Marked as answer by warrentang Wednesday, April 28, 2010 4:58 AM
    Saturday, April 24, 2010 10:40 AM