Share Pastebin
Guest
Public paste!

Adicionar Sites emProjto

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 1.02 KB | Hits: 32 | Expires: Never
Copy text to clipboard
  1. 'ini api
  2. Declare Function WritePrivateProfileString _
  3. Lib "kernel32" Alias "WritePrivateProfileStringA" _
  4. (ByVal lpApplicationname As String, ByVal _
  5. lpKeyName As Any, ByVal lsString As Any, _
  6. ByVal lplFilename As String) As Long
  7.  
  8. Declare Function GetPrivateProfileString Lib _
  9. "kernel32" Alias "GetPrivateProfileStringA" _
  10. (ByVal lpApplicationname As String, ByVal _
  11. lpKeyName As String, ByVal lpDefault As _
  12. String, ByVal lpReturnedString As String, _
  13. ByVal nSize As Long, ByVal lpFileName As _
  14. String) As Long
  15.  
  16. '========Get Url==========
  17. Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
  18. Public Const conSwNormal = 1
  19.  
  20.  
  21.  
  22.  
  23. 'Call ShellExecute(0, "open", "O SITE AQUI", CStr(0), CStr(0), 1)
  24. ' escreva o comando acima em qualquer botao , onde esta "O SITE AQUI" voce coloca o site
  25. 'ACHEI NA NET ESSE MODULO ENTÃO NÃO SEI QUEM CRIOU :P