Initial implimentation of win32_trash()
This commit is contained in:
parent
75d209e3f1
commit
61ce0798d9
3 changed files with 29 additions and 1 deletions
13
src/win32_trash.c
Normal file
13
src/win32_trash.c
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#include <windows.h>
|
||||
|
||||
int win32_trash(char *path);
|
||||
int win32_trash(char *path)
|
||||
{
|
||||
SHFILEOPSTRUCT op;
|
||||
|
||||
op.wFunc = FO_DELETE;
|
||||
op.pFrom = path;
|
||||
op.fFlags = FOF_SILENT|FOF_ALLOWUNDO;
|
||||
|
||||
return SHFileOperationA(&op);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue