User's Manual

Chapter 7 — Programming
CN30 Mobile Computer User’s Manual 149
lpInBufSize Should set to zero.
lpOutBuf Must point to a UNIQUE_DEVICEID structure as defined by
DEVICEID.H if the UUID is to return
nOutBufSize The size of the UNIQUE_DEVICEID in bytes if the UUID is to
return. A DEVICE_ID as defined by PKFUNCS.H is returned if
the size in bytes is greater than or equal to sizeof(DEVICE_ID).
lpBytesReturned The number of bytes returned by the function.
Return Values
Returns TRUE if function succeeds. Returns FALSE if the function fails.
May use GetLastError() to get the extended error value.
IOCTL_HAL_GET_OAL_VERINFO
Returns the HAL version information of the Windows CE .NET image.
Usage
#include “oemioctl.h”
Syntax
BOOL KernelIoControl( IOCTL_HAL_GET_OAL_VERINFO,LPVOID
lpInBuf,DWORD nInBufSize,LPVOID lpOutBuf,DWORD
nOutBufSize,LPDWORD lpBytesReturned );
Parameters
lpInBuf Should set to NULL.
lpInBufSize Should set to zero.
lpOutBuf Must point to a VERSIONINFO structure as defined by
OEMIOCTL.H. The fields should have these values:
S cboemverinfo sizeof (tagOemVerInfo);
S verinfover 1
S sig; “ITC\0”
S id; ‘N’
S tgtcustomer “”
S tgtplat SeaRay
S tgtplatversion Current build version number
S tgtcputype[8]; “Intel\0”
S tgtcpu “PXA255\0”;
S tgtcoreversion “”
S date Build time
S time Build date
nOutBufSize The size of VERSIONINFOin bytes.
lpBytesReturned Returns sizeof(PVERSIONINFO).
Return Values
Returns TRUE if function succeeds. Returns FALSE if the function fails.
May use GetLastError() to get the extended error value.
IOCTL_HAL_GET_BOOTLOADER_VERINFO
Returns the HAL version information of the Windows CE .NET image.
Usage
#include “oemioctl.h”