13#define ADN_DEL_IF_EMPTY 0x00000001
14#define ADN_DONT_DEL_SUBDIRS 0x00000002
15#define ADN_DONT_DEL_DIR 0x00000004
16#define ADN_DEL_UNC_PATHS 0x00000008
35 {
"dir1\\dir2",
TRUE },
36 {
"dir1\\dir2\\file1",
FALSE },
48 {
L"dir1\\dir2",
TRUE },
49 {
L"dir1\\dir2\\file1",
FALSE },
72#define FLAGS1 ADN_DEL_IF_EMPTY
73#define FLAGS2 ADN_DONT_DEL_DIR
74#define FLAGS3 ADN_DONT_DEL_SUBDIRS
75#define FLAGS4 (ADN_DONT_DEL_DIR | ADN_DONT_DEL_SUBDIRS)
76#define FLAGS5 (ADN_DEL_IF_EMPTY | ADN_DONT_DEL_DIR)
77#define FLAGS6 (ADN_DEL_IF_EMPTY | ADN_DONT_DEL_SUBDIRS)
78#define FLAGS7 (ADN_DEL_IF_EMPTY | ADN_DONT_DEL_DIR | ADN_DONT_DEL_SUBDIRS)
79#define FLAGS8 0xFFFFFFFF
381 for (
k = 0;
k < 4; ++
k)
401 skip(
"GetCurrentDirectoryA failed\n");
415 switch (
entry->action_type)
457 ok(
ret ==
entry->ret,
"Line %d: ret:%d, path:%s, flags:0x%08lX\n",
469 for (
k = 0;
k < 4; ++
k)
489 skip(
"GetCurrentDirectoryA failed\n");
503 switch (
entry->action_type)
545 ok(
ret ==
entry->ret,
"Line %d: ret:%d, path:%S, flags:0x%08lX\n",
559 skip(
"unable to load advpack.dll\n");
571 skip(
"DelNodeA not found in advpack.dll\n");
582 skip(
"DelNodeW not found in advpack.dll\n");
static const NODEW s_nodesW[]
static const NODEA s_nodesA[]
static DELNODEW s_pDelNodeW
static HINSTANCE s_hAdvPack
static char * GetPathA(const char *item)
static const ENTRY s_entries[]
static void Test_DelNodeW(void)
static WCHAR * GetPathW(const WCHAR *item)
HRESULT(WINAPI * DELNODEW)(LPCWSTR, DWORD)
static DELNODEA s_pDelNodeA
static char s_cur_dir_A[MAX_PATH]
static void cleanupA(void)
HRESULT(WINAPI * DELNODEA)(LPCSTR, DWORD)
static void Test_DelNodeA(void)
static void cleanupW(void)
static WCHAR s_cur_dir_W[MAX_PATH]
#define GetCurrentDirectoryW(x, y)
#define GetProcAddress(x, y)
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
BOOL WINAPI RemoveDirectoryA(IN LPCSTR lpPathName)
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
BOOL WINAPI RemoveDirectoryW(IN LPCWSTR lpPathName)
BOOL WINAPI CreateDirectoryA(IN LPCSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
DWORD WINAPI GetFileAttributesA(LPCSTR lpFileName)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
DWORD WINAPI GetCurrentDirectoryA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
LPSTR WINAPI lstrcpyA(LPSTR lpString1, LPCSTR lpString2)
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
LPSTR WINAPI lstrcatA(LPSTR lpString1, LPCSTR lpString2)
#define FILE_ATTRIBUTE_DIRECTORY
ENTRY_ACTION_TYPE action_type
#define INVALID_FILE_ATTRIBUTES