elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Recopilación Tutoriales y Manuales Hacking, Seguridad, Privacidad, Hardware, etc


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  [VB6+NATIVE] GetProcessTimes Alternativa
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: [VB6+NATIVE] GetProcessTimes Alternativa  (Leído 1,776 veces)
Karcrack


Desconectado Desconectado

Mensajes: 2.416


Se siente observado ¬¬'


Ver Perfil
[VB6+NATIVE] GetProcessTimes Alternativa
« en: 29 Julio 2010, 01:13 am »

Código
  1. Option Explicit
  2.  
  3. Public Type KERNEL_USER_TIMES
  4.    liCreateTime            As Currency 'LARGE_INTEGER
  5.    liExitTime              As Currency 'LARGE_INTEGER
  6.    liKernelTime            As Currency 'LARGE_INTEGER
  7.    liUserTime              As Currency 'LARGE_INTEGER
  8. End Type
  9.  
  10. 'NTDLL
  11. Private Declare Function NtQueryInformationProcess Lib "NTDLL" (ByVal ProcessHandle As Long, ByVal ProcessInformationClass As Long, ByVal ProcessInformation As Long, ByVal ProcessInformationLength As Long, ReturnLength As Long) As Long
  12.  
  13. Private Const ProcessTimes  As Long = &H4
  14. Public Const CurrentProcess As Long = -1
  15.  
  16. '---------------------------------------------------------------------------------------
  17. ' Procedure : GetProcessTimes
  18. ' Author    : Karcrack
  19. ' Date      : 290710
  20. ' Purpose   : Get some Process Time Info... like when it was created...
  21. '---------------------------------------------------------------------------------------
  22. '
  23. Public Function GetProcessTimes(ByVal hProc As Long) As KERNEL_USER_TIMES
  24.    Call NtQueryInformationProcess(hProc, ProcessTimes, VarPtr(GetProcessTimes), &H20, ByVal 0&)
  25. End Function

Reemplazo nativo a GetProcessTimes@KERNEL32, permite por ejemplo, obtener la hora en la que se inicio un proceso :D

Saludos ;)


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
SQL Server Native
Desarrollo Web
CRTANONY 2 2,973 Último mensaje 31 Octubre 2016, 17:06 pm
por CRTANONY
crear app hibrida. ¿react native ó ionic2?
Desarrollo Web
OssoH 1 2,621 Último mensaje 2 Julio 2017, 19:00 pm
por MinusFour
desarrollar juego con react native
Programación General
yina07 0 2,723 Último mensaje 25 Marzo 2019, 17:07 pm
por yina07
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines