Results 1 to 20 of 20

Thread: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

  1. #1

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Thumbs up [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Hi guys..

    I was looking for some sort of security mechanism to prevent unauthorized access to a PC, which could be added to my future project - "Internet Cafe Management System".

    So, I did some digging and wasn't satisfied by most of the solutions available. And I finally found this solution.

    It's not completely my code, but it's a mixed up version.

    Hope this will help some of you guys.

    Please note that, this code snippet needs some improvements. I hope, you all will contribute something to improve this piece of code.

    Regards,
    - Akhilesh
    Attached Files Attached Files

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  2. #2
    New Member
    Join Date
    Feb 2011
    Posts
    4

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Ah, That's awesome dude.
    Nice job, Nice Findings.

    There is so many things I could do with this.
    Last edited by Snotty; Feb 25th, 2011 at 01:59 AM.

  3. #3

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Welcome

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  4. #4

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    This might be exactly what I was looking for.

    EDIT: It doesn't stop Alt+Tab from working though. Do you know how to do that?
    Last edited by formlesstree4; Feb 27th, 2011 at 12:52 PM.

  5. #5

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Quote Originally Posted by formlesstree4 View Post
    This might be exactly what I was looking for.

    EDIT: It doesn't stop Alt+Tab from working though. Do you know how to do that?
    Hi...

    I'll try to find a solution for that.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  6. #6

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    @formlesstree4: I couldn't find anything on pressing "Alt + Tab" or "Win + Tab" ! What does it do when you press that combination ? I'm using WinXP Pro SP3.


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  7. #7

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Quote Originally Posted by akhileshbc View Post
    @formlesstree4: I couldn't find anything on pressing "Alt + Tab" or "Win + Tab" ! What does it do when you press that combination ? I'm using WinXP Pro SP3.

    It tabs out of the program, bringing the next thing to front. At most, it just reveals the taskbar which would allow people to mess with the program.

  8. #8

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Quote Originally Posted by formlesstree4 View Post
    It tabs out of the program, bringing the next thing to front. At most, it just reveals the taskbar which would allow people to mess with the program.
    I'm not able to reproduce the problem ! I have tried it several times on my PC and I'm not experiencing anything like you have mentioned. I mean, I can't access any other applications which was opened in original desktop.

    Do you have any running applications in the new desktop ?


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  9. #9
    New Member
    Join Date
    Sep 2009
    Posts
    6

    Smile Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Quote Originally Posted by formlesstree4 View Post
    This might be exactly what I was looking for.

    EDIT: It doesn't stop Alt+Tab from working though. Do you know how to do that?
    Use winlock.
    Link:
    Code:
    http://www.codeproject.com/KB/winsdk/AntonioWinLock.aspx
    I have posted codes here too.
    Code:
    http://www.supportforums.net/showthread.php?tid=18700

  10. #10

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Quote Originally Posted by euverve View Post
    Use winlock.
    Link:
    Code:
    http://www.codeproject.com/KB/winsdk/AntonioWinLock.aspx
    I have posted codes here too.
    Code:
    http://www.supportforums.net/showthread.php?tid=18700
    That codeproject page mentions about "Switch to a new desktop". I think, that's what the code I have posted does !


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  11. #11
    New Member
    Join Date
    Apr 2011
    Posts
    1

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Nice

  12. #12
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    LOL, good luck with this! I tried to implement something like this at work and probably spent 5,000 hours on this stupid thing, trying to solve what should have been a personnel issue with technology. It was such a nightmare and still doesn't work right. It is extremely hard to build a Kiosk type application preventing a user to get to other windows, taskbar, etc...

    Visual Studio 2010

  13. #13
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Oh ya, and God forbid you have more than one screen.

    Visual Studio 2010

  14. #14
    Stack Overflow mod​erator
    Join Date
    May 2008
    Location
    British Columbia, Canada
    Posts
    2,824

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    That's pretty good, you can't put Task Manager above it even, or use Win+Tab or Alt+Tab. Good job! Make the middle form non-maximizeable using WndProc because Win+Up does some strange things.

  15. #15

    Thread Starter
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Thanks.. will do that


    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  16. #16
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Quote Originally Posted by minitech View Post
    That's pretty good, you can't put Task Manager above it even, or use Win+Tab or Alt+Tab. Good job! Make the middle form non-maximizeable using WndProc because Win+Up does some strange things.
    That's very surprising, and even more surprising if it works the same way on XP and Win7. It seems that I could NEVER prevent the Task Manager from coming to the top, unless we totally disabled the Task Manager. But that caused other unintended consequences. I think that Steve goes through great pains to prevent this sorta stuff to deny virus makers the ability to wreck havoc on people.
    Last edited by softwareguy74; Aug 19th, 2011 at 09:48 PM.

    Visual Studio 2010

  17. #17

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    I think that Steve goes through great pains to prevent this sorta stuff to deny virus makes the ability to wreck havoc on people.
    What are you even trying to say? Who is this Steve you talk about?

  18. #18
    Stack Overflow mod​erator
    Join Date
    May 2008
    Location
    British Columbia, Canada
    Posts
    2,824

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    I can't tell if you're serious or not so I'm not going to answer that question in large type.

    Ballmer of Microsoft, I believe.

  19. #19

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Quote Originally Posted by minitech View Post
    I can't tell if you're serious or not so I'm not going to answer that question in large type.

    Ballmer of Microsoft, I believe.
    ...oh, I was thinking of Steve Jobs, and I was like "what does Steve Jobs, who is at Apple, have to do with this?!" So I was kind of confused...but I'm tired anyway.

  20. #20
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    Re: [VB2010] Locking Screen - useful for Internet Cafe programs, etc..

    Yes, Ballmer...

    Visual Studio 2010

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width