function OpenAs_RunDLL(const AWND1, AWND2: HWND; const AFilename: PChar;AShow: Integer = SW_SHOW):integer; stdcall; external 'shell32.dll ';也可使用ShellExecute,lpOperation 设置为‘OpenAS’,不过这个不太好使,需要保证对应类型的注册表有下面的项
[HKEY_CLASSES_ROOT\Unknown\shell\openas\command]
@=”%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\shell32.dll,OpenAs_RunDLL %1”
"DelegateExecute"="{e44e9428-bdbc-4987-a099-40dc8fd255e7}"
浙公网安备 33010602011771号