ReactOS 0.4.16-dev-927-g467dec4
ShellExec_RunDLL.cpp File Reference
#include "shelltest.h"
#include "closewnd.h"
#include <undocshell.h>
Include dependency graph for ShellExec_RunDLL.cpp:

Go to the source code of this file.

Functions

static VOID TEST_ShellExec_RunDLL (VOID)
 
static VOID TEST_ShellExec_RunDLLA (VOID)
 
static VOID TEST_ShellExec_RunDLLW (VOID)
 
static VOID CleanupWindowList (VOID)
 
 START_TEST (ShellExec_RunDLL)
 

Variables

static WINDOW_LIST s_List1
 
static WINDOW_LIST s_List2
 

Function Documentation

◆ CleanupWindowList()

static VOID CleanupWindowList ( VOID  )
static

Definition at line 29 of file ShellExec_RunDLL.cpp.

30{
35}
static WINDOW_LIST s_List2
static WINDOW_LIST s_List1
void CloseNewWindows(PWINDOW_LIST List1, PWINDOW_LIST List2)
Definition: closewnd.cpp:101
void GetWindowListForClose(PWINDOW_LIST pList)
Definition: closewnd.cpp:40
void FreeWindowList(PWINDOW_LIST pList)
Definition: closewnd.cpp:11

Referenced by START_TEST().

◆ START_TEST()

START_TEST ( ShellExec_RunDLL  )

Definition at line 37 of file ShellExec_RunDLL.cpp.

38{
39 HWND hwndNotepad;
40
43 Sleep(1000);
44 hwndNotepad = FindWindowW(L"Notepad", NULL);
45 ok(hwndNotepad != NULL, "Notepad not found\n");
47
50 Sleep(1000);
51 hwndNotepad = FindWindowW(L"Notepad", NULL);
52 ok(hwndNotepad != NULL, "Notepad not found\n");
54
57 Sleep(1000);
58 hwndNotepad = FindWindowW(L"Notepad", NULL);
59 ok(hwndNotepad != NULL, "Notepad not found\n");
61}
static VOID TEST_ShellExec_RunDLLW(VOID)
static VOID TEST_ShellExec_RunDLL(VOID)
static VOID CleanupWindowList(VOID)
static VOID TEST_ShellExec_RunDLLA(VOID)
#define ok(value,...)
Definition: atltest.h:57
void GetWindowList(PWINDOW_LIST pList)
Definition: closewnd.cpp:33
#define NULL
Definition: types.h:112
#define L(x)
Definition: ntvdm.h:50
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
Definition: synch.c:790
HWND WINAPI FindWindowW(_In_opt_ LPCWSTR, _In_opt_ LPCWSTR)

◆ TEST_ShellExec_RunDLL()

static VOID TEST_ShellExec_RunDLL ( VOID  )
static

Definition at line 14 of file ShellExec_RunDLL.cpp.

15{
16 ShellExec_RunDLL(NULL, NULL, "?0?notepad.exe", SW_SHOWNORMAL);
17}
VOID WINAPI ShellExec_RunDLL(_In_opt_ HWND hwnd, _In_opt_ HINSTANCE hInstance, _In_ PCSTR pszCmdLine, _In_ INT nCmdShow)
#define SW_SHOWNORMAL
Definition: winuser.h:773

Referenced by START_TEST().

◆ TEST_ShellExec_RunDLLA()

static VOID TEST_ShellExec_RunDLLA ( VOID  )
static

Definition at line 19 of file ShellExec_RunDLL.cpp.

20{
21 ShellExec_RunDLLA(NULL, NULL, "?0?notepad.exe", SW_SHOWNORMAL);
22}
EXTERN_C VOID WINAPI ShellExec_RunDLLA(_In_opt_ HWND hwnd, _In_opt_ HINSTANCE hInstance, _In_ PCSTR pszCmdLine, _In_ INT nCmdShow)
Definition: shlexec.cpp:3038

Referenced by START_TEST().

◆ TEST_ShellExec_RunDLLW()

static VOID TEST_ShellExec_RunDLLW ( VOID  )
static

Definition at line 24 of file ShellExec_RunDLL.cpp.

25{
26 ShellExec_RunDLLW(NULL, NULL, L"?0?notepad.exe", SW_SHOWNORMAL);
27}
EXTERN_C VOID WINAPI ShellExec_RunDLLW(_In_opt_ HWND hwnd, _In_opt_ HINSTANCE hInstance, _In_ PCWSTR pszCmdLine, _In_ INT nCmdShow)
Definition: shlexec.cpp:3055

Referenced by START_TEST().

Variable Documentation

◆ s_List1

WINDOW_LIST s_List1
static

Definition at line 12 of file ShellExec_RunDLL.cpp.

Referenced by CleanupWindowList(), and START_TEST().

◆ s_List2

WINDOW_LIST s_List2
static

Definition at line 12 of file ShellExec_RunDLL.cpp.

Referenced by CleanupWindowList().