--- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote: > > --- In [email protected], "swzoh" <seanzoh@> wrote: > > > > --- In [email protected], "Ted Wall" <TedWall@> wrote: > > > > > > "I'll add this to a future version of file..." > > > > > > Thanks Bruce, looking for the file version since I couldn't do this > > > using the ShellExecuteEx API. The ShellExecuteEx API needs a minimum > > > of 10 arguments using dll plugin (a minimum of 9 arguments in the > > > structure plus the definition for the dll) and powerpro only allows > > > 8, unless I'm missing something... > > > > You can use the argument separator, defaulting to |. I did a quick > > test with the following, but it failed in my system with the error > > code ERROR_ACCESS_DENIED. You may correct it: > > The following seems to work fine, though I set incorrect types for the > unneeded args: > > local sVerb="properties" > local sFile=?"C:\WINDOWS\explorer.exe" > local sParam > local sWork > local hWnd,hInst,hProc > > local sei=dll.create_struct("ui ui ui s s s s i i i i ui ui ui ui", > 60,0x44C,"hWnd","sVerb|sFile|sParam|sWork",1,"hInst| | | | | |hProc") > dll.call("shell32.dll|ShellExecuteEx|t* i",sei)
I just noticed that the handle to the structure sei is not destroyed automatically even if I set sei local, so have to add at the end: dll.release(sei) Sean Attention: PowerPro's Web site has moved: http://www.ppro.org Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/power-pro/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
