PC Gen: Novell NetWare and NCP Calls -- General Information

Last reviewed: May 19, 1995
Article ID: Q92369
The information in this article applies to:
  • Microsoft Mail for PC Networks, version 3.0

SUMMARY

This article describes how communication with Microsoft Mail for PC Networks works on a Novell NetWare network. Major players in the system are Novell NetWare, the NetWare shell (Netx), the NetWare Core Protocol (NCP) language, and Microsoft Mail.

MORE INFORMATION

The NetWare shell (Netx) is responsible for determining if an application's file request is for the operating system (MS-DOS) or for the network. If a request is for a network file service, the shell intercepts it and prepares it for transmission to the appropriate server. Netx works with IPX, which is NetWare's communication protocol. IPX is bound to the workstation network interface card (NIC) driver that allows the request to be sent out over the topology to the server.

The shell and NetWare communicate using a language called NetWare Core Protocol (NCP). NCP is used for all client requests for service and for the responses to those requests. NCP is the single most important application layer protocol that NetWare provides. Without NCP, none of the file services offered by NetWare would be possible.

The definition of NCP is not available to the public. It is proprietary information.

NCP manages communications for these services:

  -  Opening files under different modes
  -  Closing open files
  -  Reading data blocks from open files
  -  Writing data blocks to open files

In addition, NCP provides high-level connection services and synchronization operations.

The shell accomplishes its redirection tasks by hooking several MS-DOS interrupts. Once loaded, the shell monitors any calls that applications make to Interrupt 21h and redirects those that require access to a server or the network.

To determine if a request is for a local drive or a network drive, the shell maintains a set of tables that keep track of network drives and mappings. The shell compares the network drive table to the internal operating system drive table (A-E, or whatever the LASTDRIVE= setting is). If the request is for a local drive, the shell passes it to the operating system. If the request is for a network drive, the shell passes it to the network.

When Microsoft Mail makes a file open request for a file located on a NetWare server, Mail issues an Interrupt 21h. The shell intercepts the request and finds that the file resides on the server or on a network drive (for example, drive M). Then the shell creates an IPX packet with the NCP information. The shell hands this off to the LAN driver, and the LAN driver passes it to the network. The response from the server is the same, except in reverse order. The shell reads the NCP response, and returns the Interrupt 21h request.


Additional reference words: 3.00 3rdParty
KBCategory: kbnetwork kb3rdparty
KBSubCategory: MailPCGen


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 19, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.