Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

鎖定鍵盤和滑鼠

41 views
Skip to first unread message

丹佐

unread,
Sep 19, 2006, 2:11:01 AM9/19/06
to
請問可以用VB.NET鎖定鍵盤和滑鼠嗎?
就是類似Windows內建的鎖定功能,
簡單說,就是使鍵盤滑鼠失效、沒反應,
請各位先進賜教,謝謝。

SanJay

unread,
Sep 26, 2006, 2:18:08 PM9/26/06
to
Hi,

Maybe you can try BlockInput API, which is a Win32 API and blocks keyboard
and mouse input events from reaching applications.

Declare Function BlockInput Lib "User32" _
(ByVal fBlockIt As Boolean) As Boolean

But it is useless when the user presses CTRL+ALT+DEL

I hope this information is useful for you!!!

Sanjay Baker

"丹佐" <@discussions.microsoft.com> 撰寫於郵件新聞:D32F479D-907F-4B57...@microsoft.com...

0 new messages