0 out of 1 rated this helpful - Rate this topic

IUri::GetUserName method

Returns the user name as parsed from the Uniform Resource Identifier (URI).

Syntax


HRESULT GetUserName(
  [out]  BSTR *pbstrUserName
);

Parameters

pbstrUserName [out]

Address of a BSTR that receives the property value. Caller is responsible for freeing the memory with SysFreeString.

Return value

Returns one of the following values:

Return codeDescription
S_OK

Success.

S_FALSE

The property is not defined.

E_OUTOFMEMORY

There is insufficient memory to create the BSTR.

 

Remarks

This function is for convenience. It is the same as calling IUri::GetPropertyBSTR with the Uri_PROPERTY_USER_NAME property.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 with SP1 [desktop apps only]

Product

Internet Explorer 7

Header

Urlmon.h

IDL

Urlmon.idl

DLL

Urlmon.dll

See also

IUri
Reference
GetPassword
GetUserInfo

 

 

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.