#define RDP2TCP_CHAN_NAME "rdp2tcp"
+#include <freerdp/log.h>
+#define TAG CLIENT_TAG(RDP2TCP_CHAN_NAME)
+
static int const debug = 0;
typedef struct
// Create pipes
if (!CreatePipe(&plugin->hStdOutputRead, &siStartInfo.hStdOutput, &saAttr, 0))
{
- perror("stdout CreatePipe");
+ WLog_ERR(TAG, "stdout CreatePipe");
return -1;
}
if (!SetHandleInformation(plugin->hStdOutputRead, HANDLE_FLAG_INHERIT, 0))
{
- perror("stdout SetHandleInformation");
+ WLog_ERR(TAG, "stdout SetHandleInformation");
return -1;
}
if (!CreatePipe(&siStartInfo.hStdInput, &plugin->hStdInputWrite, &saAttr, 0))
{
- perror("stdin CreatePipe");
+ WLog_ERR(TAG, "stdin CreatePipe");
return -1;
}
if (!SetHandleInformation(plugin->hStdInputWrite, HANDLE_FLAG_INHERIT, 0))
{
- perror("stdin SetHandleInformation");
+ WLog_ERR(TAG, "stdin SetHandleInformation");
return -1;
}
&procInfo // receives PROCESS_INFORMATION
))
{
- perror("fork for addin");
+ WLog_ERR(TAG, "fork for addin");
return -1;
}
switch (event)
{
case CHANNEL_EVENT_DATA_RECEIVED:
- ;
dataReceived(plugin, pData, dataLength, totalLength, dataFlags);
break;