JFK-VarTab

Zudem würde ich es besser finden, wenn die Config in ein File statt der registry gespeichert wird, sonst meckert Windows 7 immer ;)

Was kommt denn da immer für eine Meldung? Hab nämlich auch Win7, aber bei mir kommt keine (Hab aber auch UAC deaktiviert!)

Darf ein Programm nicht in die Registry schreiben bzw. Lesen ohne eine UAC Meldung, oder hängt das vom Schlüssel ab (HKCU oder HKLM). Weiss da jemand bescheid?
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Was kommt denn da immer für eine Meldung? Hab nämlich auch Win7, aber bei mir kommt keine (Hab aber auch UAC deaktiviert!)

Code:
System.UnauthorizedAccessException: Access to the registry key 'HKEY_LOCAL_MACHINE\Software\JFKSolutions\LibNoDaveConnectionLibrary\Connections\JFK-VarTab' is denied.
   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)
   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
   at LibNoDaveConnectionLibrary.LibNoDaveConnectionConfiguration.ReloadConfiguration()
   at LibNoDaveConnectionLibrary.LibNoDaveConnectionConfiguration..ctor(String ConnectionName)
   at JFK_VarTab.Vartab.Vartab_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Läuft nur im Admin Modus.
 
Code:
System.UnauthorizedAccessException: Access to the registry key 'HKEY_LOCAL_MACHINE\Software\JFKSolutions\LibNoDaveConnectionLibrary\Connections\JFK-VarTab' is denied.
   at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity)
   at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey)
   at LibNoDaveConnectionLibrary.LibNoDaveConnectionConfiguration.ReloadConfiguration()
   at LibNoDaveConnectionLibrary.LibNoDaveConnectionConfiguration..ctor(String ConnectionName)
   at JFK_VarTab.Vartab.Vartab_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Läuft nur im Admin Modus.

Ok, ich hab's mal geändert, speichere nun in CurrentUser statts in LocalMachine, dann gibts keine Exception mehr wenn UAC ein ist!
 
ja genau dazu war ich zu blöd...
Nachdem ich seit Ewigkeiten nur noch scl programmiere, musste ich mich seit längerem nicht mehr mit Pointern auseinander setzen.

Die Idee für das Tool finde ich super!
 
Warum eigentlich?? Thematisch passt es auch in dieses Forum, und wer nicht will, brauch ja auch nicht in diesen thread reinschauen...
 
Zurück
Oben