Getting Device Power State using Windbg Extension

Hi All,
I want to develop an application and debugger extension to get the current power state of my device. I know in the application side, p can use the SetupAPI to get the current power state of the device. I want to accomplish the same using WinDbg extension.
Can i use the SetupApi in Winfdbg extension? If not, what is the other way to do that?
Thanks in advance.

SetupAPI can be called from windbg extension, but it will act on the host (debugger) side - not what you expect.
The power state of the device is in device_object-> _DEVOBJ_EXTENSION -> _DEVICE_OBJECT_POWER_EXTENSION.State field.
(this is undocumented secret, so don't tell anyone!)
-- pa

Similar Messages

  • Driver Power State Failure in Windows 8.1

    hi ,
    Can some one please help me for the given Error "
    Driver Power State Failure in Windows 8.1 Enterprise Edition.
    Earlier in my Laptop (HP envy j109 ) windows 8.1 single language edition was installed, i have just update this window with fresh installation 8.1 Enterprise Edition, 
    After successfully installation and activation getting "
    Driver Power State Failure 
    error, I have installed more thn 5 times, but problem is still there. 
    Please help me
    how can i share minidump file. plz let me know.
    [email protected]

    We do need the actual DMP file as they contain the only record of the sequence of events leading up to the crash, what drivers were loaded, and what was responsible.  
    We prefer at least 2 DMP files to spot trends and confirm the cause.
    Please follow our instructions for finding and uploading the files we need to help you fix your computer. They can be found here
    If you have any questions about the procedure please ask
    If you are using Blue screen view, who crashed, or a similar application, don't.  They are wrong at least as often as they are correct
    Wanikiya and Dyami--Team Zigzag

  • Ipw3945: power/state file missing!

    hello!
    after upgrading to the new 2.6.19 kernel-suspend2 and the new ipw3945-suspend2-1.1.2 driver i can't switch the power-states of the interface, because the file /sys/class/net/wlan/device/power/state is missing!
    so, how can i change the states from now on or is this a bug?
    mfg iggy

    no, iwconfig power is not for that!

  • 4G iphone how to get device "known"

    Hello,
    We just received a replacement phone but apparently no apple care provided, needing assistance getting device "known" to use. Already charged and put in old sim card, re-started, .....?

    Contact your carrier.

  • Cannot get new token due to device offline state. Id error 40760

    Hi,
    I have a Blackberry Curve 9380 
    i can't go in my app world, the message says: Cannot get new token due to device offline state id error 40760
    what should i do?
    btw, i'm french
    thanks!

    Hi and Welcome to the Community!
    With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive to your Messages app
    2) Resend Service Books
    KB02830 Send the service books for the BlackBerry Internet Service
    Please wait for "Activation" Messages, one per already configured email account, to arrive in your Messages. If you have no already configured email accounts, please wait 1 hour.
    3) Reboot
    With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    If not, then please try this sequence:
    1) Remove AppWorld from your BB
    KB10040 How to view or remove installed applications on a BlackBerry smartphone
    If it requests that you reboot the BB, do so
    2) Do a Batt-Pull reboot (power on, remove battery, wait, insert battery, wait), even if redundant to the one you did in step 1.
    3) Install (on your BB) a fresh copy of AppWorld
    http://blackberry.com/appworld/download
    Again, if it requests to reboot, do so.
    4) Do another Batt-Pull reboot
    5) See if it now works.
    Otherwise, you should contact your mobile service provider for formal support.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Klaptop using /proc/acpi/sleep instead of /sys/power/state

    This is a problem in kde since it disables most of the features of klaptop. In other words for me at-least kde cpu frequency scaling, standby, suspend do not work through klaptop since it seems to use /proc/acpi/sleep instead of /sys/power/state which is the only thing available in the new kernel. I am not sure if this is a kde problem, my kernel problem, or just simply my particular problem.
    Is there a way to fix this.
    Thanks for the help,
    Matt

    It also seems kde is not reading the current cpu frequency correctly. It seems to use/proc/cpuinfo instead of /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq to get the current frequency. In addition when clicking setup helper applications under ACPI Config in klaptop I get:
    The /opt/kde/bin/klaptop_acpi_helper application does not seem to have the same size or checksum as when it was compiled we do NOT recommend you proceed with making it setuid-root without further investigation
    Are other people having these problems as well or is this unique to me.

  • Error cannot get new token due to device offfline state

    I cant download any app from appworld or even cant access into Myworld. Its says "Cannot get new token due to device offline state.(Error id:40760)"
    i reinstalled the appworld but its the same thing happening.Besides i have reset my BBID pasword through email as i forgot that. when i try to access in my mobile's bbid it says"Unable to update Blackberry ID account informtion while offline".
    it seems smthing wrong with the "offline state".Actually whats this thing?. i am using curve 9300 without BES or BIS but with the normal edge internet enabaling apn settings for five months.every thing was fine.but this problem is occuring for two days.my browser and other installed apps working fine but not the appworld.Please Help me....................

    Hi,
    I have the same problem, cant download any app from appworld or even cant access into Myworld. Its says "Cannot get new token due to device offline state.(Error id:40760)"
    I am using Bold 9700  without BES or BIS but with the normal edge internet enabaling apn settings for five months.every thing was fine. But this problem is occuring for two days.my browser and other installed apps working fine but not the appworld.Please Help me....................

  • Device gets turned off when using data on mobile

    device gets turned off when using data on mobile... and not responding,i.e., if we hold the power button also there was no response,not getting on... when I connect it to charger,after 10min it gets automatically turning on.otherwise no chance to use the device..sometimes it gets off at 25%, sometimes at even 72% battery...seems it might be a severe problem..please suggest a solution..

    This might help:
    http://helpblog.blackberry.com/2013/02/restart-blackberry-z10/

  • Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please

    Is there a way to get around the pop up, "this device is already associated with an Apple ID. You can download past purchases on this device with just one Apple ID every 90 days. This device can be used with another Apple ID in 13 days."Someonehelp please!

    What exactly are you trying to do?

  • How to get application's state on weblogic server using jmx.

    I want to get application state using JMX, I am able to get application list, name but not able to find its state. Some code snippet mentioned below. Please let me know if I can use some other MBean
    Thanks in advance..
    static {
    try {
    service = new ObjectName("com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean");
    }catch (MalformedObjectNameException e) {
    throw new AssertionError(e.getMessage());
    * Initialize connection to the Domain Runtime MBean Server
    public static void initConnection(String hostname, String portString, String username, String password) throws IOException, MalformedURLException
    String protocol = "t3";
    int port = Integer.parseInt(portString);
    String jndiroot = "/jndi/";
    String mserver = "weblogic.management.mbeanservers.domainruntime";
    JMXServiceURL serviceURL= new JMXServiceURL(protocol,hostname, port, jndiroot+mserver);
    // JMXServiceURL serviceURL = new JMXServiceURL(protocol, hostname, portString, jndiroot , mserver);
    Hashtable h = new Hashtable();
    h.put(Context.SECURITY_PRINCIPAL, username);
    h.put(Context.SECURITY_CREDENTIALS, password);
    h.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
    "weblogic.management.remote");
    connector = JMXConnectorFactory.connect(serviceURL, h);
    connection = connector.getMBeanServerConnection();
    * Get an array of ServerRuntimeMBeans
    public static ObjectName[] getServerRuntimes() throws Exception {
    return (ObjectName[]) connection.getAttribute(service,
    "ServerRuntimes");
    * Get an array of WebAppComponentRuntimeMBeans
    public void getApplicationData() throws Exception {
    ObjectName[] serverRT = getServerRuntimes();
    int length = (int) serverRT.length;
    for (int i = 0; i < length; i++) {
    ObjectName[] appRT =
    (ObjectName[]) connection.getAttribute(serverRT,
    "ApplicationRuntimes");
    int appLength = (int) appRT.length;
    for (int x = 0; x < appLength; x++) {
    System.out.println("Application name: " +
    (String)connection.getAttribute(appRT[x], "Name")+"Application Status"+(String)connection.getAttribute(appRT[x], "State"));
    public static void main(String[] args) throws Exception {
    String hostname = "*****.us.oracle.com";
    String portString = "*****";
    String username = "***";
    String password = "****";
    JMXUtil s = new JMXUtil();
    initConnection(hostname, portString, username, password);
    s.getApplicationData();
    connector.close();

    register at elicense.bea.com and ask there.
    but, a license is a license, as long as the ipaddr is not restricted.
    Wayne
    Bora wrote:
    I downloaded an Evaluation copy from BEA but it expires in 30 days. The place I
    work has licenses for HPUX but I need to have a copy on my laptop for development
    & test.
    Thanks for help!
    Sincerely
    Bora

  • When trying to install an extension for InDesign CC 2014 I get an error message saying that the extension only works with version 7.0 or greater. My version is 10.0.0.7 x64 Build I was using this extension fine with InDesign CC

    When trying to install an extension for InDesign CC 2014 I get an error message saying that the extension only works with version 7.0 or greater. My version is 10.0.0.7 x64 Build I was using this extension fine with InDesign CCError message with InDesign CC 2014

    Used the 64bit version before CC 2014 as well so don't think that's the issue. Here is the text in the .mxi file if I have missed something:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <macromedia-extension id="PrintUI Tools" name="PrintUI Tools" requires-restart="true" version="3.0.0">
      <author name="PrintUI.com"/>
      <description/>
      <license-agreement/>
      <products>
        <product maxversion="" name="InDesign" primary="true" version="7.0"/>
      </products>
      <files>
        <file destination="" file-type="CSXS" products="" source="PrintUIManagement.zxp"/>
      </files>
      <update url="http://printui.com/public/downloads/updates/printui_tools_update.xml"/>
    </macromedia-extension>

  • I have a JVC video camera and it records the video to a .mod format (which Apple devices don't support). I figured out how to get them to iPhoto using iMovie but I want to be able to get the videos on my iPad 2 but it won't let it sync. Any help?

    I have a JVC video camera and it records the video to a .mod format (which Apple devices don't support). I figured out how to get them to iPhoto using iMovie but I want to be able to get the videos on my iPad 2 but it won't let it sync. Any help?

    Thanks for that. Much more constructive than the last comment. It's only the restriction code I can't recall, not the access passcode. So I can currently access the device, just not age restricted content. Does that's make a difference? I also wondered if anyone knew how many attempts you get to try to get it right. Now tried 21 times and so far nothing bad has happened but I am concerned I'll eventually be completely locked out of the device. That doesn't seem in the spirit of things though. Surely it's foreseeable that a child could repeatedly try to guess the code so I can't see that it would be right to lock the device down completely in that circumstance, particularly if the access code is being typed in correctly every time.
    Thanks

  • Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement: there has been an error occurred while connecting to Apple's online store try again

    Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement:
    there has been an error occurred while connecting to Apple's online store try again

    Best I have been trying for a week to order greeting cards using iPhoto but do I always get the same statement:
    there has been an error occurred while connecting to Apple's online store try again

  • My ipad wont turn on it stops at the apple logo and i get little white wording that says this device is not using requires_boot_connect_on_reset

    My ipad wont turn on it stops at the apple logo and i get little white wording that says this device is not using requires_boot_connect_on_reset. Not sure what is going on. also says appleBCMWLANBusInterfaceHTSIC reset chip

    Try the following:
    1. Reset
    Hold the Sleep and Home button down until you see the Apple logo
    2. Restore:
    http://support.apple.com/kb/HT1414
    3. Recovery:
    http://support.apple.com/kb/HT1808

  • HT1386 after i updraded tio ios 6 I get a message " this device cannot be used because the service is not started"

    after i updraded to ios 6 i get a message that my device canot be used because the service is not started

    Is this what you mean...
    AMDS for Mac  >  http://support.apple.com/kb/ht1747
    AMDS for Windows  >  http://support.apple.com/kb/TS1567

Maybe you are looking for

  • How can I select a smaller font for all components of a Swing application?

    The default size of font in Java Look and Feel is 12, how can I change it to 10 globally for my Swing application ? Thanks for your help. Helen

  • Report Painter: How to add new(customer specific) field to CCSS table

    Dear Experts, We have requirement to display the orders based on Profit center or Profit center groups in report painter. So in report library(6O1), we want to add fieild PRCTR or any customer specific field(ZPRCTR) to CCSS table. Could you please le

  • Using special characters

    How do you enter special characters (such as curved quotes) in a headline that is in caps? I have tried using the formula "alt +) or alt + Shift + ) and get no result. If I do the same in a paragraph of regular text, it works. Thanks.

  • RMAN clone - only subset of data

    I have a requirement to clone the Production to Test database with the minimum size (subset of data). Can some one help me how to extract only subset of data from prod ?

  • Forum Failure (for me)

    I've been using the forum for a few days, but it has been difficult. At least half the time when I click on something, I get: [quote]ERROR: Read Error. The server has reset the connection.[/quote] It seems to come in waves. When it happens, the forum