There should already be one, and it will be created automatically (I'd assume). Check the TDXDraw component, actually -- it looks like it has a DDraw property, meaning the previous example would be something like this:

[pascal]DXDraw1.DDraw.IDraw7.GetDeviceIdentifier(ID, 0);[/pascal]

(I think!)