Click here to Skip to main content
15,905,504 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: strings help Pin
Ed.Poore24-Mar-06 9:08
Ed.Poore24-Mar-06 9:08 
QuestionAdding active icons to title-bar of common File Open dialog Pin
Saber Of Borg24-Mar-06 6:01
Saber Of Borg24-Mar-06 6:01 
QuestionHow to trigger when any window/dialog opens within Windows Pin
Saber Of Borg24-Mar-06 5:55
Saber Of Borg24-Mar-06 5:55 
AnswerRe: How to trigger when any window/dialog opens within Windows Pin
Bob_Sun24-Mar-06 6:13
Bob_Sun24-Mar-06 6:13 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
Saber Of Borg24-Mar-06 14:38
Saber Of Borg24-Mar-06 14:38 
AnswerRe: How to trigger when any window/dialog opens within Windows Pin
Dave Kreskowiak24-Mar-06 7:00
mveDave Kreskowiak24-Mar-06 7:00 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
Saber Of Borg24-Mar-06 14:35
Saber Of Borg24-Mar-06 14:35 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
mav.northwind24-Mar-06 21:50
mav.northwind24-Mar-06 21:50 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
Dave Kreskowiak25-Mar-06 2:45
mveDave Kreskowiak25-Mar-06 2:45 
GeneralRe: How to trigger when any window/dialog opens within Windows Pin
Saber Of Borg26-Mar-06 6:47
Saber Of Borg26-Mar-06 6:47 

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.