The information in this article applies to:
SUMMARY
The sample Npclnt.exe in the Microsoft Software Library demonstrates the
named pipe client interface in Windows for Workgroups (WFW).
MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. Care must be taken when using DosReadAsyncNmPipe or DosWriteAsyncNmPipe. Because both APIs provide WFW a function pointer that is called at interrupt time, only limited operations may be performed in the callback. The WFW SDK reference states the following about the callback function: Generally, the callback function can set global variables and check the variable specified by the pusErrCode parameter for potential errors. But the callback function must not modify registers or call any MS-DOS system functions, BIOS functions, or C run-time functions that call MS- DOS and BIOS functions. Although the callback function can call the PostMessage function, it must not call the SendMessage function.Also, the callback function must be exported in the application's *.DEF file. Besides exporting, the application must call MakeProcInstance on the function before calling the asynchronous API. Care must also be taken not to call FreeProcInstance while a read or write is outstanding. Additional query words: WFW Workgroups Named Pipe DosReadAsyncNmPipe DosWriteAsyncNmPipe
Keywords : kbfile kbnetwork kbsample kbAPI kbIPC kbPipes kbSDKPlatform kbWinOS310 kbWinOS311 kbGrpNet |
Last Reviewed: December 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |