Results 1 to 3 of 3

Thread: [VB6] WinHttpCrackUrl

Threaded View

  1. #1

    Thread Starter
    Fanatic Member dmaruca's Avatar
    Join Date
    May 2006
    Location
    Jacksonville, FL
    Posts
    577

    [VB6] WinHttpCrackUrl

    Does anyone have a working example of using WinHttpCrackUrl? For some reason I can't get this one working for the life of me. Here's the declarations I have so far.

    Code:
    Private Declare Function WinHttpCrackUrl Lib "WinHTTP.DLL" ( _
            ByVal pwszUrl As Long _
            , ByVal dwUrlLength As Long _
            , ByVal dwFlags As Long _
            , ByRef lpUrlComponents As URL_COMPONENTS _
            ) As Long                                ' BOOL
    Code:
    Type URL_COMPONENTS
        dwStructSize As Long                         ' DWORD // size of this structure. Used in version check
        lpszScheme As Long                           ' LPSTR // pointer to scheme name
        dwSchemeLength As Long                       ' DWORD // length of scheme name
        nScheme As Long                              ' INTERNET_SCHEME // enumerated scheme type (if known)
        lpszHostName As Long                         ' LPSTR // pointer to host name
        dwHostNameLength As Long                     ' DWORD // length of host name
        nPort As Long                                ' INTERNET_PORT // converted port number
        lpszUserName As Long                         ' LPSTR // pointer to user name
        dwUserNameLength As Long                     ' DWORD // length of user name
        lpszPassword As Long                         ' LPSTR // pointer to password
        dwPasswordLength As Long                     ' DWORD // length of password
        lpszUrlPath As Long                          ' LPSTR // pointer to URL-path
        dwUrlPathLength As Long                      ' DWORD // length of URL-path
        lpszExtraInfo As Long                        ' LPSTR // pointer to extra information (e.g. ?foo or #foo) (Z string)
        dwExtraInfoLength As Long                    ' DWORD // length of extra information
    End Type
    Last edited by dmaruca; May 6th, 2011 at 03:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width