home *** CD-ROM | disk | FTP | other *** search
- LISTING 1
-
- /***************************************************************
- NovlID.c -- Sample FoxPro API routine from FoxNet(tm) library
- (c) 1991, P. L. Olympia, Platinum Software International
-
- From Set Expert On Column, DBMS Magazine, 8/91
-
- This example returns the station number of a Novell Workstation.
- **************************************************************/
-
- #include <stdio.h>
- #include "pro_ext.h" /* From FoxPro API set */
-
- // These next two includes are from Novell
- #include <nit.h>
- #include <niterror.h>
-
- /*****************************************************
- The API .c function name is C_GetWS()
- The FoxPro function name is NSTATION().
- Function returns a workstation ID number
- *****************************************************/
- FAR C_GetWS()
- {
- _RetInt( GetConnectionNumber(), 10);
- return;
- }
-
- // Here are the usual FoxPro API Structure Tables
- FoxInfo _NovlPO[] = {
- {"NSTATION", C_GetWS, 0, "" },
- };
-
- FoxTable _FoxTable = {
- (FoxTable FAR *)0,
- sizeof(_NovlPO)/sizeof(FoxInfo),
- _NovlPO
- };