Ioctl_get_cpu_id, Usage, Syntax – Intermec 700 User Manual

Page 289: Parameters, Return values

Advertising
background image

Programming

Chapter 7

265

700 Series Color Mobile Computer User’s Manual

IOCTL_GET_CPU_ID

Returns Xscale processor ID.

Usage

#include “oemioctl.h”

Syntax

BOOL KernelIoControl( IOCTL_GET_CPU_ID,LPVOID lpInBuf,
DWORD nInBufSize,LPVOID lpOutBuf,DWORD nOutBufSize,LPDWORD
lpBytesReturned );

Parameters

lpInBuf

Should point to a CPUIdInfo structure defined in OEMIOCTL.H.

lpInBufSize

Should be sizeof(CPUIdInfo).

lpOutBuf

Should be NULL.

nOutBufSize

Should be set to 0.

lpBytesReturned

Returns sizeof(PROCESSOR_INFO);

Return Values

Returns TRUE if function succeeds. Returns FALSE if the function fails.
GetLastError() may be used to get the extended error value.

Advertising