@@ -190,70 +190,70 @@ bool dnyAS_PluginLoad(dnyVersionInfo version, IShellPluginAPI* pInterfaceData, p
190190 memcpy (pPluginInfos, &g_sPluginInfos, sizeof (plugininfo_s));
191191
192192 // Register constants
193- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_OK int <= 0 ;" );
194- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_OKCANCEL int <= 1 ;" );
195- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ABORTRETRYIGNORE int <= 2 ;" );
196- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_YESNOCANCEL int <= 3 ;" );
197- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_YESNO int <= 4 ;" );
198- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_RETRYCANCEL int <= 5 ;" );
199- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_CANCELTRYCONTINUE int <= 6 ;" );
200- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONHAND int <= 16 ;" );
201- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONQUESTION int <= 32 ;" );
202- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONEXCLAMATION int <= 48 ;" );
203- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONASTERISK int <= 64 ;" );
204- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_USERICON int <= 128 ;" );
205- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONWARNING int <= 48 ;" );
206- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONERROR int <= 16 ;" );
207- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONINFORMATION int <= 64 ;" );
208- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONSTOP int <= 16 ;" );
209- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFBUTTON1 int <= 0 ;" );
210- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFBUTTON2 int <= 256 ;" );
211- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFBUTTON3 int <= 512 ;" );
212- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFBUTTON4 int <= 768 ;" );
213- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_APPLMODAL int <= 0 ;" );
214- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_SYSTEMMODAL int <= 4096 ;" );
215- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_TASKMODAL int <= 8192 ;" );
216- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_HELP int <= 16384 ;" );
217- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_NOFOCUS int <= 32768 ;" );
218- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_SETFOREGROUND int <= 65536 ;" );
219- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFAULT_DESKTOP_ONLY int <= 131072 ;" );
220- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_TOPMOST int <= 262144 ;" );
221- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_RIGHT int <= 524288 ;" );
222- g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_RTLREADING int <= 1048576 ;" );
223- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDOK int <= 1 ;" );
224- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDCANCEL int <= 2 ;" );
225- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDABORT int <= 3 ;" );
226- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDRETRY int <= 4 ;" );
227- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDIGNORE int <= 5 ;" );
228- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDYES int <= 6 ;" );
229- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDNO int <= 7 ;" );
230- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDCLOSE int <= 8 ;" );
231- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDHELP int <= 9 ;" );
232- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDTRYAGAIN int <= 10 ;" );
233- g_pShellPluginAPI->Scr_ExecuteCode (L" const IDCONTINUE int <= 11 ;" );
234- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_OVERWRITEPROMPT int <= 2 ;" );
235- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_STRICTFILETYPES int <= 4 ;" );
236- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NOCHANGEDIR int <= 8 ;" );
237- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_PICKFOLDERS int <= 32 ;" );
238- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_FORCEFILESYSTEM int <= 64 ;" );
239- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_ALLNONSTORAGEITEMS int <= 128 ;" );
240- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NOVALIDATE int <= 256 ;" );
241- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_ALLOWMULTISELECT int <= 512 ;" );
242- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_PATHMUSTEXIST int <= 2048 ;" );
243- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_FILEMUSTEXIST int <= 4096 ;" );
244- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_CREATEPROMPT int <= 8192 ;" );
245- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_SHAREAWARE int <= 16384 ;" );
246- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NOREADONLYRETURN int <= 32768 ;" );
247- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NOTESTFILECREATE int <= 65536 ;" );
248- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_HIDEMRUPLACES int <= 131072 ;" );
249- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_HIDEPINNEDPLACES int <= 262144 ;" );
250- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NODEREFERENCELINKS int <= 1048576 ;" );
251- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_OKBUTTONNEEDSINTERACTION int <= 2097152 ;" );
252- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_DONTADDTORECENT int <= 33554432 ;" );
253- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_FORCESHOWHIDDEN int <= 268435456 ;" );
254- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_DEFAULTNOMINIMODE int <= 536870912 ;" );
255- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_FORCEPREVIEWPANEON int <= 1073741824 ;" );
256- g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_SUPPORTSTREAMABLEITEMS int <= 2147483648 ;" );
193+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_OK int <= " + std::to_wstring (MB_OK) + L" ;" );
194+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_OKCANCEL int <= " + std::to_wstring (MB_OKCANCEL) + L" ;" );
195+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ABORTRETRYIGNORE int <= " + std::to_wstring (MB_ABORTRETRYIGNORE) + L" ;" );
196+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_YESNOCANCEL int <= " + std::to_wstring (MB_YESNOCANCEL) + L" ;" );
197+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_YESNO int <= " + std::to_wstring (MB_YESNO) + L" ;" );
198+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_RETRYCANCEL int <= " + std::to_wstring (MB_RETRYCANCEL) + L" ;" );
199+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_CANCELTRYCONTINUE int <= " + std::to_wstring (MB_CANCELTRYCONTINUE) + L" ;" );
200+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONHAND int <= " + std::to_wstring (MB_ICONHAND) + L" ;" );
201+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONQUESTION int <= " + std::to_wstring (MB_ICONQUESTION) + L" ;" );
202+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONEXCLAMATION int <= " + std::to_wstring (MB_ICONEXCLAMATION) + L" ;" );
203+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONASTERISK int <= " + std::to_wstring (MB_ICONASTERISK) + L" ;" );
204+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_USERICON int <= " + std::to_wstring (MB_USERICON) + L" ;" );
205+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONWARNING int <= " + std::to_wstring (MB_ICONWARNING) + L" ;" );
206+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONERROR int <= " + std::to_wstring (MB_ICONERROR) + L" ;" );
207+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONINFORMATION int <= " + std::to_wstring (MB_ICONINFORMATION) + L" ;" );
208+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_ICONSTOP int <= " + std::to_wstring (MB_ICONSTOP) + L" ;" );
209+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFBUTTON1 int <= " + std::to_wstring (MB_DEFBUTTON1) + L" ;" );
210+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFBUTTON2 int <= " + std::to_wstring (MB_DEFBUTTON2) + L" ;" );
211+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFBUTTON3 int <= " + std::to_wstring (MB_DEFBUTTON3) + L" ;" );
212+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFBUTTON4 int <= " + std::to_wstring (MB_DEFBUTTON4) + L" ;" );
213+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_APPLMODAL int <= " + std::to_wstring (MB_APPLMODAL) + L" ;" );
214+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_SYSTEMMODAL int <= " + std::to_wstring (MB_SYSTEMMODAL) + L" ;" );
215+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_TASKMODAL int <= " + std::to_wstring (MB_TASKMODAL) + L" ;" );
216+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_HELP int <= " + std::to_wstring (MB_HELP) + L" ;" );
217+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_NOFOCUS int <= " + std::to_wstring (MB_NOFOCUS) + L" ;" );
218+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_SETFOREGROUND int <= " + std::to_wstring (MB_SETFOREGROUND) + L" ;" );
219+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_DEFAULT_DESKTOP_ONLY int <= " + std::to_wstring (MB_DEFAULT_DESKTOP_ONLY) + L" ;" );
220+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_TOPMOST int <= " + std::to_wstring (MB_TOPMOST) + L" ;" );
221+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_RIGHT int <= " + std::to_wstring (MB_RIGHT) + L" ;" );
222+ g_pShellPluginAPI->Scr_ExecuteCode (L" const MB_RTLREADING int <= " + std::to_wstring (MB_RTLREADING) + L" ;" );
223+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDOK int <= " + std::to_wstring (IDOK) + L" ;" );
224+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDCANCEL int <= " + std::to_wstring (IDCANCEL) + L" ;" );
225+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDABORT int <= " + std::to_wstring (IDABORT) + L" ;" );
226+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDRETRY int <= " + std::to_wstring (IDRETRY) + L" ;" );
227+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDIGNORE int <= " + std::to_wstring (IDIGNORE) + L" ;" );
228+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDYES int <= " + std::to_wstring (IDYES) + L" ;" );
229+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDNO int <= " + std::to_wstring (IDNO) + L" ;" );
230+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDCLOSE int <= " + std::to_wstring (IDCLOSE) + L" ;" );
231+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDHELP int <= " + std::to_wstring (IDHELP) + L" ;" );
232+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDTRYAGAIN int <= " + std::to_wstring (IDTRYAGAIN) + L" ;" );
233+ g_pShellPluginAPI->Scr_ExecuteCode (L" const IDCONTINUE int <= " + std::to_wstring (IDCONTINUE) + L" ;" );
234+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_OVERWRITEPROMPT int <= " + std::to_wstring (FOS_OVERWRITEPROMPT) + L" ;" );
235+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_STRICTFILETYPES int <= " + std::to_wstring (FOS_STRICTFILETYPES) + L" ;" );
236+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NOCHANGEDIR int <= " + std::to_wstring (FOS_NOCHANGEDIR) + L" ;" );
237+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_PICKFOLDERS int <= " + std::to_wstring (FOS_PICKFOLDERS) + L" ;" );
238+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_FORCEFILESYSTEM int <= " + std::to_wstring (FOS_FORCEFILESYSTEM) + L" ;" );
239+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_ALLNONSTORAGEITEMS int <= " + std::to_wstring (FOS_ALLNONSTORAGEITEMS) + L" ;" );
240+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NOVALIDATE int <= " + std::to_wstring (FOS_NOVALIDATE) + L" ;" );
241+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_ALLOWMULTISELECT int <= " + std::to_wstring (FOS_ALLOWMULTISELECT) + L" ;" );
242+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_PATHMUSTEXIST int <= " + std::to_wstring (FOS_PATHMUSTEXIST) + L" ;" );
243+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_FILEMUSTEXIST int <= " + std::to_wstring (FOS_FILEMUSTEXIST) + L" ;" );
244+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_CREATEPROMPT int <= " + std::to_wstring (FOS_CREATEPROMPT) + L" ;" );
245+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_SHAREAWARE int <= " + std::to_wstring (FOS_SHAREAWARE) + L" ;" );
246+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NOREADONLYRETURN int <= " + std::to_wstring (FOS_NOREADONLYRETURN) + L" ;" );
247+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NOTESTFILECREATE int <= " + std::to_wstring (FOS_NOTESTFILECREATE) + L" ;" );
248+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_HIDEMRUPLACES int <= " + std::to_wstring (FOS_HIDEMRUPLACES) + L" ;" );
249+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_HIDEPINNEDPLACES int <= " + std::to_wstring (FOS_HIDEPINNEDPLACES) + L" ;" );
250+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_NODEREFERENCELINKS int <= " + std::to_wstring (FOS_NODEREFERENCELINKS) + L" ;" );
251+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_OKBUTTONNEEDSINTERACTION int <= " + std::to_wstring (FOS_OKBUTTONNEEDSINTERACTION) + L" ;" );
252+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_DONTADDTORECENT int <= " + std::to_wstring (FOS_DONTADDTORECENT) + L" ;" );
253+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_FORCESHOWHIDDEN int <= " + std::to_wstring (FOS_FORCESHOWHIDDEN) + L" ;" );
254+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_DEFAULTNOMINIMODE int <= " + std::to_wstring (FOS_DEFAULTNOMINIMODE) + L" ;" );
255+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_FORCEPREVIEWPANEON int <= " + std::to_wstring (FOS_FORCEPREVIEWPANEON) + L" ;" );
256+ g_pShellPluginAPI->Scr_ExecuteCode (L" const FOS_SUPPORTSTREAMABLEITEMS int <= " + std::to_wstring (FOS_SUPPORTSTREAMABLEITEMS) + L" ;" );
257257
258258 // Register command
259259 g_pShellPluginAPI->Cmd_RegisterCommand (L" input" , &g_oInputCliResultCommand, CT_VOID);
0 commit comments