21 #define WIN32_LEAN_AND_MEAN 34 pSHQueryRecycleBinA = (
void*)
GetProcAddress(hshell32,
"SHQueryRecycleBinA");
35 pSHFileOperationA = (
void*)
GetProcAddress(hshell32,
"SHFileOperationA");
47 if(!pSHQueryRecycleBinA)
49 skip(
"SHQueryRecycleBinA does not exist\n");
52 if(!pSHFileOperationA)
54 skip(
"SHFileOperationA does not exist\n");
60 hr = pSHQueryRecycleBinA(
buf,&info1);
61 ok(
hr ==
S_OK,
"SHQueryRecycleBinA failed with error 0x%x\n",
hr);
62 ok(info1.
i64Size!=0xdeadbeef,
"i64Size not set\n");
76 ok(!pSHFileOperationA(&shfo),
"Deletion was not successful\n");
77 hr = pSHQueryRecycleBinA(
buf,&info2);
78 ok(
hr ==
S_OK,
"SHQueryRecycleBinA failed with error 0x%x\n",
hr);
struct _SHFILEOPSTRUCTA * LPSHFILEOPSTRUCTA
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
ACPI_SIZE strlen(const char *String)
#define INVALID_HANDLE_VALUE
GLenum GLuint GLenum GLsizei const GLchar * buf
static void test_query_recyclebin(void)
#define FOF_NOCONFIRMATION
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
static void setup_pointers(void)
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
static int(WINAPI *pSHQueryRecycleBinA)(LPCSTR
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
#define GetProcAddress(x, y)
#define CreateFileA(a, b, c, d, e, f, g)
UINT WINAPI GetTempFileNameA(IN LPCSTR lpPathName, IN LPCSTR lpPrefixString, IN UINT uUnique, OUT LPSTR lpTempFileName)