#include "shelltest.h"
#include <stdio.h>
#include <process.h>
Go to the source code of this file.
◆ BAD_INST
◆ BAD_SZ_A
◆ BAD_SZ_W
◆ COUNT
◆ DEATH
◆ INTERVAL
◆ NOT_OPENED
◆ OPENED
◆ OPENAS_RUNDLLA
◆ OPENAS_RUNDLLW
◆ DoEntry()
Definition at line 100 of file OpenAs_RunDLL.cpp.
101{
103 {
105 {
109 }
110
113
115 {
117 }
119 {
121 }
123
125 ok(
pEntry->dwError == dwError,
"Line %d: error expected %ld, was %ld\n",
pEntry->nLine,
pEntry->dwError, dwError);
126
129
131 {
133 }
134 }
135 else
136 {
138 {
140 ok(fp !=
NULL,
"Line %d: Unable to create file '%s'\n",
pEntry->nLine,
pEntry->pszFileA);
142 }
143
146
148 {
150 }
152 {
154 }
156
158 ok(
pEntry->dwError == dwError,
"Line %d: error expected %ld, was %ld\n",
pEntry->nLine,
pEntry->dwError, dwError);
159
162
164 {
166 }
167 }
168
169
170
171}
static void StartWatchGUI(const TEST_ENTRY *pEntry)
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI DeleteFileW(IN LPCWSTR lpFileName)
_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)
#define EXCEPTION_EXECUTE_HANDLER
#define _SEH2_EXCEPT(...)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
DWORD WINAPI GetLastError(void)
Referenced by START_TEST().
◆ START_TEST()
START_TEST |
( |
OpenAs_RunDLL |
| ) |
|
Definition at line 173 of file OpenAs_RunDLL.cpp.
174{
177 {
178 skip(
"Unable to load shell32.dll\n");
179 return;
180 }
181
184 {
185 skip(
"Unable to get OpenAs_RunDLLA\n");
186 return;
187 }
188
191 {
192 skip(
"Unable to get OpenAs_RunDLLW\n");
193 return;
194 }
195
197
200
202 {
203 skip(
"SetCurrentDirectory failed\n");
204 }
205 else
206 {
208 {
211 }
212
214 }
215
217}
static OPENAS_RUNDLLA pOpenAs_RunDLLA
void(WINAPI * OPENAS_RUNDLLA)(HWND, HINSTANCE, LPCSTR, int)
static OPENAS_RUNDLLW pOpenAs_RunDLLW
void(WINAPI * OPENAS_RUNDLLW)(HWND, HINSTANCE, LPCWSTR, int)
static void DoEntry(const TEST_ENTRY *pEntry)
static const TEST_ENTRY s_TestEntries[]
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
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
#define SetCurrentDirectory
#define GetCurrentDirectory
◆ StartWatchGUI()
Definition at line 94 of file OpenAs_RunDLL.cpp.
95{
98}
static unsigned __stdcall watch_thread_proc(void *arg)
_CRTIMP uintptr_t __cdecl _beginthreadex(_In_opt_ void *_Security, _In_ unsigned _StackSize, _In_ unsigned(__stdcall *_StartAddress)(void *), _In_opt_ void *_ArgList, _In_ unsigned _InitFlag, _Out_opt_ unsigned *_ThrdAddr)
Referenced by DoEntry().
◆ watch_thread_proc()
Definition at line 71 of file OpenAs_RunDLL.cpp.
72{
74 {
76
79 continue;
80
82 {
83 trace(
"not visible\n");
84 continue;
85 }
86
89 break;
90 }
91 return 0;
92}
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
HWND WINAPI FindWindowA(_In_opt_ LPCSTR, _In_opt_ LPCSTR)
BOOL WINAPI IsWindowVisible(_In_ HWND)
Referenced by StartWatchGUI().
◆ pOpenAs_RunDLLA
◆ pOpenAs_RunDLLW
◆ s_hThread
◆ s_nRet
◆ s_TestEntries