Здравствуйте, ARKADYL, Вы писали:
ARK>Не подскажете ли как это получить с помощью
ARK>ShellExecute()/ShellExecuteEx()
ARK>я пробовал так:
ARK>oShell = CreateObject("Shell.Application")
ARK>oFolder = oShell.NameSpace("C:\")
ARK>oFolderItem = oFolder.ParseName("autoexec.bat")
ARK>oFolderItem.InvokeVerb("properties")
ARK>окно не выводится (Win98)
а так:
Q179377
HOWTO: Invoke the Shell's File Properties Dialog Box
SUMMARY
You can invoke the shell's file Properties dialog box for a file with the ShellExecuteEx API. In the SHELLEXECUTEINFO structure, set the SEE_MASK_INVOKEIDLIST flag and the "properties" verb as follows:
SHELLEXECUTEINFO sei;
ZeroMemory(&sei,sizeof(sei));
sei.cbSize = sizeof(sei);
sei.lpFile = szPathOfFileToLaunchPropertiesOf;
sei.lpVerb = "properties";
sei.fMask = SEE_MASK_INVOKEIDLIST;
ShellExecuteEx(&sei);
MORE INFORMATION
The SEE_MASK_INVOKEIDLIST mask enables ShellExecuteEx to invoke dynamic verbs added by context menu extensions, as well as verbs statically added in the registry under the file class' shell key.