CallNamedPipe

CallNamedPipe

Postby goosfancito » Mon Apr 03, 2006 1:46 pm

Hi friends,

I need make one function with "CallNamedPipe", in C is:

Code: Select all  Expand view
   TCHAR chReadBuf[BUFSIZE];
   BOOL fSuccess;
   DWORD cbRead, cbWritten, dwMode;
   LPTSTR lpszPipename = TEXT("\\\\.\\pipe\\myPIPE");
   LPTSTR lpszWrite = TEXT("no llego nada");

   fSuccess = CallNamedPipe(
      lpszPipename,
      lpszWrite,
      (lstrlen(lpszWrite)+1)*sizeof(TCHAR),
      chReadBuf,
      BUFSIZE*sizeof(TCHAR),
      &cbRead,
      20000);

   if (fSuccess || GetLastError() == ERROR_MORE_DATA)


What i need for make this function in xHarbour?

Tank´s
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 84 guests