#include <windef.h>
#include <winbase.h>
#include <strsafe.h>
Go to the source code of this file.
◆ run_rapps()
Definition at line 12 of file main.c.
13{
17
20 {
22 return -1;
23 }
28 return (int)dwExit;
29}
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)
BOOL WINAPI GetExitCodeProcess(IN HANDLE hProcess, IN LPDWORD lpExitCode)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
DWORD WINAPI WaitForSingleObject(IN HANDLE hHandle, IN DWORD dwMilliseconds)
Referenced by wmain().
◆ wmain()
Definition at line 31 of file main.c.
32{
33 int iRet;
35 size_t arglen;
38
41 if (arglen > 4 && !
wcsicmp(RappsExe + arglen - 4,
L".com"))
42 {
43 wcscpy(RappsExe + arglen - 4,
L".exe");
44 }
45 else
46 {
48 return -1;
49 }
50
51 arglen += (1 + 2);
52
54 {
56 arglen += 3;
57 }
58
61 {
63 size_t cchRemaining = arglen;
64
66
68 {
70 }
71 }
72
76 return iRet;
77}
int run_rapps(LPWSTR cmdline)
#define HeapFree(x, y, z)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
STRSAFEAPI StringCchPrintfExW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPWSTR *ppszDestEnd, size_t *pcchRemaining, STRSAFE_DWORD dwFlags, STRSAFE_LPCWSTR pszFormat,...)