home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include "pxengine.h"
-
- #define TABLENAME "table"
- #define NETDIR ""
- #define NETTYPE NOTONNET
-
- int main(void)
- {
- TABLEHANDLE tblHandle;
- LOCKHANDLE lckHandle;
- int pxErr;
-
- PXNetInit(NETDIR,NOTONNET,DEFUSERNAME);
- PXTblOpen(TABLENAME, &tblHandle, 0, 0);
- PXNetRecLock(tblHandle, &lckHandle);
-
- /* Unlock previously locked record */
- if ((pxErr = PXNetRecUnlock(tblHandle, lckHandle)) != PXSUCCESS)
- printf("%s\n", PXErrMsg(pxErr));
-
- PXTblClose(tblHandle);
- PXExit();
- return(pxErr);
- }