Changeset 2301 for trunk/src/kernel32/stubs.cpp
- Timestamp:
- Jan 2, 2000, 11:51:58 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/stubs.cpp
r2280 r2301 1 /* $Id: stubs.cpp,v 1.1 7 1999-12-31 10:47:11sandervl Exp $ */1 /* $Id: stubs.cpp,v 1.18 2000-01-02 22:51:12 sandervl Exp $ */ 2 2 3 3 /* … … 60 60 #define STREAM_CONTAINS_SECURITY 0x00000002 61 61 #define STREAM_CONTAINS_PROPERTIES 0x00000004 62 63 // Named Pipes64 65 #define NMPWAIT_WAIT_FOREVER 0xffffffff66 #define NMPWAIT_NOWAIT 0x0000000167 #define NMPWAIT_USE_DEFAULT_WAIT 0x0000000068 62 69 63 … … 413 407 } 414 408 415 /*****************************************************************************416 * Name : BOOL WIN32AOI CallNamedPipeA417 * Purpose : The CallNamedPipe function connects to a message-type pipe418 * (and waits if an instance of the pipe is not available),419 * writes to and reads from the pipe, and then closes the pipe.420 * Parameters: LPCSTR lpNamedPipeName pointer to pipe name421 * LPVOID lpInBuffer pointer to write buffer422 * DWORD nInBufferSize size, in bytes, of write buffer423 * LPVOID lpOutBuffer pointer to read buffer424 * DWORD nOutBufferSize size, in bytes, of read buffer425 * LPDWORD lpBytesRead pointer to number of bytes read426 * DWORD nTimeOut time-out time, in milliseconds427 * Variables :428 * Result : If the function succeeds, the return value is nonzero.429 * If the function fails, the return value is zero.430 * To get extended error information, call GetLastError.431 * Remark : Calling CallNamedPipe is equivalent to calling the CreateFile432 * (or WaitNamedPipe, if CreateFile cannot open the pipe immediately),433 * TransactNamedPipe, and CloseHandle functions. CreateFile is called434 * with an access flag of GENERIC_READ | GENERIC_WRITE, an inherit435 * handle flag of FALSE, and a share mode of zero (indicating no436 * sharing of this pipe instance).437 * If the message written to the pipe by the server process is438 * longer than nOutBufferSize, CallNamedPipe returns FALSE, and439 * GetLastError returns ERROR_MORE_DATA. The remainder of the440 * message is discarded, because CallNamedPipe closes the handle441 * to the pipe before returning.442 *443 * CallNamedPipe fails if the pipe is a byte-type pipe.444 * Status : UNTESTED STUB445 *446 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]447 *****************************************************************************/448 449 BOOL WIN32API CallNamedPipeA( LPCSTR lpNamedPipeName,450 LPVOID lpInBuffer, DWORD nInBufferSize,451 LPVOID lpOutBuffer, DWORD nOutBufferSize,452 LPDWORD lpBytesRead, DWORD nTimeOut)453 {454 455 dprintf(("KERNEL32: CallNamedPipeA(%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",456 lpNamedPipeName, lpInBuffer, nInBufferSize,457 lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut458 ));459 460 return (FALSE);461 }462 463 /*****************************************************************************464 * Name : BOOL WIN32AOI CallNamedPipeA465 * Purpose : The CallNamedPipe function connects to a message-type pipe466 * (and waits if an instance of the pipe is not available),467 * writes to and reads from the pipe, and then closes the pipe.468 * Parameters: LPCWSTR lpNamedPipeName pointer to pipe name469 * LPVOID lpInBuffer pointer to write buffer470 * DWORD nInBufferSize size, in bytes, of write buffer471 * LPVOID lpOutBuffer pointer to read buffer472 * DWORD nOutBufferSize size, in bytes, of read buffer473 * LPDWORD lpBytesRead pointer to number of bytes read474 * DWORD nTimeOut time-out time, in milliseconds475 * Variables :476 * Result : If the function succeeds, the return value is nonzero.477 * If the function fails, the return value is zero.478 * To get extended error information, call GetLastError.479 * Remark : Calling CallNamedPipe is equivalent to calling the CreateFile480 * (or WaitNamedPipe, if CreateFile cannot open the pipe immediately),481 * TransactNamedPipe, and CloseHandle functions. CreateFile is called482 * with an access flag of GENERIC_READ | GENERIC_WRITE, an inherit483 * handle flag of FALSE, and a share mode of zero (indicating no484 * sharing of this pipe instance).485 * If the message written to the pipe by the server process is486 * longer than nOutBufferSize, CallNamedPipe returns FALSE, and487 * GetLastError returns ERROR_MORE_DATA. The remainder of the488 * message is discarded, because CallNamedPipe closes the handle489 * to the pipe before returning.490 *491 * CallNamedPipe fails if the pipe is a byte-type pipe.492 * Status : UNTESTED STUB493 *494 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]495 *****************************************************************************/496 497 BOOL WIN32API CallNamedPipeW( LPCWSTR lpNamedPipeName,498 LPVOID lpInBuffer, DWORD nInBufferSize,499 LPVOID lpOutBuffer, DWORD nOutBufferSize,500 LPDWORD lpBytesRead, DWORD nTimeOut)501 {502 503 dprintf(("KERNEL32: CallNamedPipeA(%08x,%08x,%08x,%08x,%08x,%08x) not implemented\n",504 lpNamedPipeName, lpInBuffer, nInBufferSize,505 lpOutBuffer, nOutBufferSize, lpBytesRead, nTimeOut506 ));507 508 return (FALSE);509 }510 409 /***************************************************************************** 511 410 * Name : BOOL WIN32API CancelIo … … 573 472 dprintf(("KERNEL32:CancelWaitableTimer(%08x) not implemented\n", 574 473 hTimer 575 ));576 577 return (FALSE);578 }579 580 /*****************************************************************************581 * Name : BOOL WIN32API ConnectNamedPipe582 * Purpose : The ConnectNamedPipe function enables a named pipe server process583 * to wait for a client process to connect to an instance of a584 * named pipe. A client process connects by calling either the585 * CreateFile or CallNamedPipe function.586 * Parameters: HANDLE hNamedPipe handle to named pipe to connect587 * LPOVERLAPPED lpOverlapped pointer to overlapped structure588 * Variables :589 * Result : If the function succeeds, the return value is nonzero.590 * If the function fails, the return value is zero.591 * To get extended error information, call GetLastError.592 * Remark :593 * Status : UNTESTED STUB594 *595 * Author : Markus Montkowski [Thu, 1998/05/19 11:46]596 *****************************************************************************/597 598 BOOL WIN32API ConnectNamedPipe(HANDLE hNamedPipe, LPOVERLAPPED lpOverlapped)599 {600 601 dprintf(("KERNEL32: ConnectNamedPipe(%08x,%08x) not implemented\n",602 hNamedPipe, lpOverlapped603 474 )); 604 475 … … 1246 1117 } 1247 1118 /***************************************************************************** 1248 * Name : BOOL WIN32API DisconnectNamedPipe1249 * Purpose : The DisconnectNamedPipe function disconnects the server end1250 * of a named pipe instance from a client process.1251 * Parameters: HANDLE hNamedPipe handle to named pipe1252 * Variables :1253 * Result : If the function succeeds, the return value is nonzero.1254 * If the function fails, the return value is zero1255 * Remark :1256 * Status : UNTESTED STUB1257 *1258 * Author : Markus Montkowski [Tha, 1998/05/21 17:46]1259 *****************************************************************************/1260 1261 BOOL WIN32API DisconnectNamedPipe(HANDLE hNamedPipe)1262 {1263 1264 dprintf(("KERNEL32: DisconnectNamedPipe(%08x) not implemented\n",1265 hNamedPipe1266 ));1267 1268 return (FALSE);1269 }1270 1271 /*****************************************************************************1272 1119 * Name : BOOL WIN3API EndUpdateResourceA 1273 1120 * Purpose : The EndUpdateResourceA function ends a resource update … … 1869 1716 1870 1717 1871 /*****************************************************************************1872 * Name : BOOL GetNamedPipeHandleStateA1873 * Purpose : The GetNamedPipeHandleStateA function retrieves information about1874 * a specified named pipe. The information returned can vary during1875 * the lifetime of an instance of the named pipe.1876 * Parameters: HANDLE hNamedPipe handle of named pipe1877 * LPDWORD lpState address of flags indicating pipe state1878 * LPDWORD lpCurInstances address of number of current pipe instances1879 * LPDWORD lpMaxCollectionCount address of max. bytes before remote transmission1880 * LPDWORD lpCollectDataTimeout address of max. time before remote transmission1881 * LPTSTR lpUserName address of user name of client process1882 * DWORD nMaxUserNameSize size, in characters, of user name buffer1883 * Variables :1884 * Result : TRUE / FALSE1885 * Remark :1886 * Status : UNTESTED STUB1887 *1888 * Author : Patrick Haller [Mon, 1998/06/15 08:00]1889 *****************************************************************************/1890 1891 BOOL WIN32API GetNamedPipeHandleStateA(HANDLE hNamedPipe,1892 LPDWORD lpState,1893 LPDWORD lpCurInstances,1894 LPDWORD lpMaxCollectionCount,1895 LPDWORD lpCollectDataTimeout,1896 LPTSTR lpUserName,1897 DWORD nMaxUserNameSize)1898 {1899 dprintf(("KERNEL32: GetNamedPipeHandleStateA(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",1900 hNamedPipe,1901 lpState,1902 lpCurInstances,1903 lpMaxCollectionCount,1904 lpCollectDataTimeout,1905 lpUserName,1906 nMaxUserNameSize));1907 1908 return (FALSE);1909 }1910 1911 1912 /*****************************************************************************1913 * Name : BOOL GetNamedPipeHandleStateW1914 * Purpose : The GetNamedPipeHandleStateW function retrieves information about1915 * a specified named pipe. The information returned can vary during1916 * the lifetime of an instance of the named pipe.1917 * Parameters: HANDLE hNamedPipe handle of named pipe1918 * LPDWORD lpState address of flags indicating pipe state1919 * LPDWORD lpCurInstances address of number of current pipe instances1920 * LPDWORD lpMaxCollectionCount address of max. bytes before remote transmission1921 * LPDWORD lpCollectDataTimeout address of max. time before remote transmission1922 * LPWSTR lpUserName address of user name of client process1923 * DWORD nMaxUserNameSize size, in characters, of user name buffer1924 * Variables :1925 * Result : TRUE / FALSE1926 * Remark :1927 * Status : UNTESTED STUB1928 *1929 * Author : Patrick Haller [Mon, 1998/06/15 08:00]1930 *****************************************************************************/1931 1932 BOOL WIN32API GetNamedPipeHandleStateW(HANDLE hNamedPipe,1933 LPDWORD lpState,1934 LPDWORD lpCurInstances,1935 LPDWORD lpMaxCollectionCount,1936 LPDWORD lpCollectDataTimeout,1937 LPWSTR lpUserName,1938 DWORD nMaxUserNameSize)1939 {1940 dprintf(("KERNEL32: GetNamedPipeHandleStateW(%08xh,%08xh,%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",1941 hNamedPipe,1942 lpState,1943 lpCurInstances,1944 lpMaxCollectionCount,1945 lpCollectDataTimeout,1946 lpUserName,1947 nMaxUserNameSize));1948 1949 return (FALSE);1950 }1951 1952 1953 /*****************************************************************************1954 * Name : BOOL GetNamedPipeInfo1955 * Purpose : The GetNamedPipeInfo function retrieves information about the specified named pipe.1956 * Parameters: HANDLE hNamedPipe handle of named pipe1957 * LPDWORD lpFlags address of flags indicating type of pipe1958 * LPDWORD lpOutBufferSize address of size, in bytes, of pipe's output buffer1959 * LPDWORD lpInBufferSize address of size, in bytes, of pipe's input buffer1960 * LPDWORD lpMaxInstances address of max. number of pipe instances1961 * Variables :1962 * Result : TRUE / FALSE1963 * Remark :1964 * Status : UNTESTED STUB1965 *1966 * Author : Patrick Haller [Mon, 1998/06/15 08:00]1967 *****************************************************************************/1968 1969 BOOL WIN32API GetNamedPipeInfo(HANDLE hNamedPipe,1970 LPDWORD lpFlags,1971 LPDWORD lpOutBufferSize,1972 LPDWORD lpInBufferSize,1973 LPDWORD lpMaxInstances)1974 {1975 dprintf(("KERNEL32: GetNamedPipeInfo(%08xh,%08xh,%08xh,%08xh,%08xh) not implemented\n",1976 hNamedPipe,1977 lpFlags,1978 lpOutBufferSize,1979 lpInBufferSize,1980 lpMaxInstances));1981 1982 return (FALSE);1983 }1984 1985 1986 1718 1987 1719 /***************************************************************************** … … 2538 2270 2539 2271 /***************************************************************************** 2540 * Name : BOOL SetNamedPipeHandleState2541 * Purpose : The SetNamedPipeHandleState function sets the read mode and the2542 * blocking mode of the specified named pipe. If the specified handle2543 * is to the client end of a named pipe and if the named pipe server2544 * process is on a remote computer, the function can also be used to2545 * control local buffering.2546 * Parameters: HANDLE hNamedPipe handle of named pipe2547 * LPDWORD lpdwMode address of new pipe mode2548 * LPDWORD lpcbMaxCollect address of max. bytes before remote transmission2549 * LPDWORD lpdwCollectDataTimeout address of max. time before remote transmission2550 * Variables :2551 * Result : TRUE / FALSE2552 * Remark :2553 * Status : UNTESTED STUB2554 *2555 * Author : Patrick Haller [Mon, 1998/06/15 08:00]2556 *****************************************************************************/2557 2558 BOOL WIN32API SetNamedPipeHandleState(HANDLE hNamedPipe,2559 LPDWORD lpdwMode,2560 LPDWORD lpcbMaxCollect,2561 LPDWORD lpdwCollectDataTimeout)2562 {2563 dprintf(("KERNEL32: SetNamedPipeHandleState(%08xh,%08xh,%08xh,%08xh) not implemented.\n",2564 hNamedPipe,2565 lpdwMode,2566 lpcbMaxCollect,2567 lpdwCollectDataTimeout));2568 2569 return (FALSE);2570 }2571 2572 /*****************************************************************************2573 2272 * Name : BOOL SetSystemPowerState 2574 2273 * Purpose : The SetSystemPowerState function suspends the system by shutting … … 2719 2418 2720 2419 2721 /*****************************************************************************2722 * Name : DWORD TransactNamedPipe2723 * Purpose : The TransactNamedPipe function combines into a single network2724 * operation the functions that write a message to and read a2725 * message from the specified named pipe.2726 * Parameters: HANDLE hNamedPipe handle of named pipe2727 * LPVOID lpvWriteBuf address of write buffer2728 * DWORD cbWriteBuf size of the write buffer, in bytes2729 * LPVOID lpvReadBuf address of read buffer2730 * DWORD cbReadBuf size of read buffer, in bytes2731 * LPDWORD lpcbRead address of variable for bytes actually read2732 * LPOVERLAPPED lpo address of overlapped structure2733 * Variables :2734 * Result : TRUE / FALSE2735 * Remark :2736 * Status : UNTESTED STUB2737 *2738 * Author : Patrick Haller [Mon, 1998/06/15 08:00]2739 *****************************************************************************/2740 2741 DWORD WIN32API TransactNamedPipe(HANDLE hNamedPipe,2742 LPVOID lpvWriteBuf,2743 DWORD cbWriteBuf,2744 LPVOID lpvReadBuf,2745 DWORD cbReadBuf,2746 LPDWORD lpcbRead,2747 LPOVERLAPPED lpo)2748 {2749 dprintf(("KERNEL32: TransactNamedPipe(%08x,%08x,%08x,%08x,%08x,%08x,%08x) not implemented.\n",2750 hNamedPipe,2751 lpvWriteBuf,2752 cbWriteBuf,2753 lpvReadBuf,2754 cbReadBuf,2755 lpcbRead,2756 lpo));2757 2758 return (FALSE);2759 }2760 2761 2420 2762 2421 /***************************************************************************** … … 2834 2493 2835 2494 /***************************************************************************** 2836 * Name : BOOL WaitNamedPipeA2837 * Purpose : The WaitNamedPipe function waits until either a time-out interval2838 * elapses or an instance of the specified named pipe is available2839 * to be connected to (that is, the pipe's server process has a2840 * pending ConnectNamedPipe operation on the pipe).2841 * Parameters: LPCTSTR lpszNamedPipeName2842 * DWORD dwTimeout2843 * Variables :2844 * Result : TRUE / FALSE2845 * Remark :2846 * Status : UNTESTED STUB2847 *2848 * Author : Patrick Haller [Mon, 1998/06/15 08:00]2849 *****************************************************************************/2850 2851 BOOL WIN32API WaitNamedPipeA(LPCTSTR lpszNamedPipeName,2852 DWORD dwTimeout)2853 {2854 dprintf(("KERNEL32: WaitNamedPipeA(%s, %u) not implemented.\n",2855 lpszNamedPipeName,2856 dwTimeout));2857 2858 return (FALSE);2859 }2860 2861 2862 /*****************************************************************************2863 * Name : BOOL WaitNamedPipeW2864 * Purpose : The WaitNamedPipe function waits until either a time-out interval2865 * elapses or an instance of the specified named pipe is available2866 * to be connected to (that is, the pipe's server process has a2867 * pending ConnectNamedPipe operation on the pipe).2868 * Parameters: LPCWSTR lpszNamedPipeName2869 * DWORD dwTimeout2870 * Variables :2871 * Result : TRUE / FALSE2872 * Remark :2873 * Status : UNTESTED STUB2874 *2875 * Author : Patrick Haller [Mon, 1998/06/15 08:00]2876 *****************************************************************************/2877 2878 BOOL WIN32API WaitNamedPipeW(LPCWSTR lpszNamedPipeName,2879 DWORD dwTimeout)2880 {2881 dprintf(("KERNEL32: WaitNamedPipeW(%s, %u) not implemented.\n",2882 lpszNamedPipeName,2883 dwTimeout));2884 2885 return (FALSE);2886 }2887 2888 2889 2890 2891 /*****************************************************************************2892 2495 * Name : BOOL WriteTapemark 2893 2496 * Purpose : The WriteTapemark function writes a specified number of filemarks,
Note:
See TracChangeset
for help on using the changeset viewer.