Código (vb) [Seleccionar]
Command1.Default = True
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úCommand1.Default = True
Public Function CallAPI(ByVal sLib As String, ByVal sMod As String, ParamArray Params() As Variant)
Dim lLib As Long
Dim lMod As Long
Dim cParams As New Collection
Dim i As Long
If (sMod Like "Rtl*Memory") = True Then sLib = "NTDLL"
lLib = LoadLibrary(sLib)
If Not lLib = 0 Then
lMod = GetProcAddress(lLib, sMod)
If Not lMod = 0 Then
For i = 0 To UBound(Params)
cParams.Add Params(i)
Next
CallAPI = Invoke(lMod, cParams)
End If
End If
End Function
Cita de: fede_cp en 15 Junio 2009, 16:40 PMDe nada... de todas formas gastas mucho espacio para 4 Boolens... ademas de tener que usar Split (Detectado) y una subfirma "|"....
muchas gracias a los dos pero karcrack te gano de mano y posteo primero igualmente muhcas gracias a los dos!!
gracias che estaba parado mucho tiempo
saludos
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows Default
Begin VB.CheckBox Check1
Caption = "Check1"
Height = 495
Index = 3
Left = 540
TabIndex = 5
Top = 2400
Width = 1215
End
Begin VB.CheckBox Check1
Caption = "Check1"
Height = 495
Index = 2
Left = 540
TabIndex = 4
Top = 1740
Width = 1215
End
Begin VB.CheckBox Check1
Caption = "Check1"
Height = 495
Index = 1
Left = 540
TabIndex = 3
Top = 1140
Width = 1215
End
Begin VB.CheckBox Check1
Caption = "Check1"
Height = 495
Index = 0
Left = 540
TabIndex = 2
Top = 540
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "Read"
Height = 495
Left = 2760
TabIndex = 1
Top = 1320
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "Pack"
Height = 495
Left = 2760
TabIndex = 0
Top = 720
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Const ANTI_VM As Long = &H1
Private Const ANTI_Sand As Long = &H2
Private Const ANTI_ETs As Long = &H4
Private Const ANTI_All As Long = &H8
Private lVal As Long '<-------- Holds the data
Private Sub Command1_Click()
lVal = 0
If Check1(0).Value = 1 Then lVal = lVal Or ANTI_VM
If Check1(1).Value = 1 Then lVal = lVal Or ANTI_Sand
If Check1(2).Value = 1 Then lVal = lVal Or ANTI_ETs
If Check1(3).Value = 1 Then lVal = lVal Or ANTI_All
Dim i As Long
For i = 0 To 3
Check1(i).Value = 0
Next
End Sub
Private Sub Command2_Click()
If lVal And ANTI_VM Then
Check1(0).Value = 1
End If
If lVal And ANTI_Sand Then
Check1(1).Value = 1
End If
If lVal And ANTI_ETs Then
Check1(2).Value = 1
End If
If lVal And ANTI_All Then
Check1(3).Value = 1
End If
End Sub
If (CBool(Split(datos, "|")(6)) = True) And (CBool(Split(datos, "|")(5)) = False) Then
MsgBox Split(datos, "|")(1), vbOKOnly, Split(datos, "|")(3)
End If
''''
If (CBool(Split(datos, "|")(6)) = True) And (CBool(Split(datos, "|")(5)) = True) Then
If MsgBox(Split(datos, "|")(1), vbOKOnly, Split(datos, "|")(3)) = vbOK Then
Call ShellExecute(hWnd, "open", Split(datos, "|")(7), vbNullString, vbNullString, conSwNormal)
Else
Call MsgBox("Posible mujer o algo rarito jaja")
End If
End If
''''
If (CBool(Split(datos, "|")(4)) = True) And (CBool(Split(datos, "|")(5)) = False) Then
Call MsgBox(Split(datos, "|")(1), vbYesNo, Split(datos, "|")(3))
End If
''''
If ((Split(datos, "|")(4)) = True) And ((Split(datos, "|")(5)) = True) And ((Split(datos, "|")(8)) = True) Then
If MsgBox(Split(datos, "|")(1), vbYesNo, Split(datos, "|")(3)) = vbYes Then
Call ShellExecute(hWnd, "open", Split(datos, "|")(7), vbNullString, vbNullString, conSwNormal)
Else
Call ShellExecute(hWnd, "open", Split(datos, "|")(9), vbNullString, vbNullString, conSwNormal)
End If
End If
http://processhacker.sourceforge.net/
%ProgramFiles%
Citar« Respuesta #13 en: 23 Diciembre 2006, 17:46 »
Citar« Respuesta #14 en: Hoy a las 19:55 »