| Microsoft DirectX 8.1 (C++) | 
The GetUserID method retrieves the object's application-defined identifier.
Syntax
HRESULT GetUserID(
    long *pVal
);
Parameters
pVal
Pointer to a variable that receives the application-defined identifier.
Return Value
Returns S_OK if successful, or E_POINTER otherwise.
See Also