Delen via


IUriBuilder::GetPort method

Retrieves the value of the port component.

Syntax

HRESULT GetPort(
  [out] BOOL  *pfHasPort,
  [out] DWORD *pdwPort
);

Parameters

  • pfHasPort [out]
    Address of a variable of type BOOL that receives TRUE if the port property has been set, or FALSE otherwise.

  • pdwPort [out]
    Address of a variable of type DWORD that receives the current value.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

GetPort was introduced in Windows Internet Explorer 7.

Requirements

Minimum supported client

Windows XP with SP2

Minimum supported server

Windows Server 2003

Product

Internet Explorer 7

Header

Urlmon.h

IDL

Urlmon.idl

DLL

Urlmon.dll

See also

IUriBuilder

GetHost