Minh Huong Nguyen
Minh Huong Nguyen

Reputation: 39

win32api restore file from recyclebin using SHFileStruct

I'm using win 32 api to built explore is the same window. I can delete file to recycle bin. Now, I want to undo files which were deleted to recycle bin. What am I doing now? please help me.

Upvotes: 2

Views: 910

Answers (1)

Remy Lebeau
Remy Lebeau

Reputation: 597215

You have to retrieve the IContextMenu interface for the desired file in the Recycle Bin folder, and then you can use the IContextMenu::InvokeCommand() method to invoke verbs on the file. See MSDN for more details:

Invoking commands on items in the Recycle Bin

Upvotes: 1

Related Questions