31#define IDD_MAKENEWFOLDER 0x3746
32#define TIMER_WAIT_MS 50
42 int number_of_folders = 0;
48 strcat(path_search_string,
"*");
66 return number_of_folders;
166 const CHAR title[] =
"test_click_make_new_folder_button";
167 int number_of_folders = -1;
172 skip(
"The test folder already exists.\n");
189 strcat(test_folder_path,
"\\");
191 strcat(test_folder_path,
"\\");
212 skip(
"SHGetDesktopFolder failed - skipping\n");
216 test_folder_pathW, 0
UL, &test_folder_pidl, 0
UL);
223 ok(number_of_folders == 1 ||
broken(number_of_folders == 0) ,
224 "Clicking \"Make New Folder\" button did not result in a new folder.\n");
227 strcpy(new_folder_path, test_folder_path);
235 "SHGetPathFromIDList failed for new folder.\n");
236 ok(
strcmp(new_folder_path, new_folder_pidl_path) == 0
237 ||
broken(
strcmp(new_folder_path, new_folder_pidl_path) != 0) ,
238 "SHBrowseForFolder did not return the pidl for the new folder. "
239 "Expected '%s' got '%s'\n", new_folder_path, new_folder_pidl_path);
245 test_folder_path[
strlen(test_folder_path)+1] =
'\0';
246 shfileop.
pFrom = test_folder_path;
253 test_folder_object->lpVtbl->
Release(test_folder_object);
271 ok(!
ret,
"SendMessage returned: %u\n",
ret);
273 ok(!
ret,
"SendMessage returned: %u\n",
ret);
276 ok(!
ret,
"SendMessage returned: %u\n",
ret);
282 ok(!
ret,
"SendMessage returned: %u\n",
ret);
286 ok(!
ret,
"SendMessage returned: %u\n",
ret);
288 ok(!
ret,
"SendMessage returned: %u\n",
ret);
291 ok(!
ret,
"SendMessage returned: %u\n",
ret);
293 ok(!
ret,
"SendMessage returned: %u\n",
ret);
296 ok(!
ret,
"SendMessage returned: %u\n",
ret);
298 ok(!
ret,
"SendMessage returned: %u\n",
ret);
337 skip(
"SHGetDesktopFolder failed - skipping\n");
354 IShellFolder_Release(desktop_object);
HRESULT WINAPI SHGetDesktopFolder(IShellFolder **psf)
char * strcat(char *DstString, const char *SrcString)
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
EXTERN_C LPITEMIDLIST WINAPI SHBrowseForFolderA(LPBROWSEINFOA lpbi)
static void test_click_make_new_folder_button(void)
static int CALLBACK selection_callback(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData)
static const char new_folder_name[]
static LPITEMIDLIST selected_folder_pidl
static void CALLBACK make_new_folder_timer_callback(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime)
#define IDD_MAKENEWFOLDER
static BOOL does_folder_or_file_exist(LPCSTR folder_path)
static int CALLBACK create_new_folder_callback(HWND hwnd, UINT uMsg, LPARAM lParam, LPARAM lpData)
static void test_selection(void)
static int get_number_of_folders(LPCSTR path)
static int find_data(const struct Vector *v, const BYTE *pData, int size)
#define GetCurrentDirectoryW(x, y)
#define INVALID_HANDLE_VALUE
#define MultiByteToWideChar
BOOL WINAPI CreateDirectoryA(IN LPCSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
DWORD WINAPI GetFileAttributesA(LPCSTR lpFileName)
HANDLE WINAPI FindFirstFileA(IN LPCSTR lpFileName, OUT LPWIN32_FIND_DATAA lpFindFileData)
BOOL WINAPI FindClose(HANDLE hFindFile)
BOOL WINAPI FindNextFileA(IN HANDLE hFindFile, OUT LPWIN32_FIND_DATAA lpFindFileData)
DWORD WINAPI GetCurrentDirectoryA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
VOID WINAPI CoTaskMemFree(LPVOID ptr)
HRESULT ParseDisplayName([in] HWND hwndOwner, [in] LPBC pbcReserved, [in, string] LPOLESTR lpszDisplayName, [out] ULONG *pchEaten, [out] PIDLIST_RELATIVE *ppidl, [in, out, unique] ULONG *pdwAttributes)
unsigned __int3264 UINT_PTR
#define FILE_ATTRIBUTE_DIRECTORY
BOOL WINAPI SHGetPathFromIDListA(LPCITEMIDLIST pidl, LPSTR pszPath)
#define FOF_NOCONFIRMATION
int WINAPI SHFileOperationA(LPSHFILEOPSTRUCTA lpFileOp)
#define BFFM_SETSELECTIONW
#define BIF_NEWDIALOGSTYLE
#define BFFM_SETSELECTIONA
ITEMIDLIST UNALIGNED * LPITEMIDLIST
PCIDLIST_ABSOLUTE pidlRoot
#define INVALID_FILE_ATTRIBUTES
DWORD WINAPI GetLastError(void)
HWND WINAPI GetFocus(void)
LRESULT WINAPI SendMessageA(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
HWND WINAPI SetFocus(_In_opt_ HWND)
VOID WINAPI keybd_event(_In_ BYTE, _In_ BYTE, _In_ DWORD, _In_ ULONG_PTR)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
BOOL WINAPI PostMessageA(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)