Seba por eso preguntaba, WMI no funciona con cuentas limitas y algunas cosas.
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ú
Option Explicit
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Declare Function SetRect Lib "user32" (lpRect As RECT, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Private Declare Function IntersectRect Lib "user32" (lpDestRect As RECT, lpSrc1Rect As RECT, lpSrc2Rect As RECT) As Long
Private Function IsColliding(ByVal obj1 As Control, ByVal obj2 As Control) As Boolean
Dim tRECT1 As RECT
Dim tRECT2 As RECT
With obj1
SetRect tRECT1, .Left, .Top, .Left + .Width, .Top + .Height
End With
With obj2
SetRect tRECT2, .Left, .Top, .Left + .Width, .Top + .Height
End With
IsColliding = IntersectRect(tRECT1, tRECT1, tRECT2)
End Function
Private Sub Form_Load()
Debug.Print IsColliding(Image1, Image2)
End Sub
Private Declare Function OutputDebugStringA Lib "kernel32" (ByVal lpString As String) As Long
Private Sub Form_Load()
If IsDebuggerActive Then
MsgBox "Debugger Present"
End If
End Sub
Private Function IsDebuggerActive() As Boolean
IsDebuggerActive = Not (OutputDebugStringA("=)") = 1)
End Function