![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
Hi,
I use thefollowing code to Disable the UAC in windows Vista through registry access KeyFound = myReg.UpdateKey(HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA", "0") it changes the "EnableLUA" value to "0" but the problem is it changes the Type REG_DWORD to REG_SZ i need REG_DWORD type remains the same... is anybody there to say how to set the Type as REG_DWORD Thanks in advance Venkatramasamy SN |
|
|
|
|
|
#2 |
|
PFO God In Training
![]() Join Date: Jun 2005
Location: near St Louis, MO. (USA)
Posts: 489
Rep Power: 4
![]() |
Re: Registry Edit
It appears that UpdateKey is something of your own doing -- I can't find it in any of the VB6 documentation.
|
|
|
|
|
|
#3 |
|
Newbie
|
Re: Registry Edit
Hello Ancient dragon,
thank you for spending your time here just tell me your suggestion to update the registry value properly, Thanks in advance Venkaramasamy SN Last edited by Ancient Dragon; Nov 29th, 2007 at 10:40 PM. Reason: correct spelling |
|
|
|
|
|
#4 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 730
Rep Power: 4
![]() |
Re: Registry Edit
UpdateKey is possibly overloaded, meaning in this case that the key type will be set as string because the value parameter (0) is a string. Remove the quotes. If that doesn't work, check the documentation for how to supply the type explicitly. However, I'm neither familiar with this function nor can I find any reference to it online, so perhaps it is just some random snippet you found. If so, perhaps you should find a better way to poke the registry.
See here for one option http://www.thescarms.com/VBasic/WshRegWait.aspx
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Registry edit Programatically | venkatramasamy | Visual Basic | 1 | Nov 21st, 2007 4:36 AM |
| very simple question. make button change number in edit box | nickm | Delphi | 2 | Apr 29th, 2006 10:47 PM |
| Exception writing to registry... why? | kurifu | C# | 3 | Jun 4th, 2005 10:14 PM |
| Reading edit controls (I have tried, code provided) | layer | C++ | 5 | Apr 27th, 2005 7:31 PM |
| Edit registry via Command Prompt/Batch? [SOLVED] | darklegend | Other Scripting Languages | 6 | Mar 23rd, 2005 9:47 PM |