OK and Cancel buttons MFC Application Dialog box

Posted on 2009-04-28
Last Modified: 2013-11-26
Working with Visual Studio 2008, just created a dialog box using MFC application for our company's end-user agreement.  I've renamed 'OK' to 'I Agree' and renamed 'Cancel' to 'I Disagree'.  How can I program the 'I Agree' button to continue logon to Windows operating system, and also how to program 'I Disagree' button to log off or shut down the computer?   Lastly how can I program this to load in the logon script when users log onto our domain?
Question by:ECPhilaIT
    1 Comment
    LVL 66

    Accepted Solution

    It doesnt need to be in a login script, it should be built as a Custom GINA, and implemented into the registry.....

    More info on what teh GINA is, and does.

    The Essentials of Replacing the Microsoft Graphical Identification and Authentication Dynamic Link Library

    This is another thread where I assisted in deploying the custom GINA.

    How to replace msgina.dll across domain?

    Once it is deployed, then it is done, no need to keep it active in there.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This script will sweep a range of IP addresses (class c only, and report to a log the version of office installed. What it does: 1.)      Creates log file in the directory the script is run from (if it doesn't already exist) 2.)      Sweep…
    Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now