#include <windows.h>
#include "shellapi.h"
#include <stdio.h>
#include "wine/test.h"
Go to the source code of this file.
◆ WIN32_LEAN_AND_MEAN
◆ int()
static int |
( |
WINAPI * |
pSHQueryRecycleBinA | ) |
|
|
static |
◆ setup_pointers()
Definition at line 31 of file recyclebin.c.
34 pSHQueryRecycleBinA = (
void*)
GetProcAddress(hshell32,
"SHQueryRecycleBinA");
35 pSHFileOperationA = (
void*)
GetProcAddress(hshell32,
"SHFileOperationA");
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
#define GetProcAddress(x, y)
Referenced by START_TEST().
◆ START_TEST()
START_TEST |
( |
recyclebin |
| ) |
|
Definition at line 84 of file recyclebin.c.
static void test_query_recyclebin(void)
static void setup_pointers(void)
◆ test_query_recyclebin()
static void test_query_recyclebin |
( |
void |
| ) |
|
|
static |
Definition at line 38 of file recyclebin.c.
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);
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
#define FOF_NOCONFIRMATION
DWORD WINAPI GetTempPathA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
static __inline const char * wine_dbgstr_longlong(ULONGLONG ll)
#define CreateFileA(a, b, c, d, e, f, g)
UINT WINAPI GetTempFileNameA(IN LPCSTR lpPathName, IN LPCSTR lpPrefixString, IN UINT uUnique, OUT LPSTR lpTempFileName)
Referenced by START_TEST().
◆ LPSHQUERYRBINFO