相關詞條
- hwrite
hwrite VB聲明 Declare Function hwrite Lib "kernel32" Alias "_hwrite" (ByVal hFile As Long, ByVal lpBuffer As String, ByVal lBytes As Long) As...
- 管道操作
當管道建立後,結構中指向的 hReadPipe 和 hWritePipe 可用來讀寫管道,當然由於匿名管道是單向的,你只能使用其中的一個句柄,參數中的 SECURITY_ATTRIBUTES 的結構...
- CreateProcess
hRead,hWrite; sa.nLength=sizeof(SECURITY_ATTRIBUTES); sa.lpSecurityDescriptor=NULL; sa.bInheritHandle=TRUE;//創建管道 if(!CreatePipe(&hRead,&hWrite,...
- 進程間通訊
hRead=GetStdHandle(STD_INPUT_HANDLE);hWrite=GetStdHandle(STD_OUTPUT_HANDLE);讀取部分代碼:char buf[200];DWORD dwRead;ReadFile(hRead,buf,200,&dwRead,...
- CreatePipe
BOOL WINAPI CreatePipe( _Out_PHANDLE hReadPipe, _Out_PHANDLE hWritePipe, _In_opt_LPSECURITY_ATTRIBUTES lpPipeAttributes, _In_DWORD nSize);...