Autor
|
Tema: Problema editando cadenas en el registro de windows (Leído 1,327 veces)
|
XP.
Desconectado
Mensajes: 121
|
Hola quiero editar una cadena en el registro de windows pero no lo hace
Private Sub Form_Load() Shell "reg add hkcu\Control Panel\Desktop /v WaitToKillAppTimeout /t reg_sz /d 50000 /f " End Sub
que esta mal?
|
|
|
En línea
|
|
|
|
XP.
Desconectado
Mensajes: 121
|
Bueno tengo otro codigo que me lo paso un amigo de este foro pero tampoco funciona y el NOD32 me lo detecta como malisioso Private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As Long Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long Private Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long 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
Const REG_SZ As Long = 1 Const REG_DWORD As Long = 4
Private Sub Form_Load() Dim KeyHand As Long, R As Long R = RegCreateKey(HKEY_LOCAL_MACHINE, "SYSTEM\CurrentControlSet\Control\", KeyHand) R = RegSetValueEx(KeyHand, "WaitToKillServiceTimeout", 0, REG_SZ, ByVal 1000, 4) R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_CURRENT_USER, "Control Panel\Desktop\", KeyHand) R = RegSetValueEx(KeyHand, "HungAppTimeout", 0, REG_SZ, ByVal 1000, 4) R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_CURRENT_USER, "Control Panel\Desktop\", KeyHand) R = RegSetValueEx(KeyHand, "WaitToKillAppTimeout", 0, REG_SZ, ByVal 5000, 4) R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Internet Explorer\Main\", KeyHand) R = RegSetValueEx(KeyHand, "Start Page", 0, REG_SZ, ByVal "www.google.com.ar", 17) R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\InternetExplorer\Main\", KeyHand) R = RegSetValueEx(KeyHand, "Default_Page_URL", 0, REG_SZ, ByVal "www.google.com.ar", 17) R = RegCloseKey(KeyHand)
R = RegCreateKey(HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\InternetExplorer\Main\", KeyHand) R = RegSetValueEx(KeyHand, "FullScreen", 0, REG_SZ, ByVal "yes", 3) R = RegCloseKey(KeyHand) End Sub
|
|
|
En línea
|
|
|
|
|
Mensajes similares |
|
Asunto |
Iniciado por |
Respuestas |
Vistas |
Último mensaje |
|
|
Problema al concatenar cadenas
PHP
|
Feedeex
|
4
|
4,829
|
13 Mayo 2011, 12:49 pm
por Feedeex
|
|
|
Problema con cadenas
Programación C/C++
|
Uknow
|
2
|
2,279
|
11 Diciembre 2011, 23:37 pm
por Uknow
|
|
|
Problema de registro de Windows.
Windows
|
GROV
|
8
|
3,744
|
18 Agosto 2012, 17:52 pm
por GROV
|
|
|
Problema cadenas
Programación C/C++
|
muymuyperdido
|
6
|
2,804
|
8 Enero 2013, 15:48 pm
por leosansan
|
|
|
problema con el registro de windows
Programación C/C++
|
daryo
|
3
|
2,137
|
24 Julio 2015, 19:16 pm
por Eternal Idol
|
|