#include "precomp.h"
#include <shlwapi.h>
Go to the source code of this file.
◆ START_TEST()
Definition at line 114 of file GetModuleFileName.c.
115{
118
122 else
123 {
126 }
127}
static VOID StartChild(char **argv)
static VOID TestGetModuleFileNameW(VOID)
static VOID TestGetModuleFileNameA(VOID)
int winetest_get_mainargs(char ***pargv)
◆ StartChild()
Definition at line 14 of file GetModuleFileName.c.
15{
25
27 0,
29 -1,
33
38
40 {
41
44
47
49 }
50 else
51 {
53 trace(
"Starting '%ls', which is already relative\n",
FileName);
54 }
55
57
59 StartupInfo.
cb =
sizeof(StartupInfo);
60
62 CommandLine,
66 0,
69 &StartupInfo,
70 &ProcessInfo);
72 {
74 return;
75 }
80}
PRTL_UNICODE_STRING_BUFFER Path
#define MultiByteToWideChar
BOOL WINAPI SetCurrentDirectoryW(IN LPCWSTR lpPathName)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
struct _FileName FileName
_In_ ULONG _In_ ULONG _In_ ULONG Length
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
#define RtlZeroMemory(Destination, Length)
DWORD WINAPI GetLastError(void)
Referenced by START_TEST().
◆ TestGetModuleFileNameA()
static VOID TestGetModuleFileNameA |
( |
VOID |
| ) |
|
|
static |
Definition at line 84 of file GetModuleFileName.c.
85{
89
95 ok(Relative ==
FALSE,
"GetModuleFileNameA returned relative path: %s\n",
Buffer);
96}
DWORD WINAPI GetModuleFileNameA(HINSTANCE hModule, LPSTR lpFilename, DWORD nSize)
BOOL WINAPI PathIsRelativeA(LPCSTR lpszPath)
Referenced by START_TEST().
◆ TestGetModuleFileNameW()
static VOID TestGetModuleFileNameW |
( |
VOID |
| ) |
|
|
static |
Definition at line 100 of file GetModuleFileName.c.
101{
105
111 ok(Relative ==
FALSE,
"GetModuleFileNameW returned relative path: %ls\n",
Buffer);
112}
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
BOOL WINAPI PathIsRelativeW(LPCWSTR lpszPath)
Referenced by START_TEST().