PC Review


Reply
Thread Tools Rate Thread

How to lock a desktop (workstation)

 
 
New Member
Join Date: Aug 2009
Posts: 2
 
      10th Aug 2009
Hi all,
I once receive a mail (excel file with macro) from a friend. Upon clicking a button it locks my window (desktop). I have deleted the file and my friend does not now have it either. It works as simillar as Window+L or Alt+Ctrl+Del and then lock.

could someone help me with this code?

Thanks in advance.
 
Reply With Quote
 
 
 
 
Ian Ian is offline
Rocket Scientist
Ian's Avatar
Join Date: Feb 2002
Location: Manchester, UK
Posts: 16,923
 
      10th Aug 2009
You should be able to use LockWorkStation that comes as part of user32.dll. I can't remember how to code VBScript, but this link should help you make some progress :

http://www.pinvoke.net/default.aspx/...ockWorkStation
 
Reply With Quote
 
 
 
 
New Member
Join Date: Aug 2009
Posts: 2
 
      10th Aug 2009
Thanks for your quick response. Let me try it.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scroll Lock, Num Lock and Caps Lock icons. Mel Bourne Windows XP General 3 19th Jan 2007 08:02 AM
CAPS LOCK SCROLL LOCK NUM LOCK Flashing JJoe Microsoft Windows 2000 Windows Updates 3 21st Mar 2006 02:14 PM
key "S" & "SPACE" have function as caps lock & num lock =?Utf-8?B?UGFrYW5law==?= Windows XP Hardware 1 20th Oct 2004 08:19 PM
How print through Automatic Internet Lock, when lock endages? Lev Windows XP Networking 0 21st Aug 2004 02:30 AM
Setting Function Lock (F-Lock) Multimedia Keyboard =?Utf-8?B?V2lsbA==?= Windows XP Hardware 1 1st Jun 2004 08:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:03 PM.