/reactos/modules/rostests/tests/nptest/ |
H A D | npserver.c | 35 HANDLE hPipe, hThread; in main() local 63 DisconnectNamedPipe(hPipe); in main() 69 (LPVOID) hPipe, in main() 82 CloseHandle(hPipe); in main() 93 HANDLE hPipe; in InstanceThread() local 95 hPipe = (HANDLE)lpvParam; in InstanceThread() 98 fSuccess = ReadFile(hPipe, in InstanceThread() 108 fSuccess = WriteFile(hPipe, in InstanceThread() 117 FlushFileBuffers(hPipe); in InstanceThread() 118 DisconnectNamedPipe(hPipe); in InstanceThread() [all …]
|
H A D | npclient.c | 12 HANDLE hPipe; in main() local 23 hPipe = CreateFile( in main() 35 if (hPipe != INVALID_HANDLE_VALUE) in main() 53 hPipe, // pipe handle in main() 65 hPipe, // pipe handle in main() 78 hPipe, // pipe handle in main() 97 CloseHandle(hPipe); in main()
|
/reactos/sdk/tools/pipetools/ |
H A D | pipetunnel.cpp | 140 WriterThread(SOCKET sock, HANDLE hPipe) in WriterThread() 142 _hPipe(hPipe) in WriterThread() 202 LONG read_pipe(HANDLE hPipe, SOCKET sock) in read_pipe() argument 261 HANDLE hPipe = INVALID_HANDLE_VALUE; in main() local 266 if (hPipe == INVALID_HANDLE_VALUE) { in main() 289 new WriterThread(sock, hPipe); in main() 292 LONG error = read_pipe(hPipe, sock); in main() 300 CloseHandle(hPipe); in main() 301 hPipe = INVALID_HANDLE_VALUE; in main() 312 if (hPipe != INVALID_HANDLE_VALUE) in main() [all …]
|
H A D | piperead.cpp | 35 if (hPipe == INVALID_HANDLE_VALUE) { in pipeServer() 44 if (!ReadFile(hPipe, buffer, sizeof(buffer), &read, NULL)) { in pipeServer() 50 CloseHandle(hPipe); in pipeServer() 54 if (hPipe == INVALID_HANDLE_VALUE) { in pipeServer() 70 if (!CloseHandle(hPipe)) in pipeServer() 79 HANDLE hPipe=INVALID_HANDLE_VALUE; in pipeClient() local 88 hPipe = CreateFile(path, // pipe name in pipeClient() 97 if (hPipe != INVALID_HANDLE_VALUE) in pipeClient() 125 fSuccess = ReadFile(hPipe, // pipe handle in pipeClient() 149 if (hPipe != INVALID_HANDLE_VALUE) in pipeClient() [all …]
|
/reactos/dll/win32/advapi32/service/ |
H A D | sctrl.c | 229 ScConnectControlPipe(HANDLE *hPipe) in ScConnectControlPipe() argument 240 hPipe); in ScConnectControlPipe() 292 CloseHandle(*hPipe); in ScConnectControlPipe() 299 WriteFile(*hPipe, in ScConnectControlPipe() 609 ScServiceDispatcher(HANDLE hPipe, in ScServiceDispatcher() argument 630 bResult = ReadFile(hPipe, in ScServiceDispatcher() 688 bResult = WriteFile(hPipe, in ScServiceDispatcher() 1038 HANDLE hPipe; in StartServiceCtrlDispatcherA() local 1106 CloseHandle(hPipe); in StartServiceCtrlDispatcherA() 1137 HANDLE hPipe; in StartServiceCtrlDispatcherW() local [all …]
|
/reactos/base/services/umpnpmgr/ |
H A D | install.c | 62 HANDLE hPipe = INVALID_HANDLE_VALUE; in InstallDevice() local 154 hPipe = CreateNamedPipeW(PipeName, PIPE_ACCESS_OUTBOUND, PIPE_TYPE_BYTE, 1, 512, 512, 0, NULL); in InstallDevice() 155 if (hPipe == INVALID_HANDLE_VALUE) in InstallDevice() 199 if (!ConnectNamedPipe(hPipe, NULL)) in InstallDevice() 210 WriteFile(hPipe, &Value, sizeof(Value), &BytesWritten, NULL); in InstallDevice() 211 WriteFile(hPipe, InstallEventName, Value, &BytesWritten, NULL); in InstallDevice() 215 WriteFile(hPipe, &ShowWizard, sizeof(ShowWizard), &BytesWritten, NULL); in InstallDevice() 218 WriteFile(hPipe, &Value, sizeof(Value), &BytesWritten, NULL); in InstallDevice() 219 WriteFile(hPipe, DeviceInstance, Value, &BytesWritten, NULL); in InstallDevice() 231 if (hPipe != INVALID_HANDLE_VALUE) in InstallDevice() [all …]
|
/reactos/dll/win32/secur32/wine/ |
H A D | dispatcher.c | 82 HANDLE hPipe; in fork_helper() local 168 hPipe = (HANDLE)_get_osfhandle(pipe_out[0]); in fork_helper() 169 SetHandleInformation(hPipe, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT); in fork_helper() 170 si.hStdInput = hPipe; in fork_helper() 173 hPipe = (HANDLE)_get_osfhandle(pipe_in[1]); in fork_helper() 174 SetHandleInformation(hPipe, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT); in fork_helper() 175 si.hStdOutput = hPipe; in fork_helper() 176 si.hStdError = hPipe; in fork_helper()
|
/reactos/modules/rostests/winetests/ntdll/ |
H A D | pipe.c | 286 HANDLE hPipe; in test_overlapped() local 313 CloseHandle(hPipe); in test_overlapped() 335 CloseHandle(hPipe); in test_overlapped() 445 HANDLE hPipe; in test_alertable() local 492 DisconnectNamedPipe(hPipe); in test_alertable() 508 CloseHandle(hPipe); in test_alertable() 515 HANDLE hPipe; in test_nonalertable() local 553 CloseHandle(hPipe); in test_nonalertable() 561 HANDLE hPipe; in test_cancelio() local 587 CloseHandle(hPipe); in test_cancelio() [all …]
|
/reactos/dll/win32/newdev/ |
H A D | newdev.c | 958 HANDLE hPipe = INVALID_HANDLE_VALUE; in ClientSideInstallW() local 964 …hPipe = CreateFileW(lpNamedPipeName, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, … in ClientSideInstallW() 966 if(hPipe == INVALID_HANDLE_VALUE) in ClientSideInstallW() 974 if(!ReadFile(hPipe, &Value, sizeof(Value), &BytesRead, NULL)) in ClientSideInstallW() 982 if(!ReadFile(hPipe, InstallEventName, Value, &BytesRead, NULL)) in ClientSideInstallW() 990 if(!ReadFile(hPipe, &ShowWizard, sizeof(ShowWizard), &BytesRead, NULL)) in ClientSideInstallW() 997 if(!ReadFile(hPipe, &Value, sizeof(Value), &BytesRead, NULL)) in ClientSideInstallW() 1005 if(!ReadFile(hPipe, DeviceInstance, Value, &BytesRead, NULL)) in ClientSideInstallW() 1029 if(hPipe != INVALID_HANDLE_VALUE) in ClientSideInstallW() 1030 CloseHandle(hPipe); in ClientSideInstallW()
|
/reactos/dll/win32/ole32/ |
H A D | rpc.c | 1807 HANDLE hPipe; in RPC_GetLocalClassObject() local 1828 if (hPipe == INVALID_HANDLE_VALUE) { in RPC_GetLocalClassObject() 1846 CloseHandle( hPipe ); in RPC_GetLocalClassObject() 1857 CloseHandle(hPipe); in RPC_GetLocalClassObject() 1862 CloseHandle(hPipe); in RPC_GetLocalClassObject() 1922 if (!ConnectNamedPipe(hPipe, &ovl)) in local_server_thread() 1969 FlushFileBuffers(hPipe); in local_server_thread() 1970 DisconnectNamedPipe(hPipe); in local_server_thread() 1986 CloseHandle(hPipe); in local_server_thread() 1987 hPipe = new_pipe; in local_server_thread() [all …]
|
/reactos/dll/win32/kernel32/client/file/ |
H A D | npipe.c | 899 HANDLE hPipe; in CallNamedPipeW() local 907 hPipe = CreateFileW(lpNamedPipeName, in CallNamedPipeW() 916 if (hPipe != INVALID_HANDLE_VALUE) in CallNamedPipeW() 932 bError = SetNamedPipeHandleState(hPipe, &dwPipeMode, NULL, NULL); in CallNamedPipeW() 936 CloseHandle(hPipe); in CallNamedPipeW() 941 bError = TransactNamedPipe(hPipe, in CallNamedPipeW() 950 CloseHandle(hPipe); in CallNamedPipeW()
|