473,466 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Lockdown and Idle events

Hi all
I would like to run my app (C# 3.0 Win application) on the following XP
pro/home events:
Enter and exit idle mode (peripherals don't get input for few minutes)
Station lockdown and entrance (winkey + L or alt+ctrl+del -lock computer)
I can create windows C# service that periodically check (if its possible)
the different situations, but I don’t want to add load to the station.

Please advice,

Sharon
Jul 22 '07 #1
1 2045
FYI i found some win32 entry :

Private Declare Sub LockWorkstation Lib "User32.dll" Alias
"LockWorkStation" ()

Private Declare Function OpenDesktop Lib "user32" Alias "OpenDesktopA"
(params) as Long

Private Declare Function CloseDesktop Lib "user32" (ByVal hDesktop As Long)
As Long

I will try to use them.
Thank you
Sharon
"Sharon whipple" wrote:
Hi all
I would like to run my app (C# 3.0 Win application) on the following XP
pro/home events:
Enter and exit idle mode (peripherals don't get input for few minutes)
Station lockdown and entrance (winkey + L or alt+ctrl+del -lock computer)
I can create windows C# service that periodically check (if its possible)
the different situations, but I don’t want to add load to the station.

Please advice,

Sharon

Aug 13 '07 #2

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

Similar topics

2
by: Michael Albainy | last post by:
Hello, I am trying access a virtual directory I set-up through IIS and my web pages are built on asp. I also ran the IIS Lockdown tool on the server, and I have never been able to view the...
6
by: Joakim Rylander | last post by:
Hi all, Another question regarding public access to a PC. How do I most efficiently and securely expose a keyboard to the public without compromising the PC? I don't mean physically, but how...
2
by: Keith Wilby | last post by:
The link below: http://support.microsoft.com/default.aspx?scid=kb;en-us;128814 to the Microsoft KB "Detect Idle Time" article shows how to detect "idle" time. However, if a user is active but...
19
by: Frank Rizzo | last post by:
I want to log the user out when there has been a period of inactivity in the application. The key here is inactivity of the application, not the system. I know that you can retrieve the...
0
by: Douglas J. Badin | last post by:
When I apply IIS Lockdown to SBS 2000 + ASP.NET 1.1 I run into NTFS persmission issues with the IWAM_computername user account, i.e. csc.exe. I tried using the Dynamic Web template and the SBS...
11
by: Alvin Bruney | last post by:
I've run iis lockdown and debugging stopped working. I've added the debug verb to urlscan. The error message is asp.net and atl server cannot be debugged. I haven't seen this one before. If I...
1
by: Thomas | last post by:
How do you add events to the idle process? I know how to do it in Delphi and VC++ but not VB, anyone know? I would rather use the idle event instead of a timer event. Thanks
8
by: Stefan Barlow | last post by:
On IIS 6, I've disabled idle timeouts and any app pool recycling other than the 29 hour timed recycle. I've disabled both on the app pool itself and on all app pools at the server level. I've...
1
by: Leo Smith | last post by:
Hello, I would like to find out if anyone has setup a page to track if a page has been idle for a set amount of time. The timer would need to reset anytime something was done on the page. I have...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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,...
1
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...
0
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...
0
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...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.