Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

IUri (Interfaces)
 
.
Summary
IUri is the URLMon URL interface used by Internet Explorer and other applications based on URLMon.

C# Definition:

    [ComImport]
    [Guid("A39EE748-6A27-4817-A6F2-13914BEF5890"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface IUri
    {
        UInt32 GetPropertyBSTR([In]UriProperty uriProp, [Out]out string strProperty, [In]UInt32 dwFlags);
        UInt32 GetPropertyLength([In]UriProperty uriProp, [Out] out UInt32 pcPropLen, [In]UInt32 dwFlags);
        UInt32 GetPropertyDWORD([In]UriProperty uriProp, [Out] out UInt32 pcPropValue, [In]UInt32 dwFlags);
        UInt32 HasProperty([In]UriProperty uriProp, [Out] out bool fHasProperty);
        UInt32 GetAbsoluteUri([MarshalAs(UnmanagedType.BStr)][Out] out string sAbsoluteUri);
        UInt32 GetAuthority([MarshalAs(UnmanagedType.BStr)][Out] out string sAuthority);
        UInt32 GetDisplayUri([MarshalAs(UnmanagedType.BStr)][Out] out string sDisplayString);
        UInt32 GetDomain([MarshalAs(UnmanagedType.BStr)][Out] out string sDomain);
        UInt32 GetExtension([MarshalAs(UnmanagedType.BStr)][Out] out string sExtension);
        UInt32 GetFragment([MarshalAs(UnmanagedType.BStr)][Out] out string sFragment);
        UInt32 GetHost([MarshalAs(UnmanagedType.BStr)][Out] out string sHost);
        UInt32 GetPassword([MarshalAs(UnmanagedType.BStr)][Out] out string sPassword);
        UInt32 GetPath([MarshalAs(UnmanagedType.BStr)][Out] out string sPath);
        UInt32 GetPathAndQuery([MarshalAs(UnmanagedType.BStr)][Out] out string sPathAndQuery);
        UInt32 GetQuery([MarshalAs(UnmanagedType.BStr)][Out] out string sQuery);
        UInt32 GetRawUri([MarshalAs(UnmanagedType.BStr)][Out] out string sRawUri);
        UInt32 GetSchemeName([MarshalAs(UnmanagedType.BStr)][Out] out string sSchemeName);
        UInt32 GetUserInfo([MarshalAs(UnmanagedType.BStr)][Out] out string sUserInfo);
        UInt32 GetUserName([MarshalAs(UnmanagedType.BStr)][Out] out string sUserName);
        UInt32 GetHostType([Out] uint dwHostType);
        UInt32 GetPort([Out] uint dwPort);
        UInt32 GetScheme([Out] uint dwScheme);
        UInt32  GetZone([Out] uint dwZone);
        UInt32 GetProperties([Out] uint dwFlags);
        UInt32 IsEqual([In]IUri pUri,[Out] bool fEqual);
    }

VB Definition:

<ComImport> _
<Guid("TODO")> _
'TODO: Insert <InterfaceType(ComInterfaceType.InterfaceIsIUnknown)> _ if this doesn't derive from IDispatch
Interface IUri
   TODO
End Interface

User-Defined Types:

    public enum UriProperty
    {
        ABSOLUTE_URI = 0,
        STRING_START = ABSOLUTE_URI,
        AUTHORITY = 1,
        DISPLAY_URI = 2,
        DOMAIN = 3,
        EXTENSION = 4,
        FRAGMENT = 5,
        HOST = 6,
        PASSWORD = 7,
        PATH = 8,
        PATH_AND_QUERY = 9,
        QUERY = 10,
        RAW_URI = 11,
        SCHEME_NAME = 12,
        USER_INFO = 13,
        USER_NAME = 14,
        STRING_LAST = USER_NAME,
        HOST_TYPE = 15,
        DWORD_START = HOST_TYPE,
        PORT = 16,
        SCHEME = 17,
        ZONE = 18,
        DWORD_LAST = ZONE
    }

Notes:

None.

Documentation
IUri on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions