Could you please show me some code? STARTUPINFO Stupinfo; PROCESS_INFORMATION ProcessInfo; char* procnm="Test.exe"; char* tesst; BOOL readIntoMemory; HANDLE h, hWritePipe; LPSECURITY_ATTRIBUTES lpPipeAttributes; DWORD nSize; LPWSTR lpwString = L""; lpwString = (LPWSTR)procnm; LPVOID inBuffer; DWORD nBytesToRead; LPDWORD nBytesRead, lpNumberOfBytesWritten; DWORD bytestowrite; IntPtr StdOutput; Stupinfo.dwX=0; Stupinfo.dwY=0; Stupinfo.hStdOutput=h; CreateProcess(NULL, lpwString, NULL, NULL, FALSE, 0, NULL, NULL, &Stupinfo, &ProcessInfo); ReadFile( h, inBuffer, nBytesToRead, nBytesRead, NULL); WriteFile( (HANDLE)AcceptSocket, inBuffer, bytestowrite, lpNumberOfBytesWritten, NULL); how to use the WriteFile to get a char*?? and do i have it setup correctly? -- modified at 19:25 Monday 31st July, 2006