Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example of Rundll.exe Multi-function implementation Command

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the example of Rundll.exe multi-function command, which is very detailed and has certain reference value. Friends who are interested must finish it!

First of all, please do a small experiment (please save the results of the program you are running in advance) ∶ click "start-Program-Ms-Dos", enter the Dos window, then type "rundll32.exe user.exe,restartwindows", and then press enter, and you will see that the machine has been restarted!

Of course, the function of Rundll is not just to restart your machine. In fact, Rundll, as the name implies, executes Dll, and its function is to call the dynamic link library of Windows in the way of command line. The difference between Rundll32.exe and Rundll.exe is that the former is a 32-bit call link library, while the latter is a 16-bit link library, and their command format is ∶.

RUNDLL.EXE

Here are three points to pay attention to, ∶.

1. The Dll file name cannot contain spaces. For example, if the file is located in the c:\ Program Files directory, you need to change the path to c:\ Progra~1.

2. There must be a comma between the Dll file name and the Dll entry point, otherwise the program will make an error and will not give any information!

3. This is the most important point that ∶ Rundll cannot be used to call Dll with return parameters, such as GetUserName (), GetTextFace () in Win32API, and so on.

In Visual Basic, an instruction Shell to execute an external program is provided in the format ∶

Shell "Command Line"

If you can use the Shell instruction well with Rundll32.exe, it will make your VB program have an effect that is difficult or even impossible to achieve in other ways. ∶ still takes restart as an example, the traditional method requires you to create a module in the VB project, and then write a declaration of WinAPI before you can call in the program. And now all it takes is:

Shell "rundll32.exe user.exe,restartwindows" is done!

In fact, Rundll32.exe has a unique advantage in calling a variety of Windows control panels and system options.

Command line: rundll32.exe shell32.dll,Control_RunDLL

Function: display control panel

Command line: rundll32.exe shell32.dll,Control_RunDLL access.cpl,1

Function: display the Control Panel-Auxiliary options-Keyboard option window

Command line: rundll32.exe shell32.dll,Control_RunDLL access.cpl,2

Function: display the Control Panel-Auxiliary options window

The above is all the contents of the article "examples of Rundll.exe multi-function implementation commands". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report