ShellExecuteW

 

Hello everybody,

Using ShellExecuteW makes the program crash now (version 586).

Here is a example (script that worked well on previous versions):

#import "shell32.dll"
int ShellExecuteW(int hWnd,int lpVerb,string lpFile,string lpParameters,string lpDirectory,int nCmdShow);
#import

void OnStart()

  { ShellExecuteW(0,0,"Notepad.exe","","",1);}


Thank you in advance

Daniel

 

I forgot to mention that I use Vista 32 bits