Microsoft DirectX 9.0 |
The GetUserName method retrieves the object's application-defined name.
Syntax
HRESULT GetUserName(
BSTR *pVal
);
Parameters
pVal
[out, retval] Pointer to a BSTR that receives the name of the object.
Return Value
Returns S_OK if successful. Otherwise, returns E_OUTOFMEMORY or another HRESULT value indicating the cause of the error.
Remarks
The method allocates memory for the string. The application must call SysFreeString to free the memory.
Requirements
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.
See Also