2

I am trying to create a simple batch script to run in windows that wait for 20 minutes and then block the inputs by a minute.

TIMEOUT 1200
rundll32.exe User32.dll, BlockInput 1
TIMEOUT 60
rundll32.exe User32.dll, BlockInput 0

But it looks like according to Microsoft (https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/rundll32) "Rundll32 can only call functions from a DLL explicitly written to be called by Rundll32."

Can rundll32 run BlockInput from User32.dll?

If it is not possible, how could I access the function using only native windows software? (Powershell, VBScript, JScript, etc)

asked Jun 17, 2020 at 20:39
1
  • BlockInput(BOOL fBlockIt) so Rundll32 passes a window handle in parameter 1. Commented Jun 17, 2020 at 20:54

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.