home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include "pxengine.h"
-
- #define NETDIR ""
- #define TABLENAME "table"
- #define NETTYPE NOTONNET
-
- int main(void)
- {
- TABLEHANDLE tblHandle;
- int pxErr;
-
- PXNetInit(NETDIR,NOTONNET,DEFUSERNAME);
- PXTblOpen(TABLENAME, &tblHandle, 0, 0);
-
- /* Lock table with full-lock */
- if ((pxErr = PXNetTblLock(tblHandle, FL)) != PXSUCCESS)
- printf("%s\n", PXErrMsg(pxErr));
- else
- PXNetTblUnlock(tblHandle, FL);
-
- PXTblClose(tblHandle);
- PXExit();
- return(pxErr);
- }