PDL_GetUniqueID

Description

Sets the passed buffer variable to the device's unique ID. buffer should be at least 64 bytes long, though not all of it may be used. You must set bufferLen to a value greater than or equal to 64.

Syntax

PDL_Err PDL_GetUniqueID(char *buffer, int bufferLen);     

Note:

This function opens and reads a file. Your app should call it once, then cache the ID. This function should not be called in a performance-critical loop.

Argument Description
buffer Pointer to the buffer.
bufferLen Length of the buffer. Should be greater than or equal to 64.

Returns

PDL_INVALIDINPUT — buffer is NULL.
PDL_STRINGTOOSMALL — Passed bufferLen is less than 64.
PDL_SYSTEMERROR_FILE — Could not access or read ID file.
PDL_NOERROR — Success.