25
3-4.FindComNum
This function automatically detects the COM port number assigned to the
CF60U. This function is included in the DLL which was copied into your PDA
when you installed the sample program at Step 3-2.
FindComNum
BOOL APIENTRY FindComNum ( PCHAR ComNum, CHAR DeviceName );
ComNum --->[out] address of variable to receive a COM port number
DeviceName --->[in] device name(Specify 1 as device name)
Return value
0:OK
1:Device name set up error
2:Registry key open error
3:COM Port assignment failed
4:The CF60U isn’t inserted