473,608 Members | 2,689 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable Ctrl-Alt-Delete for Visual Basic .net

I am developing an application where I need to secure a
workstation for periods of time. I can use BlockInput to
stop users from task switching or messing with the
keyboard, but I would like to disable Ctrl-Alt-Delete.

It seems there seems to be only one real way I know
about: Write a replacement Gina Driver to eat the
keyboard events I dont want. Does anyone have a good
template for this in Visual Basic .Net?

Or if there is an easier way that work in Win2K I am all
ears!

Thanks!

Jul 21 '05 #1
5 5910
I would think that if you could override CTL+ALT+DEL, you'd be getting
around one of Window's main security tasks.
"Greg" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I am developing an application where I need to secure a
workstation for periods of time. I can use BlockInput to
stop users from task switching or messing with the
keyboard, but I would like to disable Ctrl-Alt-Delete.

It seems there seems to be only one real way I know
about: Write a replacement Gina Driver to eat the
keyboard events I dont want. Does anyone have a good
template for this in Visual Basic .Net?

Or if there is an easier way that work in Win2K I am all
ears!

Thanks!

Jul 21 '05 #2
Thats exactly right.

In some environments, the PC's need to be locked down tighter than normal.
Hence I need to disable this screen under certain conditions.

g.
"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Ov******** ********@TK2MSF TNGP10.phx.gbl. ..
I would think that if you could override CTL+ALT+DEL, you'd be getting
around one of Window's main security tasks.
"Greg" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I am developing an application where I need to secure a
workstation for periods of time. I can use BlockInput to
stop users from task switching or messing with the
keyboard, but I would like to disable Ctrl-Alt-Delete.

It seems there seems to be only one real way I know
about: Write a replacement Gina Driver to eat the
keyboard events I dont want. Does anyone have a good
template for this in Visual Basic .Net?

Or if there is an easier way that work in Win2K I am all
ears!

Thanks!


Jul 21 '05 #3
My point was, I don't think MS provides a way to defeat their first line of
defense.
<gregory_may@N_ O_S_P_A_M_hotma il.com> wrote in message
news:ur******** ********@TK2MSF TNGP10.phx.gbl. ..
Thats exactly right.

In some environments, the PC's need to be locked down tighter than normal.
Hence I need to disable this screen under certain conditions.

g.
"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Ov******** ********@TK2MSF TNGP10.phx.gbl. ..
I would think that if you could override CTL+ALT+DEL, you'd be getting
around one of Window's main security tasks.
"Greg" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
I am developing an application where I need to secure a
workstation for periods of time. I can use BlockInput to
stop users from task switching or messing with the
keyboard, but I would like to disable Ctrl-Alt-Delete.

It seems there seems to be only one real way I know
about: Write a replacement Gina Driver to eat the
keyboard events I dont want. Does anyone have a good
template for this in Visual Basic .Net?

Or if there is an easier way that work in Win2K I am all
ears!

Thanks!



Jul 21 '05 #4
This article seems to give a good overview if I knew C better:
http://www.codeguru.com/mfc/comments/2574.shtml

Here is a Microsoft article that tells me about a Platform SDC with the C
code that I need, but I was hoping for a VB port someplace. C is pretty
weak for me.
http://msdn.microsoft.com/library/de...n_and_gina.asp

Here is a guy doing it in DELPHI!:
http://rds.yahoo.com/S=2766679/K=gin..._20747621.html

"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:eR******** ******@TK2MSFTN GP12.phx.gbl...
My point was, I don't think MS provides a way to defeat their first line of defense.
<gregory_may@N_ O_S_P_A_M_hotma il.com> wrote in message
news:ur******** ********@TK2MSF TNGP10.phx.gbl. ..
Thats exactly right.

In some environments, the PC's need to be locked down tighter than normal. Hence I need to disable this screen under certain conditions.

