+ Reply to Thread
Results 1 to 8 of 8

Thread: Desktop Lock Program

  1. #1
    espfutbol98's Avatar
    espfutbol98 is offline x10 Sophmore espfutbol98 is an unknown quantity at this point
    Join Date
    Apr 2009
    Location
    Zagreb... želim
    Posts
    200

    Question Desktop Lock Program

    I was wondering how hard it would be to write a program to simply lock the desktop, set the background to blue, and have a textbox with an image and a password input. I have no clue which language to use: .Net, C++, C#, VB, or Java but what I do know it I know nothing about these languages. I've used freeware programs like these but I'd rather have my own. I also don't have any experience writing desktop applications but I do have Visual Studio 2010. Any sugestions/help or is this way too complicated for me to do?

  2. #2
    dquigley's Avatar
    dquigley is offline x10 Sophmore dquigley is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Fresno, CA
    Posts
    249

    Re: Desktop Lock Program

    I think there are already some programs that do this or something similar, it might be worth a shot to research them. Good luck! :D


  3. #3
    espfutbol98's Avatar
    espfutbol98 is offline x10 Sophmore espfutbol98 is an unknown quantity at this point
    Join Date
    Apr 2009
    Location
    Zagreb... želim
    Posts
    200

    Re: Desktop Lock Program

    I've looked through a lot of similar programs but they don't really do what I want. I wondering of it would be possible to make a locking program with a pop-up box with an image and textbox.

  4. #4
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Desktop Lock Program

    As is often the case, it's not a matter of language but platform and frameworks (.Net is a framework, not a language). Java's platform, the JVM, isn't suitable because it's (intentionally) too separated from the host machine (there are ways of loading native platform libraries, but that goes against the spirit of Java). As for C++ vs. C# vs VB, it shouldn't matter because each should have bindings for the necessary system calls.

    You should be able to find tutorials and code samples (try CodeProject) that cover what you want to do. One (older) approach is to use a frameless, full-screen window and ignore keystrokes/system commands that would make the app lose focus by (e.g) setting a system flag which indicates a screen saver is running. I'm not certain what the modern approach would be, but there should be a tutorial or blog entry somewhere that covers it. The real trick is preventing ctrl-alt-del from interfering. You could also write a screensaver and let Windows handle the password authentication.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  5. #5
    espfutbol98's Avatar
    espfutbol98 is offline x10 Sophmore espfutbol98 is an unknown quantity at this point
    Join Date
    Apr 2009
    Location
    Zagreb... želim
    Posts
    200

    Re: Desktop Lock Program

    Okay I found a good source project at http://www.codeproject.com/KB/applic...rkStation.aspx but I still have no clue how to change the embedded textbox into a floating window with an image and textbox. I also don't know how to turn a project into an .exe in Visual Studio.

  6. #6
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Desktop Lock Program

    Quote Originally Posted by espfutbol98 View Post
    Okay I found a good source project at http://www.codeproject.com/KB/applic...rkStation.aspx but I still have no clue how to change the embedded textbox into a floating window with an image and textbox.
    Simplest solution is to use a dialog box. Alternatively, try creating a multi-document app.

    Quote Originally Posted by espfutbol98 View Post
    I also don't know how to turn a project into an .exe in Visual Studio.
    The process of turning source code into executables is "compiling", so a Google search for "visual studio" how to compile should turn up information about the build process.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  7. #7
    Sharky's Avatar
    Sharky is offline Admiral Awesome Sharky will become famous soon enough
    Join Date
    Oct 2007
    Location
    Outside the USA
    Posts
    3,306

    Re: Desktop Lock Program

    I don't think it's possible...
    BECAUSE: The CTRL+ALT+DEL key combo is 'locked' to ... winlogon I believe, as soon as Windows starts. This is why they call it the 'secure desktop'. If you created an app to go fullscreen and provide a login form, you could bypass it.

    Unless you're trying to create something to run on a PC and harvest usernames and passwords, that looks just like the Windows box...
    The physics is theoretical but the fun is real.

  8. #8
    espfutbol98's Avatar
    espfutbol98 is offline x10 Sophmore espfutbol98 is an unknown quantity at this point
    Join Date
    Apr 2009
    Location
    Zagreb... želim
    Posts
    200

    Re: Desktop Lock Program

    Quote Originally Posted by Sharky View Post
    I don't think it's possible...
    BECAUSE: The CTRL+ALT+DEL key combo is 'locked' to ... winlogon I believe, as soon as Windows starts.
    It actually is possible in at least 2 different ways: there is a regestry key you can edit to disable the task manager (temporarily of course) and also you can open the task manager but have it go just behind the locking program window.

+ Reply to Thread

Similar Threads

  1. Replies: 9
    Last Post: 09-22-2008, 09:53 PM
  2. Linux VS Windows
    By deathball619 in forum Crossfire
    Replies: 90
    Last Post: 05-01-2008, 01:04 AM
  3. Mobile phone Codes
    By greeting in forum Computers & Technology
    Replies: 10
    Last Post: 03-28-2008, 07:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers