Having created a virtual file with an embedded exe, you can launch a process upon that file:
BoxedAppSDK_Init(); HMODULE hModule = GetModuleHandle(NULL); HRSRC hResInfo = FindResource(hModule, _T("BIN1"), _T("BIN")); HGLOBAL hResData = LoadResource(hModule, hResInfo); LPVOID lpData = LockResource(hResData); DWORD dwSize = SizeofResource(hModule, hResInfo); HANDLE hFile = BoxedAppSDK_CreateVirtualFile( _T("app1.exe"), GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_NEW, 0, NULL); DWORD temp; WriteFile(hFile, lpData, dwSize, &temp, NULL); CloseHandle(hFile); ShellExecute(NULL, NULL, _T("app1.exe"), NULL, NULL, SW_SHOW);