Sign in to follow this  
Followers 0
ModemJunki

Seeing what RUNDLL32 is doing, and waiting for it to finish?

3 posts in this topic

#1 ·  Posted (edited)

I'm stumped (not very adept at this).

I need to launch a script that will wait if rundll32 is doing a Plug and Play event in XP. I have a script that blocks the new hardware agent. I need to do this to install drivers in a particular order.

Rundll32 is called with a commandline by Services.exe like so:

rundll32.exe newdev.dll,ClientSideInstall \\.\pipe\PNP_Device_Install_Pipe_0.{<PNP string>}

However, there is no window to get a handle on... ?

Any help is appreciated.

(edit - found this link for Visual Studio

CMP_WaitNoPendingInstallEvents)

Edited by ModemJunki

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I'm stumped (not very adept at this).

I need to launch a script that will wait if rundll32 is doing a Plug and Play event in XP. I have a script that blocks the new hardware agent. I need to do this to install drivers in a particular order.

Rundll32 is called with a commandline by Services.exe like so:

rundll32.exe newdev.dll,ClientSideInstall \\.\pipe\PNP_Device_Install_Pipe_0.{<PNP string>}

However, there is no window to get a handle on... ?

Any help is appreciated.

(edit - found this link for Visual Studio

CMP_WaitNoPendingInstallEvents)

are you firing the rundll32 instances you're waiting on? if so, assign the RUN() that launches them to a variable and then use processexists() in a while loop to wait for it to end, or just use runwait() to run your rundll32's. Edited by cameronsdad

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

are you firing the rundll32 instances you're waiting on? if so, assign the RUN() that launches them to a variable and then use processexists() in a while loop to wait for it to end, or just use runwait() to run your rundll32's.

Thanks for the reply.

No, I'm not in control of firing off the DLL - Windows is doing it. My script is running at startup, so I need it to wait until the Plug and Play event closes. My script launches another script that cancels the "Found New Hardware" dialogs that occur during this phase.

For the moment I put up a splash screen and have a 3-minute sleep, but thats less than ideal if the hardware changes and PnP takes longer.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0