Click here to Skip to main content
15,921,837 members
Home / Discussions / C#
   

C#

 
GeneralRe: can you help me out Pin
cfsego7-May-06 21:05
cfsego7-May-06 21:05 
GeneralRe: can you help me out Pin
mrkeivan8-May-06 3:58
mrkeivan8-May-06 3:58 
QuestionCan We detect Sql Servers on Network using c# Pin
Jax_qqq24-Mar-06 19:37
Jax_qqq24-Mar-06 19:37 
QuestionHow to change textBox contents using ActiveX Pin
wajih2k24-Mar-06 19:04
wajih2k24-Mar-06 19:04 
QuestionDll's Pin
Navaneeth.K.N24-Mar-06 18:58
Navaneeth.K.N24-Mar-06 18:58 
AnswerRe: Dll's Pin
HakunaMatada24-Mar-06 21:56
HakunaMatada24-Mar-06 21:56 
QuestionUnique Registration Key Pin
Navaneeth.K.N24-Mar-06 18:56
Navaneeth.K.N24-Mar-06 18:56 
AnswerRe: Unique Registration Key Pin
HakunaMatada24-Mar-06 22:02
HakunaMatada24-Mar-06 22:02 
QuestionByte to bits conversion Pin
eggie524-Mar-06 18:55
eggie524-Mar-06 18:55 
AnswerRe: Byte to bits conversion Pin
Robert Rohde24-Mar-06 20:04
Robert Rohde24-Mar-06 20:04 
GeneralRe: Byte to bits conversion Pin
eggie524-Mar-06 20:08
eggie524-Mar-06 20:08 
GeneralRe: Byte to bits conversion Pin
Robert Rohde24-Mar-06 20:12
Robert Rohde24-Mar-06 20:12 
AnswerRe: Byte to bits conversion Pin
leppie24-Mar-06 21:46
leppie24-Mar-06 21:46 
QuestionAnyBody Hep Me !!!!!! Pin
AnhTin24-Mar-06 17:16
AnhTin24-Mar-06 17:16 
AnswerRe: AnyBody Hep Me !!!!!! Pin
Robert Rohde24-Mar-06 20:06
Robert Rohde24-Mar-06 20:06 
QuestionInput video to my background form Pin
youssef24-Mar-06 9:18
youssef24-Mar-06 9:18 
AnswerRe: Input video to my background form Pin
Ed.Poore24-Mar-06 11:07
Ed.Poore24-Mar-06 11:07 
QuestionExpanded Remote Registry Editing Issues Pin
Joshua Lunsford24-Mar-06 9:03
Joshua Lunsford24-Mar-06 9:03 
Having issues find solution in for Remote Registry editing.

Yeah i got the remote viewing under control...

With remote editing, I can do it with VBscript easy:
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")<br />
objReg.SetStringValue HKEY_LOCAL_MACHINE,strPointerKey,strPointerEntry,strPointerValue<br />
objReg.CreateKey HKEY_LOCAL_MACHINE,strMyKey


surely .NET can do it. this is what i tried:

RegistryKey LM = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine,WSID);<br />
RegistryKey inventoryKeys = LM.OpenSubKey("SOFTWARE\\CompanyName\\AppName");<br />
inventoryKeys.SetValue("ValueName","Value");


and the error message is:

Get REG values: System.UnauthorizedAccessException: Cannot write to the registry key.
at Microsoft.Win32.RegistryKey.ValidateState(Boolean needWrite)
at Microsoft.Win32.RegistryKey.SetValue(String name, Object value)
at testReg.Class1.update() in c:\projects\testreg\class1.cs:line 48: 03/24/20
06 02:41:01 PM
AnswerRe: Expanded Remote Registry Editing Issues Pin
Dave Kreskowiak24-Mar-06 9:35
mveDave Kreskowiak24-Mar-06 9:35 
GeneralRe: Expanded Remote Registry Editing Issues Pin
Joshua Lunsford24-Mar-06 9:54
Joshua Lunsford24-Mar-06 9:54 
GeneralRe: Expanded Remote Registry Editing Issues Pin
Dave Kreskowiak24-Mar-06 12:42
mveDave Kreskowiak24-Mar-06 12:42 
QuestionHow to off window in console application? Pin
Dima Filipiuk24-Mar-06 8:58
Dima Filipiuk24-Mar-06 8:58 
AnswerRe: How to off window in console application? Pin
Ed.Poore24-Mar-06 9:09
Ed.Poore24-Mar-06 9:09 
AnswerRe: How to off window in console application? Pin
Kevin Zheng24-Mar-06 15:13
Kevin Zheng24-Mar-06 15:13 
Questionstrings help Pin
Inuyasha96324-Mar-06 8:36
Inuyasha96324-Mar-06 8:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.