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
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
internetcrackurl (wininet)
 
.
Summary
TODO - a short description

C# Signature:

public enum INTERNET_SCHEME

{ // Ref: http://msdn.microsoft.com/en-us/library/aa385149(VS.85).aspx

    INTERNET_SCHEME_PARTIAL = -2,
    INTERNET_SCHEME_UNKNOWN = -1,
    INTERNET_SCHEME_DEFAULT = 0,
    INTERNET_SCHEME_FTP,
    INTERNET_SCHEME_GOPHER,
    INTERNET_SCHEME_HTTP,
    INTERNET_SCHEME_HTTPS,
    INTERNET_SCHEME_FILE,
    INTERNET_SCHEME_NEWS,
    INTERNET_SCHEME_MAILTO,
    INTERNET_SCHEME_SOCKS,
    INTERNET_SCHEME_JAVASCRIPT,
    INTERNET_SCHEME_VBSCRIPT,
    INTERNET_SCHEME_RES,
    INTERNET_SCHEME_FIRST = INTERNET_SCHEME_FTP,
    INTERNET_SCHEME_LAST = INTERNET_SCHEME_VBSCRIPT

}

public struct URL_COMPONENTS

{ // Ref: http://msdn.microsoft.com/en-us/library/aa385420(VS.85).aspx

    public int dwStructSize;
    public string lpszScheme;
    public int dwSchemeLength;
    public INTERNET_SCHEME nScheme;
    public string lpszHostName;
    public int dwHostNameLength;
    public int nPort;
    public string lpszUserName;
    public int dwUserNameLength;
    public string lpszPassword;
    public int dwPasswordLength;
    public string lpszUrlPath;
    public int dwUrlPathLength;
    public string lpszExtraInfo;
    public int dwExtraInfoLength;

}

[DllImport("wininet.dll")]

[return: MarshalAs(UnmanagedType.Bool)]

public static extern bool InternetCrackUrl( // Ref: http://msdn.microsoft.com/en-us/library/aa384376(VS.85).aspx

    // (in) Pointer to a string that contains the canonical URL to be cracked
    string lpszUrl,
    // (in) Size of the lpszUrl string, in TCHARs, or zero if lpszUrl is an ASCIIZ string
    int dwUrlLength,
    // (in) Controls the operation. This parameter can be one of the following values
    int dwFlags,
    // (out) Pointer to a URL_COMPONENTS structure that receives the URL components
    ref URL_COMPONENTS lpUrlComponents);

VB Signature:

Declare Function InternetCrackUrl Lib "wininet.dll" (ByVal lpszUrl As String, ByVal dwUrlLength As Integer, ByVal dwFlags As Integer, ByRef lpUrlComponents As URL_COMPONENTS) As <MarshalAs(UnmanagedType.Bool)> Boolean

User-Defined Types:

URL_COMPONENTS

INTERNET_SCHEME

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

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