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);
ACPI_SIZE strlen(const char *String)
#define GetProcAddress(x, y)
#define INVALID_HANDLE_VALUE
#define CreateFileA(a, b, c, d, e, f, g)
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
UINT WINAPI GetTempFileNameA(IN LPCSTR lpPathName, IN LPCSTR lpPrefixString, IN UINT uUnique, OUT LPSTR lpTempFileName)
GLenum GLuint GLenum GLsizei const GLchar * buf
static void test_query_recyclebin(void)
static void setup_pointers(void)
struct _SHFILEOPSTRUCTA * LPSHFILEOPSTRUCTA
#define FOF_NOCONFIRMATION