_NamedPipes_ConnectNamedPipe
Enables a named pipe server process to wait for a client process to connect
#include <NamedPipes.au3>
_NamedPipes_ConnectNamedPipe($hNamedPipe [, $pOverlapped = 0])
Параметры
$hNamedPipe | Handle to the server end of a named pipe instance |
$pOverlapped |
[необязательный] Pointer to a $tagOVERLAPPED structure. If hNamedPipe was opened with $FILE_FLAG_OVERLAPPED, pOverlapped must not be 0. If hNamedPipe was created with $FILE_FLAG_OVERLAPPED and pOverlapped is not 0, the $tagOVERLAPPED structure should contain a handle to a manual reset event object. If hNamedPipe was not opened with $FILE_FLAG_OVERLAPPED, the function does not return until a client is connected or an error occurs. Successful synchronous operations result in the function returning a nonzero value if a client connects after the function is called. |
Возвращаемое значение
Успех: | Возвращает True |
Ошибка: | Возвращает False |
Примечания
If a client connects before the function is called, the function returns zero and GetLastError will returnСм. также
_NamedPipes_CreateNamedPipe, $tagOVERLAPPEDСм. также
Искать ConnectNamedPipe в библиотеке MSDN