g.
"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Ov******** ********@TK2MSF TNGP10.phx.gbl. ..
I would think that if you could override CTL+ALT+DEL, you'd be getting
around one of Window's main security tasks.
"Greg" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
> I am developing an application where I need to secure a
> workstation for periods of time. I can use BlockInput to
> stop users from task switching or messing with the
> keyboard, but I would like to disable Ctrl-Alt-Delete.
>
> It seems there seems to be only one real way I know
> about: Write a replacement Gina Driver to eat the
> keyboard events I dont want. Does anyone have a good
> template for this in Visual Basic .Net?
>
> Or if there is an easier way that work in Win2K I am all
> ears!
>
> Thanks!
>



Jul 21 '05 #5
A reply to this thread has been made in microsoft.publi c.dontnet.fraim work
(I am posting here):

Hello,

Thanks for your post. As I understand, you want to trap and disable
Ctrl-Alt-Delete programmaticall y in Win2K. Please correct me if there is
any misunderstandin g. I reviewed your description carefully, and now I'd
like to share the following information with you:

1. As documented in the article to which you pointed, you can use
DisableTaskMgr to disable Ctrl+Alt+Del. To trap Ctrl+Alt+Del, you have
three options: write a GINA stub, write a keyboard driver, or replace
TaskMgr.exe with your own program. I recommend you create a GINA stub which
is comparatively easy to implement among these three options.

