Chapter 3 — Configuring the Computer

IOCTL_HAL_ITC_READ_PARM

Usage

#include “oemioctl.h”

Syntax

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

Parameters

lpInBuf

Points to this structure. See “ID Field Values” below.

 

struct PARMS {

 

BYTE id;

 

BYTE ClassId;

 

};

nInBufSize

Must be set to the size of the PARMS structure.

lpOutBuf

Must point to a buffer large enough to hold the return data of the

 

function. If this field is set to NULL and nOutBufSize is set to zero

 

when the function is called the function will return the number

 

bytes required by the buffer.

 

 

nOutBufSize

The size of lpOutBuf in bytes.

lpBytesReturned

Number of bytes returned by the function for the data requested.

 

 

Return Values

Returns TRUE if function succeeds. Returns FALSE if the function fails. GetLastError() may be used to get the error value. Either ERROR_INVALID_PARAMETER or ERROR_INSUFFICIENT_BUFFER may be returned when this function is used to get the error.

ID Field Values

The id field of the PARMS structure may be one of the following values:

ID Field Values

ITC_NVPARM_ETHERNET_ID

Returns Ethernet 802.11b or 802.11b/g MAC Address. Six bytes returned in buffer pointed to by lpOutBuffer

ITC_NVPARM_SERIAL_NUM

Returns serial number of device in BCD format. Six bytes returned in buffer pointed to by lpOutBuffer

ITC_NVPARM_MANF_DATE

Returns device manufacture date in BCD YYYY/MM/DD format. 4 bytes sent in buffer pointed to by lpOutBuffer

ITC_NVPARM_SERVICE_DATE

Returns last device service date in BCD YYYY/MM/DD format. Four bytes sent in buffer pointed to by lpOutBuffer

ITC_NVPARM_DISPLAY_TYPE

Returns device display type. One byte returned in buffer pointed to by lpOutBuffer

ITC_NVPARM_EDG_IP

Returns device Ethernet debug IP address. Four bytes returned in buffer pointed to by lpOutBuffer

68

751G Color Mobile Computer User’s Manual

Page 82
Image 82
Intermec 751G user manual Usage, ID Field Values, #include oemioctl.h