i got this code

VB Code:
  1. Const INTERNET_OPEN_TYPE_DIRECT = 1
  2. Const INTERNET_OPEN_TYPE_PROXY = 3
  3. Const INTERNET_FLAG_RELOAD = &H80000000
  4. Const sURL = "http://www.microsoft.com/index.htm"
  5. Declare Function InternetOpen Lib "wininet.dll" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
  6. Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer
  7. Declare Function InternetReadFile Lib "wininet.dll" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer
  8. Declare Function InternetOpenUrl Lib "wininet.dll" Alias "InternetOpenUrlA" (ByVal hInternetSession As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long
  9. Declare Function GetLastError Lib "coredll" () As Long
  10.  
  11. Private Sub Command1_Click()
  12. 'KPD-Team 1999
  13.     'URL: [url]http://www.allapi.net/[/url]
  14.     'E-Mail: [email][email protected][/email]
  15.  
  16.     Dim hOpen As Long, hFile As Long, sBuffer As String, Ret As Long
  17.     'Create a buffer for the file we're going to download
  18.     sBuffer = Space(1000)
  19.     'Create an internet connection
  20.     hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)
  21.     'Open the url
  22.     hFile = InternetOpenUrl(hOpen, sURL, vbNullString, 0, INTERNET_FLAG_RELOAD, 0)
  23.     'Read the first 1000 bytes of the file
  24.     MsgBox GetLastError
  25.     InternetReadFile hFile, sBuffer, 1000, Ret
  26.     'clean up
  27.     InternetCloseHandle hFile
  28.     InternetCloseHandle hOpen
  29.     'Show our file
  30.     MsgBox sBuffer
  31. End Sub
  32.  
  33.  
  34. Private Sub Form_OKClick()
  35.     App.End
  36. End Sub

and it returns error number 12006
which means ERROR_INTERNET_UNRECOGNIZED_SCHEME -
The URL scheme could not be recognized or is not supported.

so
what should i do?