Export (0) Print
Expand All

IZoneIdentifier::GetId method

Gets the current security zone.

Syntax


HRESULT GetId(
  [out]  DWORD *pdwZone
);

Parameters

pdwZone [out]

A pointer to a URLZONE value.

Return value

This method can return one of these values.

Return codeDescription
S_OK

Indicates success.

E_ACCESSDENIED

Indicates that pdwZone is an untrusted zone.

 

Remarks

The IZoneIdentifier::GetId method was introduced in Microsoft Internet Explorer 6 for Windows XP Service Pack 2 (SP2).

This method can also return an HRESULT derived from the Microsoft Win32 error code ERROR_NOT_FOUND to indicate that the zone is unavailable.

Requirements

Minimum supported client

Windows XP with SP2

Minimum supported server

Windows Server 2003

Product

Internet Explorer 6.0

Header

Urlmon.h

IDL

Urlmon.idl

See also

IZoneIdentifier

 

 

Show:
© 2014 Microsoft