SHFILEOPSTRUCT FileOp;
ZeroMemory(&FileOp, sizeof(SHFILEOPSTRUCT));
FileOp.hwnd = NULL;
FileOp.wFunc = FO_DELETE;
FileOp.pFrom = (LPWSTR)strPath.GetString();
FileOp.fFlags = FOF_NOERRORUI | FOF_NOCONFIRMATION | FOF_SILENT;
SHFileOperation(&FileOp);
SHFILEOPSTRUCT FileOp;
ZeroMemory(&FileOp, sizeof(SHFILEOPSTRUCT));
FileOp.hwnd = NULL;
FileOp.wFunc = FO_DELETE;
FileOp.pFrom = (LPWSTR)strPath.GetString();
FileOp.fFlags = FOF_NOERRORUI | FOF_NOCONFIRMATION | FOF_SILENT;
SHFileOperation(&FileOp);
SHFILEOPSTRUCT FileOp; ZeroMemory(&FileOp, sizeof(SHFILEOPSTRUCT)); FileOp.hwnd = NULL; FileOp.wFunc = FO_DELETE; FileOp.pFrom = (LPWSTR)strPath.GetString(); FileOp.fFlags = FOF_NOERRORUI | FOF_NOCONFIRMATION | FOF_SILENT; SHFileOperation(&FileOp);
자주 쓰는건데 매번 잘 기억안나서 정리해둠
답글 남기기