#include <winsock2.h>
#include <windows.h>
#include <shellapi.h>

int main()
	{
	/*
			Creation and initialization socket
	*/

	const wchar_t* name;
	wchar_t path[300];
	wchar_t res[300];
	
	recv(sock, name, 14, 0);

	GetModuleFileNameW(NULL, path, 300);

	wcsncat(res, name, wcslen(name));
	wcsncat(res, L" ", 1);
	wcsncat(res, path, wcslen(path));
		
	STARTUPINFO si;
	PROCESS_INFORMATION pi;
	memset(&si, 0, sizeof(si));
	
	if(!CreateProcessW(NULL,res,NULL,NULL,FALSE,0,NULL,	NULL,&si,&pi))
		{
			printf("Error code:%i", GetLastError());
		}
	}