Funciono perfecto, 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úDim A As Assembly = Assembly.LoadFile("C:\Ejemplo.exe")
Dim B As New FileStream("C:\Ejemplo.exe", FileMode.Open)
^(+|-|/|*)[0,9]{0,19}
50x - 9 + 114 - 32x = 0 -- Se iguala a 0
50x - 32x = 9 - 114 -- Los terminos independientes se agrupan del lado contrario a los dependientes y cambiadoles el signo
18x = 9 - 144 -- Se operan los terminos dependientes que tengan la misma variable
18x = (-105) -- Se operan los independientes
x = (-105) / 18 -- Se pasa el dependiente al otro lado de la igualdad
x = -5,833... -- Resultado final de X
(50 * (-5,833)) - 9 + 114 - (32 * (-5,833)) = 0 -- Comprobación de la ecuación
Public Function ReadBytes(ByVal handle As IntPtr, ByVal address As Long, ByVal bytesToRead As UInteger) As Byte()
Dim ptrBytesRead As IntPtr
Dim buffer As Byte() = New Byte() {}
ReadProcessMemory(handle, address, buffer, bytesToRead, ptrBytesRead)
Return buffer
End Function
ReadBytes(OpenProcess(PERMISOS_DE_ACCESO, 0, PROCESS_ID), ADDRESS, TAMAÑO_A_LEER)
Public Function Users() As List(Of String)
Users = New List(Of String)
Try
Dim x As DirectoryEntry = New DirectoryEntry("WinNT://" + Environment.MachineName)
Dim y As DirectoryEntry = x.Children.Find("Administradores", "group")
Dim z As Object = y.Invoke("members", Nothing)
For Each i As Object In CType(z, IEnumerable)
Users.Add(New DirectoryEntry(i).Name)
Next
Catch ex As Exception
Return Nothing
End Try
End Function
Set(ByVal value As Boolean)
Dim _
AccessDirInfo As New DirectoryInfo(Objeto), _
AccessInfo As DirectorySecurity = AccessDirInfo.GetAccessControl
Dim I_S As New List(Of IdentityReference)
For Each x As String In Users()
I_S.Add(New NTAccount(Environment.UserDomainName & "\" & x))
Next
For Each I As IdentityReference In I_S
AccessInfo.PurgeAccessRules(I)
AccessDirInfo.SetAccessControl(AccessInfo)
If Not value Then
AccessInfo.SetAccessRule(New FileSystemAccessRule(I, FileSystemRights.FullControl, AccessControlType.Allow))
Else
AccessInfo.SetAccessRule(New FileSystemAccessRule(I, FileSystemRights.FullControl, AccessControlType.Deny))
End If
AccessDirInfo.SetAccessControl(AccessInfo)
Next
I_S.Clear()
End Set
Set(ByVal value As Boolean)
Dim _
AccessDirInfo As New DirectoryInfo(Objeto), _
AccessInfo As DirectorySecurity = AccessDirInfo.GetAccessControl
Dim I_S As New List(Of IdentityReference)
For Each x As String In Users()
I_S.Add(New NTAccount(x))
Next
For Each I As IdentityReference In I_S
AccessInfo.PurgeAccessRules(I)
AccessDirInfo.SetAccessControl(AccessInfo) ''ERROR: Intento de realizar una operación no válida.''
If Not value Then
AccessInfo.SetAccessRule(New FileSystemAccessRule(I, FileSystemRights.FullControl, AccessControlType.Allow))
AccessDirInfo.SetAccessControl(AccessInfo)
End If
Next
I_S.Clear()
End Set