projekt KAPA NA MELINIE :D
Player video w wersji BETA. Ew. zgłoszenia błędów prosimy kierować na


Komentarze (1)
#include <stdlib.h>
#include <windows.h>
#define BUFSIZE 1024
#define PIPE_TIMEOUT 5000
int main()
{
HANDLE hFile;
BOOL flg;
DWORD dwWrite;
char tmp;
char szPipeUpdate[200];
hFile = CreateFile("\\\\.\\pipe\\s212198", GENERIC_WRITE,
0, NULL, OPEN_EXISTING,
0, NULL);
while(1)
{
tmp=getchar();
szPipeUpdate[0]=tmp;
szPipeUpdate[1]=0;
WriteFile(hFile, szPipeUpdate, strlen(szPipeUpdate), &dwWrite, NULL);
}
CloseHandle(hFile);
}