WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
loading my own "resolveExample.dll" PopUp problem! (Read 2272 times)
Palle500
YaBB Newbies
*
Offline



Posts: 2
loading my own "resolveExample.dll" PopUp problem!
Apr 8th, 2012 at 11:16pm
 
Hi,
I have made my own "resolveExample.dll" it works fine. I have some popup messages if error occure inside that DLL that I don't like to show up then editing the WD task.

it looks like this: code{WdFileID.dll, {drive}:\{originalfull}, {runnumber}, {eventnumber}}

I plan to use the {runnumber} and {eventnumber} to prevent the DLL from do any popup then I editing the WD task,
by checking if the {runnumber} = 721 and {eventnumber} = 12413. Who are the default values in edit mode.

Could you garantie that this values won't change? Or where could I found this values (config file)?

//Palle500
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2239
The Netherlands
Re: loading my own "resolveExample.dll" PopUp prob
Reply #1 - Apr 8th, 2012 at 11:39pm
 
Hej Palle,

No, we can not guarantee that Wink

Here is a better way:
Call GetModuleFileName ( http://msdn.microsoft.com/en-us/library/windows/desktop/ms683197%28v=vs.85%29.as... ) from the DLL and pass NULL for the HMODULE so you will receive the complete path of the calling exe.

If it ends with wdrun.exe you are called when the task is running. If it ends with wdcc.exe your dll is called while configuring the task. I think you need to ignore CaSe for the exe names.
Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Palle500
YaBB Newbies
*
Offline



Posts: 2
Re: loading my own "resolveExample.dll" PopUp prob
Reply #2 - Apr 8th, 2012 at 11:43pm
 
Hi Gert,
Thanks I know how to do that. I worked a lot of this then I struggled to find the DLL process handle and not the loading program!

Great Thanks for you quick reply.

//Palle
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1