China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-28 16:26
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » [Help]Commands to lock the mouse and keyboard under Windows View 1,539 Replies 5
Original Poster Posted 2004-12-26 00:00 ·  中国 上海 静安区 电信
初级用户
Credits 148
Posts 18
Joined 2004-11-30 00:00
21-year member
UID 34236
Gender Male
Status Offline
Commands to lock mouse and keyboard under Windows
As the title suggests
Seeking advice
How to achieve under Windows without any third-party software
Only using Windows built-in commands, functions, etc. to lock the mouse and keyboard
Floor 2 Posted 2004-12-26 00:00 ·  中国 上海 静安区 电信
初级用户
Credits 148
Posts 18
Joined 2004-11-30 00:00
21-year member
UID 34236
Gender Male
Status Offline
My own research result is that rundll32.exe user32.dll,ClipCursor can lock the mouse but not every time successfully. I don't know why. Maybe I'm not familiar with how to use it yet. Please teach those who know how to use it.
Floor 3 Posted 2004-12-28 00:00 ·  中国 上海 静安区 电信
初级用户
Credits 148
Posts 18
Joined 2004-11-30 00:00
21-year member
UID 34236
Gender Male
Status Offline
First, I'll help you top it. Although this question doesn't seem related to DOS, I still hope to find an answer here.
Floor 4 Posted 2004-12-30 00:00 ·  中国 上海 静安区 电信
初级用户
Credits 148
Posts 18
Joined 2004-11-30 00:00
21-year member
UID 34236
Gender Male
Status Offline
Is really no one interested?
Floor 5 Posted 2004-12-30 00:00 ·  中国 广东 广州 海珠区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Oh... I don't understand why the original poster locked the most important input devices, the mouse and keyboard. After locking, they can't move, which is like a system crash?! I only know that using rundll32.exe user32.dll,LockWorkStation. This will show the interface to select the user to log in. The mouse and keyboard can still move, but if the system password is set, then people who don't know the password can't log in and return to the desktop, so this can achieve the purpose of preventing outsiders from using it.
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 6 Posted 2004-12-30 00:00 ·  中国 上海 静安区 电信
初级用户
Credits 148
Posts 18
Joined 2004-11-30 00:00
21-year member
UID 34236
Gender Male
Status Offline
Hehe, of course I have my own thoughts. A question: when you're researching something and almost have the answer, do you want to know the final answer or do you choose to give up? As far as I know, it can definitely be achieved using user32.dll, but I just don't know the specific parameters. So I want to ask those who know and also let everyone know. A small tip isn't bad, right? I just hope to discuss and make progress together, no other purpose. Unlike what others say: What do you want to do? Be a hacker to bluff people? Do you need to be so troublesome to bluff people? There are so many such software everywhere. But this makes me feel even more necessary to know the answer. Because when your machine is "bluffed" and the mouse doesn't work, do you need to restart or even find third-party software? It's so troublesome. But if you know that entering a command can解除 it, then what will happen? Just like the Slammer virus, it will make your machine restart. Isn't it very headache-inducing? But if when it makes you restart, you enter shutdown -a to cancel it, will you still feel headache? Haha, it seems I've drifted away. Let's get back to the mouse issue. As far as I know, rundll32.exe user32.dll,ClipCursor followed by parameters can lock the mouse, but it's not always successful because I don't know the specific parameters. I just tried using 1 or 1,1, etc. And I don't know the format of the parameters that follow, but it seems that using 0 can cancel the lock. That's all I can provide. I hope those who are interested can go back and try it themselves. Also, I hope those who know the answer can tell everyone. Thanks.
Forum Jump: