In 4.0beta4:
typedef struct _SHFILEOPA
{
HWND hwnd;
UINT wFunc;
LPCSTR pFrom;
LPCSTR pTo;
FILEOP_FLAGS fFlags;
BOOL fAnyOperationsAborted;
LPVOID hNameMappings;
LPCSTR lpszProgressTitle; // only used if FOF_SIMPLEPROGRESS
} SHFILEOPA, FAR *LPSHFILEOPA;
typedef SHFILEOPA SHFILEOP;
static SHFILEOP sf={0, FO_DELETE, delfilepath, NULL,
FOF_NOCONFIRMATION+FOF_NOERRORUI,//FOF_ALLOWUNDO+
0,0,0};
SHFileOperation((SHFILEOPSTRUCT*)&sf);
10001BCC |. 68 D9440010 push TestSHFO.100044D9
10001BD1 |. FF15 A8480010 call dword ptr ds:[<&SHELL32.SHFileOperationA>] ;
100044D9 00 00 00 00 03 00 00 00 67 40 00 10 00 00 00 00 .......g@.....
100044E9 10 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..............
100044F9 0A 0A 5B 25 73 5D 0A 25 73 0A 0A 00 D5 30 00 10 ..[%s].%s...?.
10004509 D0 30 00 10 CE 30 00 10 CC 30 00 10 C7 30 00 10 ?.?.?.?.
static SHFILEOPSTRUCT sf={0, FO_DELETE, delfilepath, NULL,
FOF_NOCONFIRMATION+FOF_NOERRORUI,//FOF_ALLOWUNDO+
0,0,0};
SHFileOperation(&sf);
10001BCC |. 68 D9440010 push TestSHFO.100044D9
10001BD1 |. FF15 A8480010 call dword ptr ds:[<&SHELL32.SHFileOperationA>] ;
100044D9 00 00 00 00 03 00 00 00 67 40 00 10 00 00 00 00 .......g@.....
100044E9 10 04 00 00 00 00 00 00 00 00 00 00 00 00 0A 0A ..............
100044F9 5B 25 73 5D 0A 25 73 0A 0A 00 D5 30 00 10 D0 30 [%s].%s...?.?
10004509 00 10 CE 30 00 10 CC 30 00 10 C7 30 00 10 C2 30 .?.?.?.?