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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Logout/Login or Fast User Switch via code?

Logout/Login or Fast User Switch via code?

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasedesignquestion
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.
  • B Offline
    B Offline
    Barry Etter
    wrote on last edited by
    #1

    I know I can trigger (from C++) the current user to be logged out of Windows (XP/Vista). Is it possible to SWITCH users either by triggering a logout/login or by triggering a fast user switch without the user having to do anything like enter their password, etc.? I would like to have a UI where a user can choose to switch to another user in one step (assuming they know the target password) without going through the Windows login screen. Any ideas? Thanks, Barry Etter

    Barry Etter

    K 1 Reply Last reply
    0
    • B Barry Etter

      I know I can trigger (from C++) the current user to be logged out of Windows (XP/Vista). Is it possible to SWITCH users either by triggering a logout/login or by triggering a fast user switch without the user having to do anything like enter their password, etc.? I would like to have a UI where a user can choose to switch to another user in one step (assuming they know the target password) without going through the Windows login screen. Any ideas? Thanks, Barry Etter

      Barry Etter

      K Offline
      K Offline
      Karismatic
      wrote on last edited by
      #2

      For switching between users u need to impersonate between the users try this link it may help u achive ur task http://www.codeproject.com/KB/system/UserImpersonation.aspx[^]

      Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job

      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