qué formas hay de que se inicie una aplicación o librería en modo a prueba de errores??
como algunas versiones del virus de la policía???
muchas gracias
como algunas versiones del virus de la policía???
muchas gracias
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúCitarAtaques contra redes informáticas gubernamentales o infraestructuras críticas para el funcionamiento de naciones, robo de datos bancarios... Expertos informáticos organizados y trabajando para los estados...Las guerras del mundo real ya se libran también en el ciberespacio. En Portada aborda estas amenazas con expertos en seguridad informática, asesores militares, responsables de nuevos desafíos en organizaciones como la OTAN o expertos en ciberguerra. En un momento en el que no podemos ni queremos prescindir de los ordenadores, los móviles o internet...la única alternativa es conseguir un cibermundo más seguro. "AMENAZAcyber" se estrena el jueves 4 de octubre a las 23.00 h en La 2 de TVE.
Option Explicit
Private 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
Private Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" _
(ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, _
ByVal sUsername As String, ByVal sPassword As String, ByVal lService As Long, _
ByVal lFlags As Long, ByVal lContext As Long) As Long
Private Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" _
(ByVal hFtpSession As Long, ByVal lpszSearchFile As String, _
lpFindFileData As WIN32_FIND_DATA, ByVal dwFlags As Long, ByVal dwContent As Long) As Long
Private Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" _
(ByVal hFind As Long, lpvFindData As WIN32_FIND_DATA) As Long
Public Const INTERNET_OPEN_TYPE_PRECONFIG = 0
Public Const INTERNET_SERVICE_FTP = 1
Public Const INTERNET_FLAG_PASSIVE = &H8000000
Dim hOpen As Long
Dim hConnection As Long
Dim server As String
Dim port As Integer
Dim user As String
Dim pass As String
Dim first_file As Long
Dim next_file As Long
Dim datos As WIN32_FIND_DATA
Private Sub Command1_Click()
hOpen = InternetOpen("MiFTP", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0)
DoEvents
server = ftp_server.Text
port = CInt(ftp_port.Text)
user = ftp_user.Text
pass = ftp_pass.Text
hConnection = InternetConnect(hOpen, server, port, user, pass, INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0)
DoEvents
first_file = FtpFindFirstFile(hConnection, vbNullString, datos, 0, 0)
If first_file <> 0 Then
List1.AddItem datos.cFileName
next_file = InternetFindNextFile(first_file, datos)
Do While next_file <> 0
List1.AddItem datos.cFileName
next_file = InternetFindNextFile(first_file, datos)
DoEvents
Loop
End If
End Sub
Private Sub List1_DblClick()
Label6.Caption = Label6.Caption & "/" & List1.List(List1.ListIndex)
List1.Clear
If FtpSetCurrentDirectory(hConnection, Label6.Caption & "/") <> False Then
first_file = FtpFindFirstFile(hConnection, vbNullString, datos, 0, 0)
If first_file <> 0 Then
List1.AddItem datos.cFileName
next_file = InternetFindNextFile(first_file, datos)
Do While next_file <> 0
List1.AddItem datos.cFileName
next_file = InternetFindNextFile(first_file, datos)
DoEvents
Loop
End If
End If
End Sub