Ioctl_Hal_Get_Reset_Info - Intermec 730 User Manual

700 series color mobile computer
Hide thumbs Also See for 730:
Table of Contents

Advertisement

Chapter
7
Programming

IOCTL_HAL_GET_RESET_INFO

BOOL KernelIoControl( IOCTL_HAL_GET_RESET_INFO,LPVOID lpInBuf,DWORD
nInBufSize,LPVOID lpOutBuf,DWORD nOutBufSize,LPDWORD lpBytesReturned );
typedef struct {
DWORD ResetReason;
DWORD ObjectStoreState;
} HAL_RESET_INFO, * PHAL_RESET_INFO;
// Reset reason types
#define HAL_RESET_TYPE_UNKNOWN
#define HAL_RESET_REASON_HARDWARE
#define HAL_RESET_REASON_SOFTWARE
#define HAL_RESET_REASON_WATCHDOG
#define HAL_RESET_BATT_FAULT
#define HAL_RESET_VDD_FAULT
// Object store state flags
#define HAL_OBJECT_STORE_STATE_UNKNOWN
#define HAL_OBJECT_STORE_STATE_CLEAR
218
Parameters
lpInBuf
Should be set to NULL.
lpInBufSize
Should be set to zero.
lpOutBuf
Should be NULL.
nOutBufSize
Should be zero.
Return Values
None.
This code allows software to check the type of the most recent reset.
Usage
#include "oemioctl.h"
Syntax
Parameters
lpInBuf
Should be set to NULL.
lpInBufSize
Should be set to zero.
lpOutBuf
Must point to a HAL_RESET_INFO structure. See sample below.
nOutBufSize
The size of HAL_RESET_INFO in bytes.
lpBytesReturned The number of bytes returned by the function.
Return Values
Returns TRUE if function succeeds. Returns FALSE if the function fails.
GetLastError() may be used to get the extended error value.
Sample
// most recent reset type
// state of object store
0
1
// cold
2
// suspend
4
8
// power fail
16 // warm boot
0
1
700 Series Color Mobile Computer User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

750740741760761751 ... Show all

Table of Contents