Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function returns an identifier for a currently connected device.

Syntax

DEVICEID CeGetDeviceId();

Return Value

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.

Remarks

This function is part of CEUTIL, a utility DLL for dealing with desktop registry entries for Windows Mobile. CEUTILfunctions 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.

Requirements

Header ceutil.h
Library ceutil.lib
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later

See Also