Sign in to follow this  
Followers 0
tlman12

DLLCall halts script

4 posts in this topic

Is there anyway to do a dllcall that dosn't hold up the script while its going?

i know some dll functions have a callback function that would allow this, but i'm using one where the callback funciton isn't documented or not that i can find. It's for the DeleteProfile fucntion in Userenv.dll

heres a link to the msdn http://msdn.microsoft.com/en-us/library/bb762273(VS.85).aspx

i want to have some sort of progress bar but on some computers the dll call is so slow that the computer thinks the script has frozen..

Share this post


Link to post
Share on other sites



Cant see a callback version on MSDN. Maybe first delete the profile directories in a loop and afterwards remove the profile? Should speed up the dllcall itself at least.

Share this post


Link to post
Share on other sites

Perhaps you could run it in a new process.

Thought about that too, though he wont get any progress indication. Hmmm, maybe loop calling a DirGetSize()? If you try that, search forum for _DirGetSizeEx, as DirGetSize itself is also blocking :blink: ...

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