Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. Device Power Management

Device Power Management

Scheduled Pinned Locked Moved Hardware & Devices
questioncsssysadminwindows-adminhardware
13 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Ben Burnett

    Sorry, I should have made myself clearer. This is to be done programmatically. We would like to determine if a network interface can wake a machine. Also, we would like to give our user's the option to turn this on for any network adapter they may be using to route our application's traffic.

    Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

    modified on Monday, September 15, 2008 10:48 AM

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #4

    Take a look at the setupdi functions. They are how you can query device informaitonm from usermode.

    Morality is indistinguishable from social proscription

    B 1 Reply Last reply
    0
    • L Lost User

      Take a look at the setupdi functions. They are how you can query device informaitonm from usermode.

      Morality is indistinguishable from social proscription

      B Offline
      B Offline
      Ben Burnett
      wrote on last edited by
      #5

      I actually have an implementation that uses those functions; unfortunately, they are not all necessarily supported on Windows 2000: it depends on how up-to-date the machine is. Sorry, I'm just making this really difficult :) (It's not intentional, however; it just our current predicament.)

      Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

      L 1 Reply Last reply
      0
      • B Ben Burnett

        I actually have an implementation that uses those functions; unfortunately, they are not all necessarily supported on Windows 2000: it depends on how up-to-date the machine is. Sorry, I'm just making this really difficult :) (It's not intentional, however; it just our current predicament.)

        Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #6

        If SP4 gives you those functions then surely you can mandate it?

        Morality is indistinguishable from social proscription

        B 1 Reply Last reply
        0
        • L Lost User

          If SP4 gives you those functions then surely you can mandate it?

          Morality is indistinguishable from social proscription

          B Offline
          B Offline
          Ben Burnett
          wrote on last edited by
          #7

          We may just have to; I was just hoping that we could cover everyone, including those who do not want to touch any of their perfectly-ok-and-running-machines. If I had any say in it, I'd make XP the base requirements, period; unfortunately, we have far too many people with production Windows 2000 machines for this to be feasible. Thank you for your help. I'll need to further contemplate how backwards compatible we care to--or can--be.

          Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

          D L 2 Replies Last reply
          0
          • B Ben Burnett

            We may just have to; I was just hoping that we could cover everyone, including those who do not want to touch any of their perfectly-ok-and-running-machines. If I had any say in it, I'd make XP the base requirements, period; unfortunately, we have far too many people with production Windows 2000 machines for this to be feasible. Thank you for your help. I'll need to further contemplate how backwards compatible we care to--or can--be.

            Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

            D Offline
            D Offline
            Dan Neely
            wrote on last edited by
            #8

            I know what you mean. I've still got an NT4 box for testing one of the apps I'm responsible for.

            Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

            B 1 Reply Last reply
            0
            • D Dan Neely

              I know what you mean. I've still got an NT4 box for testing one of the apps I'm responsible for.

              Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

              B Offline
              B Offline
              Ben Burnett
              wrote on last edited by
              #9

              My condolences ;) I believe we dropped that flavour of Windows just before I joined the team. A lot of the core kernel calls was there, but some of the niceties are only just being address now.

              Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

              D 1 Reply Last reply
              0
              • B Ben Burnett

                My condolences ;) I believe we dropped that flavour of Windows just before I joined the team. A lot of the core kernel calls was there, but some of the niceties are only just being address now.

                Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

                D Offline
                D Offline
                Dan Neely
                wrote on last edited by
                #10

                I'm doing C# work, not drivers so it's not as bad, but there've been more than a few places where I've been burned by win32 changes. Two that I recall are the behavior of a listbox if you click in the empty area below the last item, and that NT4 doesn't correctly display 32bit color depth icons. The customer this software is for has never moved past 2k to XP (claimed not to be able to turn off some XP services that tried doing auto updates when on isolated networks). We think, but aren't sure that all the NT4 boxes are finally gone, and that the next rev of the software (whenever that is) can be 2k only.

                Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                L 1 Reply Last reply
                0
                • B Ben Burnett

                  We may just have to; I was just hoping that we could cover everyone, including those who do not want to touch any of their perfectly-ok-and-running-machines. If I had any say in it, I'd make XP the base requirements, period; unfortunately, we have far too many people with production Windows 2000 machines for this to be feasible. Thank you for your help. I'll need to further contemplate how backwards compatible we care to--or can--be.

                  Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #11

                  Anyone not using a tried and tested service pack for an OS is a dick anyway so just tell them feature 'X' isnt available unless they do.

                  Morality is indistinguishable from social proscription

                  B 1 Reply Last reply
                  0
                  • D Dan Neely

                    I'm doing C# work, not drivers so it's not as bad, but there've been more than a few places where I've been burned by win32 changes. Two that I recall are the behavior of a listbox if you click in the empty area below the last item, and that NT4 doesn't correctly display 32bit color depth icons. The customer this software is for has never moved past 2k to XP (claimed not to be able to turn off some XP services that tried doing auto updates when on isolated networks). We think, but aren't sure that all the NT4 boxes are finally gone, and that the next rev of the software (whenever that is) can be 2k only.

                    Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #12

                    dan neely wrote:

                    I'm doing C# work, not drivers

                    Thats worse. The kernel never changes that much, 95% of todays kernel api on Windows 7 is just the same as NT4 (its probably the same as NT 3 but I didnt start writing drivers till NT4). The only new bit is PnP and power stuff, and in fact an NT4 driver can still run on Vista etc. They are also all written in C. By comparison, having new apis / languages thrust on you every time the latest catchword technology hits the streets, COM, Java, .Net etc, many of which end up dying after 5 or 10 years wasting all the effort one invested as a career move. Give me the kernel anyday.

                    Morality is indistinguishable from social proscription

                    1 Reply Last reply
                    0
                    • L Lost User

                      Anyone not using a tried and tested service pack for an OS is a dick anyway so just tell them feature 'X' isnt available unless they do.

                      Morality is indistinguishable from social proscription

                      B Offline
                      B Offline
                      Ben Burnett
                      wrote on last edited by
                      #13

                      I'm pretty sure they wouldn't take to kindly to that :) Like I mentioned before, if I had my druthers, they'd all be forced to use XP SP3, no exception. Unfortunately, the reality is that this will not happen, and there is no reason for them to update the old machines, in their minds, since none of the boxes face the outside world. It will slowly happen, however, as they retire old hardware: so I'll just bide my time.

                      Regards, -B "[F]reedom isn't a licence, it's responsibility." [David Gerrold, Author's Note in "The Man Who Folded Himself", 2003, p. 119]

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups