
Chapter 7 — Programming
150 CN2B Mobile Computer User’s Manual
3 Tap Start > Today to access the Today screen, then tap the antenna icon
in the System Tray to bring up the NDISTRAY pop-up menu. Select
AutoFTP On to enable AutoFTP, reboot, confirm it is running.
4 Unload the network driver when the FTP Server is running and confirm
that it is not running any more.
5 Load the FTP Server, establish a connection, then suspend and resume.
The server should still run, but the FTP connection to the client should
be dropped.
Kernel I/O Controls
This describes the KernelIoControl() functions available to application pro-
grammers. Most C++ applications need to prototype the function as the
following to avoid link and compile errors.
extern “C” BOOL KernelIoControl(DWORD dwIoControlCode, LPVOID lpInBuf, DWORD
nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, LPDWORD lpBytesReturned);
IOCTL_HAL_GET_DEVICE_INFO
This IOCTL returns either the platform type or the OEMPLATFORM
name based on an input value.
Syntax
BOOL KernelIoControl( IOCTL_HAL_GET_DEVICE_INFO, LPVOID
lpInBuf, DWORD nInBufSize, LPVOID lpOutBuf, DWORD
nOutBufSize, LPDWORD lpBytesReturned );
Parameters
lpInBuf Points to a DWORD containing either the SPI_GETPLATFORMTYPE or
SPI_GETOEMINFO value.
lpInBufSize Must be set to sizeof(DWORD).
lpOutBuf Must point to a buffer large enough to hold the return data of the function. If
SPI_GETPLATFORMTYPE is specified in lpInBuf, then the “PocketPC\0” Unicode string is
returned. If SPI_GETOEMINFO is specified in lpInBuf, then the “Intermec 700\0” Unicode
string is returned.
nOutBufSize The size of lpOutBuf in bytes. Must be large enough to hold the string returned.
lpBytesReturned The actual 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 extended error value.
Comentarios a estos manuales