2. However, we have to use VC instead of VB to implement a GINA Stub. As
you know, a GINA Stub is a native dynamic-link library (DLL) exported to
Winlogon that requires a valid, consistent function to call into. This
requires a DLL export, which .NET Framework does not support. Managed code
(VB .NET, C#) has no concept of a consistent value for a function pointer
because these function pointers are proxies that are built dynamically.

3. There is an existing GINA Stub sample in MSDN. To trap/disable
Ctrl-Alt-Delete, you just need to replace its WlxLoggedOnSAS with the one
in my code snippet below.

GinaStub Sample: Pass-through "Stub" Gina
http://msdn.microsoft.com/library/de...us/vcsample98/
html/vcsmpginastubsa mple.asp?frame= true

/*----------------------------code snippet----------------------*/
int
WINAPI
WlxLoggedOnSAS(
PVOID pWlxContext,
DWORD dwSasType,
PVOID pReserved)
{
if (dwSasType == WLX_SAS_TYPE_CT RL_ALT_DEL)
{
/* Add additional code of you own */
return WLX_SAS_ACTION_ NONE;
}
else
return GWlxLoggedOnSAS ( pWlxContext, dwSasType, pReserved );
}
/*-----------------------------end of--------------------------------*/

In addition, I believe the following MSDN aritcles are helpful:

WlxLoggedOnSAS
http://msdn.microsoft.com/library/de...us/security/se
curity/wlxloggedonsas. asp

Loading and Running a GINA DLL
http://msdn.microsoft.com/library/de...us/security/se
curity/loading_and_run ning_a_gina_dll .asp

Please feel free to let me know if you have any problems or concerns.

Have a nice day!

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
"gregory_ma y" <None> wrote in message
news:uA******** ******@TK2MSFTN GP12.phx.gbl...
This article seems to give a good overview if I knew C better:
http://www.codeguru.com/mfc/comments/2574.shtml

Here is a Microsoft article that tells me about a Platform SDC with the C
code that I need, but I was hoping for a VB port someplace. C is pretty
weak for me.
http://msdn.microsoft.com/library/de...n_and_gina.asp
Here is a guy doing it in DELPHI!:
http://rds.yahoo.com/S=2766679/K=gin..._20747621.html
"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:eR******** ******@TK2MSFTN GP12.phx.gbl...
My point was, I don't think MS provides a way to defeat their first line

of
defense.
<gregory_may@N_ O_S_P_A_M_hotma il.com> wrote in message
news:ur******** ********@TK2MSF TNGP10.phx.gbl. ..
Thats exactly right.

In some environments, the PC's need to be locked down tighter than normal. Hence I need to disable this screen under certain conditions.

g.
"Scott M." <s-***@BADSPAMsnet .net> wrote in message
news:Ov******** ********@TK2MSF TNGP10.phx.gbl. ..
> I would think that if you could override CTL+ALT+DEL, you'd be getting > around one of Window's main security tasks.
>
>
> "Greg" <an*******@disc ussions.microso ft.com> wrote in message
> news:00******** *************** *****@phx.gbl.. .
> > I am developing an application where I need to secure a
> > workstation for periods of time. I can use BlockInput to
> > stop users from task switching or messing with the
> > keyboard, but I would like to disable Ctrl-Alt-Delete.
> >
> > It seems there seems to be only one real way I know
> > about: Write a replacement Gina Driver to eat the
> > keyboard events I dont want. Does anyone have a good
> > template for this in Visual Basic .Net?
> >
> > Or if there is an easier way that work in Win2K I am all
> > ears!
> >
> > Thanks!
> >
>
>



Jul 21 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
23513
by: chirs | last post by:
I have a code to disable ctrl-v (paste) on the 2nd box. The problem is that when I type ctrl-v, the text shows, then disappear after I release ctrl-v. How can I make it not to show in the box. In VB, I can set keyascii=0 to kill the input. Is there a similar way to do it in JavaScript? Thanks a lot. <HTML><head></head><body> <form name="myForm"> Password: <input type="text"><br> Comfirm: <input type="text" name="myText"
6
3151
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled href="#">bahbahbah</a> Does not work, as it is still clickable. It only changes the color to grey.
3
4014
by: Sumit | last post by:
Hi all, Is there any way to disable copy & paste options using ctrl + Insert & Shift + Insert respectively on Windows forms using C#. Kindly Help !! Regards Sumit Vohra
17
3015
by: Alan Z. Scharf | last post by:
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web application? Thanks. Alan
3
6670
by: Stilgar[bbs.isca.uiowa.edu] | last post by:
Here's my newbie question: I have several VB forms which are all inherit a standard template form that I made. In my template form, I added a menu bar with some generic cut, copy, and paste functionality. I'd like to have the paste button disabled when the clipboard is empty, but I'm not sure how I should do this. Ideally, I suppose I'd like to constantly monitor the clipboard for data, (in a thread?) but I'm not even sure how I'd...
2
3221
by: rn5a | last post by:
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order he had placed will be displayed in a DataList. Also assume that the OrderID of the last order is 13. The details of the earlier orders placed by a particular user (when the user places more than 1 order) can be viewed by clicking links. The...
14
3764
by: Amar | last post by:
Hi All, I am a newbie to PHP and have the task to create a page using PHP where in that page I need to disable all key operation as well as mouse operation even also the menu operation that means printscreen. I have only the java script code for mouse right click disable but that does not allow me to disable to do ctrl+c. So I need some help that can solve my task. Waiting for your replies. Thanks,
6
17779
by: =?Utf-8?B?TWljaGFlbCAwMw==?= | last post by:
I need to disable the clipboard function in Windows XP. We are having a problem with users using CTRL+C in one program, then using CTRL+V in another. Specifically, they type their password into notepad, copy it to the clipboard, then paste it in another program. The other program runs on Windows XP. Obviously, the correct answer is to have the creators of the other program to disable pasting in a password field, but they are reluctant...
0
4983
by: ssknov | last post by:
hi all can any one help me how to disable all buttons in a form except few using a method. I coded to disable all buttons as: private void disable_buttons() { foreach (Control ctrl in this.Controls) {
9
3059
by: timw.google | last post by:
Is there a way to disable ctrl-P (print window) in IDLE? I'm editing some python code in IDLE and I keep hitting this by mistake from my years of emacs editing. Thanks in advance.
0
7987
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8472
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8464
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8130
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6805
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3954
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4015
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1574
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.