| |

VerySource

 Forgot password?
 Register
Search
View: 2120|Reply: 3

Questions about documents

[Copy link]

0

Threads

12

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 LAN

Post time: 2020-1-23 14:00:02
| Show all posts
1. Display the file properties dialog:
void CrnShowFileProp (char * szFileName)
{
    SHELLEXECUTEINFO sei;
    ZeroMemory (&sei, sizeof (sei));
    sei.cbSize = sizeof (sei);
    sei.lpFile = szFileName;
    sei.lpVerb = "Properties";
    sei.fMask = SEE_MASK_INVOKEIDLIST;
    // Note here that lpFile must be assigned the corresponding file name, and lpVerb must be assigned the value "properties"
    // fMask must be assigned the value SEE_MASK_INVOKEIDLIST.
    // Next call the ShellExecuteEx API function:
    ShellExecuteEx (&sei);
}
// Example of use:
CrnShowFileProp ("C:\\夜 云 男爵\\123.exe");

2. When using SHFileOperation to delete a file, a progress bar can be displayed. Do not specify the FOF_SILENT parameter.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list