Hardware manual
UPS25 API Manual for Windows 2000/XP/Vista 
11
Board Information IOCTLs 
UPS25_GET_CONTROL 
Description: 
This IOCTL returns the current configuration of the board. 
Parameters: 
Input: None 
Output: An eight bit value: 
  BIT 0:  0 – Interrupts Disabled 
    1 – Interrupts Enabled 
  BIT 2:  0 – Batteries disconnected from board to prevent discharge 
    1 – Batteries connected to board for backup purposes 
  BIT 3:  0 – Charger active. Charging can take place 
    1 – Charger inactive. No charging possible. 
Example: 
UCHAR Control; 
ULONG BytesReturned; 
DeviceIOControl( hDevice, 
UPS25_GET_CONTROL, 
NULL, 
0, 
&Control, 
sizeof(Control), 
&BytesReturned, 
NULL); 
UPS25_GET_INFO 
Description: 
This IOCTL gathers information about the UPS25 driver. 
Parameters: 
Input: None 
Output: An 8 bit value: 
  BIT 2:  0 – Interrupts Disabled. The IRQ resource is absent in the current configuration. 
    If you want to use interrupts you should select a configuration with interrupts. 
    1 – Interrupts Enabled. 
Example: 










