Esme Povirk (@madewokherd) commented about dlls/shell32/tests/shlfileop.c:
IUnknown *unk; HRESULT hr;
- IShellItem *shellitem, *shellitem2;
- BOOL aborted;
- WCHAR CURR_DIRW[MAX_PATH];
- WCHAR from[MAX_PATH];
- WCHAR to[MAX_PATH];
- WCHAR name1[] = {'t', 'e', 's', 't', '1', '.', 't', 'x', 't', '\0'};
- WCHAR name2[] = {'t', 'e', 's', 't', '2', '.', 't', 'x', 't', '\0'};
- WCHAR name3[] = {'t', 'e', 's', 't', '4', '.', 't', 'x', 't', '\0'};
- WCHAR path[MAX_PATH];
- WCHAR folder[MAX_PATH];
- int len;
- DWORD attributes;
- GetCurrentDirectoryW(MAX_PATH, CURR_DIRW);
I'm not sure whether we can rely on write access to the current directory. It may be necessary to create a temporary directory.