Every Brick and Bricklet has a device identifier. This identifier is used in the GetIdentity function and enumerate callbacks. It allows a dynamic usage of devices without the knowledge of UIDs.
The API bindings contain a device identifier constant for each Brick and Bricklet. Details about this can be found in the section about constants in the specific API documentation.