#include <apitest.h>
#include <windef.h>
#include <stdio.h>
Go to the source code of this file.
◆ ADN_DEL_IF_EMPTY
#define ADN_DEL_IF_EMPTY 0x00000001 |
◆ ADN_DEL_UNC_PATHS
#define ADN_DEL_UNC_PATHS 0x00000008 |
◆ ADN_DONT_DEL_DIR
#define ADN_DONT_DEL_DIR 0x00000004 |
◆ ADN_DONT_DEL_SUBDIRS
#define ADN_DONT_DEL_SUBDIRS 0x00000002 |
◆ FLAGS0
◆ FLAGS1
◆ FLAGS2
◆ FLAGS3
◆ FLAGS4
◆ FLAGS5
◆ FLAGS6
◆ FLAGS7
◆ FLAGS8
◆ DELNODEA
◆ DELNODEW
◆ ENTRY_ACTION_TYPE
Enumerator |
---|
EAT_CREATE | |
EAT_DELETE | |
EAT_CHECK_EXIST | |
EAT_CHECK_NON_EXIST | |
EAT_CALL | |
Definition at line 52 of file DelNode.c.
◆ cleanupA()
Definition at line 378 of file DelNode.c.
379{
381 for (
k = 0;
k < 4; ++
k)
382 {
384 {
387
390 }
391 }
392}
static const NODEA s_nodesA[]
static char * GetPathA(const char *item)
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI RemoveDirectoryA(IN LPCSTR lpPathName)
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
Referenced by Test_DelNodeA().
◆ cleanupW()
Definition at line 466 of file DelNode.c.
467{
469 for (
k = 0;
k < 4; ++
k)
470 {
472 {
475
478 }
479 }
480}
static const NODEW s_nodesW[]
static WCHAR * GetPathW(const WCHAR *item)
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
BOOL WINAPI RemoveDirectoryW(IN LPCWSTR lpPathName)
Referenced by Test_DelNodeW().
◆ GetPathA()
Definition at line 360 of file DelNode.c.
361{
366 return s_path;
367}
static char s_cur_dir_A[MAX_PATH]
LPSTR WINAPI lstrcpyA(LPSTR lpString1, LPCSTR lpString2)
LPSTR WINAPI lstrcatA(LPSTR lpString1, LPCSTR lpString2)
Referenced by cleanupA(), and Test_DelNodeA().
◆ GetPathW()
Definition at line 369 of file DelNode.c.
370{
375 return s_path;
376}
static WCHAR s_cur_dir_W[MAX_PATH]
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
Referenced by cleanupW(), and Test_DelNodeW().
◆ START_TEST()
Definition at line 554 of file DelNode.c.
555{
558 {
559 skip(
"unable to load advpack.dll\n");
560 return;
561 }
562
563
566 {
568 }
569 else
570 {
571 skip(
"DelNodeA not found in advpack.dll\n");
572 }
573
574
577 {
579 }
580 else
581 {
582 skip(
"DelNodeW not found in advpack.dll\n");
583 }
584
587}
static DELNODEW s_pDelNodeW
static HINSTANCE s_hAdvPack
static void Test_DelNodeW(void)
HRESULT(WINAPI * DELNODEW)(LPCWSTR, DWORD)
static DELNODEA s_pDelNodeA
HRESULT(WINAPI * DELNODEA)(LPCSTR, DWORD)
static void Test_DelNodeA(void)
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
◆ Test_DelNodeA()
Definition at line 394 of file DelNode.c.
395{
398
400 {
401 skip(
"GetCurrentDirectoryA failed\n");
402 return;
403 }
404
406
408 {
414
415 switch (
entry->action_type)
416 {
419 {
421
425 }
426 else
427 {
429
433 }
434 break;
437 {
439 }
440 else
441 {
443 }
446 break;
450 break;
454 break;
457 ok(
ret ==
entry->ret,
"Line %d: ret:%d, path:%s, flags:0x%08lX\n",
459 break;
460 }
461 }
462
464}
static const ENTRY s_entries[]
static void cleanupA(void)
BOOL WINAPI CreateDirectoryA(IN LPCSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
DWORD WINAPI GetFileAttributesA(LPCSTR lpFileName)
DWORD WINAPI GetCurrentDirectoryA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
_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)
#define FILE_ATTRIBUTE_DIRECTORY
#define INVALID_FILE_ATTRIBUTES
Referenced by START_TEST().
◆ Test_DelNodeW()
Definition at line 482 of file DelNode.c.
483{
486
488 {
489 skip(
"GetCurrentDirectoryA failed\n");
490 return;
491 }
492
494
496 {
502
503 switch (
entry->action_type)
504 {
507 {
509
513 }
514 else
515 {
517
521 }
522 break;
525 {
527 }
528 else
529 {
531 }
534 break;
538 break;
542 break;
545 ok(
ret ==
entry->ret,
"Line %d: ret:%d, path:%S, flags:0x%08lX\n",
547 break;
548 }
549 }
550
552}
static void cleanupW(void)
#define GetCurrentDirectoryW(x, y)
BOOL WINAPI CreateDirectoryW(IN LPCWSTR lpPathName, IN LPSECURITY_ATTRIBUTES lpSecurityAttributes)
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
Referenced by START_TEST().
◆ s_cur_dir_A
◆ s_cur_dir_W
◆ s_entries
◆ s_hAdvPack
◆ s_nodesA
◆ s_nodesW
◆ s_pDelNodeA
◆ s_pDelNodeW