Windows Mobile 6.5
A version of this page is also available for

This function returns an identifier for a currently connected device.

DEVICEID CeGetDeviceId();

This function returns a unique ID for the currently connected device. Zero indicates no device or a nonvalid device, and -1 indicates a guest value.

This function is part of CEUTIL, a utility DLL for dealing with desktop registry entries for Windows Mobile. CEUTIL functions are for use by desktop applications that need to communicate remotely with Windows Mobile devices. These functions are not available to applications running on Windows Embedded CE–based devices.

Windows Embedded CEWindows CE 3.0 and later
Windows MobilePocket PC 2000 and later, Smartphone 2002 and later

Community Additions