[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


pm_system_event_query System Call

Purpose

Controls and queries the PM event.

Syntax

#include <pm.h>

int pm_system_event_query (event);
int event;

Description

The pm_system_event_query system call queries the PM event.

event Returns one of the following events:

PM_EVENT_NONE

PM_EVENT_LID_OPEN

PM_EVENT_LID_CLOSE

PM_EVENT_LOW_BATTERY

PM_EVENT_SYSTEM_IDLE_TIMER

PM_EVENT_POWER_SWITCH_OFF

PM_EVENT_POWER_SWITCH_ON

PM_EVENT_SPECIFIED_TIME

PM_EVENT_MOUSE

PM_EVENT_KEYBOARD

PM_EVENT_EXTRA_INPUTDD

PM_EVENT_EXTRA_BUTTON

PM_EVENT_TERMINATE

PM_EVENT_AC

PM_EVENT_DC
PM_SUCCESS Indicates successful completion.
PM_ERROR Indicates an error condition. The variable errno is set to identify the error.

PM library

The PM library is supported to control/query PM information from application programs.

Error Codes


EINVAL Invalid argument.

Implementation Specifics

The pm_system_event_query system call is part of the Base Operation System (BOS) Runtime.

Related Information

The pm_battery_control (pm_battery_control Subroutine) subroutine.

The pm_control_parameter (pm_control_parameter System Call) system call, pm_control_state (pm_control_state System Call) system call.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]