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. Windows API
  4. Calling an API function from Bios

Calling an API function from Bios

Scheduled Pinned Locked Moved Windows API
helphardwarejsontutorialquestion
2 Posts 2 Posters 7 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.
  • U Offline
    U Offline
    User 3903805
    wrote on last edited by
    #1

    Hi.. I own a Tektronix logic analyzer that was designed for Win95/98 and supported the old APM specification 1.2 for powering the system up and powering down. Under Win95/98 the soft button supported both power up and a safe shutdown/power off mode. After I upgraded to Win2000, both of these features were 'broken'. I discovered the bios issue with Win2000 not being able to turn power off to the analyzer(bios patch) but the only way I can accomplish this is with the traditional Start/Shutdown mouse seq. The front panel button no longer will initiate a shutdown/power off sequence. I am guessing that the bios had an embedded call to the windows function ExitWindowsEx. However, under Win2000 you needed to enable the proper privileges for the API function to properly work. So... hopefully, someone is familiar with what I am asking and can recommend how to force a windows function call from within bios. I am comfortable patching the bios for this sort of thing. I just need some pointers if it makes sense. If this is not possible/feasible what other options do I have? I've studied the APM spec but don't understand how to actually force the Windows OS to initiate a shutdown/power off sequence. If anyone can offer some advice, I would appreciate it. I would love exchanging thoughts on this as I've not been able to find anyone knowledgeable to help. Thanks for listening.. Jim

    C 1 Reply Last reply
    0
    • U User 3903805

      Hi.. I own a Tektronix logic analyzer that was designed for Win95/98 and supported the old APM specification 1.2 for powering the system up and powering down. Under Win95/98 the soft button supported both power up and a safe shutdown/power off mode. After I upgraded to Win2000, both of these features were 'broken'. I discovered the bios issue with Win2000 not being able to turn power off to the analyzer(bios patch) but the only way I can accomplish this is with the traditional Start/Shutdown mouse seq. The front panel button no longer will initiate a shutdown/power off sequence. I am guessing that the bios had an embedded call to the windows function ExitWindowsEx. However, under Win2000 you needed to enable the proper privileges for the API function to properly work. So... hopefully, someone is familiar with what I am asking and can recommend how to force a windows function call from within bios. I am comfortable patching the bios for this sort of thing. I just need some pointers if it makes sense. If this is not possible/feasible what other options do I have? I've studied the APM spec but don't understand how to actually force the Windows OS to initiate a shutdown/power off sequence. If anyone can offer some advice, I would appreciate it. I would love exchanging thoughts on this as I've not been able to find anyone knowledgeable to help. Thanks for listening.. Jim

      C Offline
      C Offline
      Charles Oppermann
      wrote on last edited by
      #2

      The BIOS (Basic Input Output System), is the code that runs before Windows does. It is also available for certain functions. In the past that included some hardware support and power management. Starting with NT versions of Windows, the BIOS role has greatly diminished. The BIOS cannot call into Windows. The BIOS has no knowledge of what operating system is installed. Can you explain the hardware/software set up in better detail. How were you able to "upgrade" to Windows 2000?

      /* Charles Oppermann */ http://weblogs.asp.net/chuckop

      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