Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invoking the Windows Security Dialog (in C# or VB.NET)

Tags:

c#

vb.net

winapi

I would like to know how to invoke the Windows Security Dialog (press ctrl+alt+del on a windows workstation NOTE: I don't want the task manager!) programmatically.

ON AN XP WORKSTATION, don't worry about Win7 or Vista

Ideally with a quick example in C# (or VB.NET if you must)

Ive searched many of the DLL's such as msgina.dll and I can't find it anywhere!

Alternatively just invoking the change password screen would be nice!

like image 634
RAGNO Avatar asked Feb 16 '10 14:02

RAGNO


People also ask

What is Windows Security dialog box?

Use this dialog box to determine the level of security used when opening documents, or to remove a certificate from the list of trusted sources.

How do I turn off Windows security prompt?

Right-click on the account that inflicts Windows Security prompt and select Change. Select More settings. Under the Security tab, uncheck the ”Always prompt for login credentials” box and confirm changes. Click OK and save changes.


1 Answers

You can try call WlxLoggedOnSAS function from GINA or WlxSasNotify from WinLogon. But, I afraid it won't work. But, maybe it will lead you to working method. And it definitely will not work in Vista/W7.

In other side, it might be that Windows Security Dialog can be called only by secure attention sequence ( ctrl+alt+del) by securytt reasons.

like image 152
werewindle Avatar answered Sep 27 '22 21:09

werewindle