[PATCH v2 1/2] ddraw/tests: Add a helper for getting the device identifier