Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Manipulating user settings in Windows with .NET

Manipulating user settings in Windows with .NET

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharptutorialc++linuxhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Christer Claesson
    wrote on last edited by
    #1

    Hello there I had this fun idea about writing a program were you can set rights on other accounts(if you are admin etc), and also list what accounts exists on the computer. Everything I intend to do you can already do in windows xp but I want to do it anyway and do it in my program instead. One example would be to set account x so you cannot login afer 10pm. Problem is, I know very little about what I suspect is needed to do that. I'm suspecting I will have to manipulate the windows shell in some way perhaps? Anyway, if anyone has any suggestions were I could start looking for information or suggestions how to do this feel free to reply. I know mostly c# but have played around with c/c++ and I guess I could learn it again if needed.

    F 1 Reply Last reply
    0
    • C Christer Claesson

      Hello there I had this fun idea about writing a program were you can set rights on other accounts(if you are admin etc), and also list what accounts exists on the computer. Everything I intend to do you can already do in windows xp but I want to do it anyway and do it in my program instead. One example would be to set account x so you cannot login afer 10pm. Problem is, I know very little about what I suspect is needed to do that. I'm suspecting I will have to manipulate the windows shell in some way perhaps? Anyway, if anyone has any suggestions were I could start looking for information or suggestions how to do this feel free to reply. I know mostly c# but have played around with c/c++ and I guess I could learn it again if needed.

      F Offline
      F Offline
      Filip van der Meeren
      wrote on last edited by
      #2

      Just me thinking in a strange way (in a way I would never program)... Why don't you just call in .net the Process class with the right commands as arguments... I actually don't know the usersettings (as I don't use those), but knowing Windows, there must be a cmd command. And you can call the cmd with the Process class ... Do you see where I am going ? :doh: But the first thing I should do, look for methods in the user32.dll and such for things that do your thing (I am so boring :zzz:) If you can understand anything of my typing (because I don't :->), try to search in that direction... And if you have the final program, email me the link :-O

      Don't you also love the code?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups