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. Replacing GINA

Replacing GINA

Scheduled Pinned Locked Moved C / C++ / MFC
algorithmshelpquestion
3 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.
  • A Offline
    A Offline
    Anders Molin
    wrote on last edited by
    #1

    I'm working on a GINA replacement, because we need to do some custom log on of the users. I have one major problem that I can't find any solutions for. When the user is logged on, the start-menu is, err..., not exactly disabled but it's acting very strage. Fucus is not folloving the mouse, and it don't respond to mouse clicks. Anyone got an idea? I have been searching google and found other people with the same problem, but not any solutions. :( - Anders Money talks, but all mine ever says is "Goodbye!"

    D 1 Reply Last reply
    0
    • A Anders Molin

      I'm working on a GINA replacement, because we need to do some custom log on of the users. I have one major problem that I can't find any solutions for. When the user is logged on, the start-menu is, err..., not exactly disabled but it's acting very strage. Fucus is not folloving the mouse, and it don't respond to mouse clicks. Anyone got an idea? I have been searching google and found other people with the same problem, but not any solutions. :( - Anders Money talks, but all mine ever says is "Goodbye!"

      D Offline
      D Offline
      Daniel Lohmann
      wrote on last edited by
      #2

      Are you sure you setup proper security descriptors for the WinSta0 and WinSta0/Default windowstation/desktop objects? Seems that the user account the shell process is running under has not the proper access rights to create menus. -- Daniel Lohmann http://www.losoft.de (Hey, this page is worth looking! You can find some free and handy NT tools there :-D )

      A 1 Reply Last reply
      0
      • D Daniel Lohmann

        Are you sure you setup proper security descriptors for the WinSta0 and WinSta0/Default windowstation/desktop objects? Seems that the user account the shell process is running under has not the proper access rights to create menus. -- Daniel Lohmann http://www.losoft.de (Hey, this page is worth looking! You can find some free and handy NT tools there :-D )

        A Offline
        A Offline
        Anders Molin
        wrote on last edited by
        #3

        I found this a couple of hours ago, and it did the trick :)

        TOKEN\_GROUPS \*pGroups;
        DWORD dwSize, i;
        BOOL status = FALSE;
        
        pGroups = (\_TOKEN\_GROUPS\*)LocalAlloc(LMEM\_FIXED, 2048);
        GetTokenInformation(pgContext->UserToken, TokenGroups, pGroups, 2048, &dwSize);
        
        for (i = 0; i < pGroups->GroupCount; i++)
        {
        	if ((pGroups->Groups\[i\].Attributes & SE\_GROUP\_LOGON\_ID) == SE\_GROUP\_LOGON\_ID)
        	{
        		CopySid(GetLengthSid(pLogonSid), pLogonSid, pGroups->Groups\[i\].Sid );
        		break;
        	}
        }
        LocalFree(pGroups);
        

        - Anders Money talks, but all mine ever says is "Goodbye!"

        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