Dec 212017
LXNet Ver. 1.2 – Novell bindery/printing functions for Clipper. | |||
---|---|---|---|
File Name | File Size | Zip Size | Zip Type |
LXNET.DOC | 30451 | 6730 | deflated |
LXNET.LIB | 42496 | 10310 | deflated |
LXNET.NG | 22041 | 6753 | deflated |
Download File LXNET.ZIP Here
Contents of the LXNET.DOC file
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper
Copyright 1990 Randy Proulx.
1618 Marion Rd. SE #47
Rochester, MN 55904
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper i
Table of Contents
License Information . . . . . . . . . . . . 1
How to use this library . . . . . . . . . . 2
Features and limitations. . . . . . . . . . 3
Changes from version 1.0. . . . . . . . . . 4
Function Descriptions . . . . . . . . . . . 5
A_Groups(). . . . . . . . . . . . . . . 5
A_Members() . . . . . . . . . . . . . . 6
A_Queues(), . . . . . . . . . . . . . . 7
A_Servers() . . . . . . . . . . . . . . 8
A_Users() . . . . . . . . . . . . . . . 9
A_Volumes() . . . . . . . . . . . . . .10
Cancel_Cap(). . . . . . . . . . . . . .11
CanSpecCap(). . . . . . . . . . . . . .12
Capture() . . . . . . . . . . . . . . .13
ConnectNum(). . . . . . . . . . . . . .14
DefaultLpt(). . . . . . . . . . . . . .15
DefaultCon(). . . . . . . . . . . . . .16
EndCap(). . . . . . . . . . . . . . . .17
EndSpecCap(). . . . . . . . . . . . . .18
Flushcap(). . . . . . . . . . . . . . .19
FluSpecCap(). . . . . . . . . . . . . .20
GetBanUser(). . . . . . . . . . . . . .21
GetObjID(). . . . . . . . . . . . . . .22
GetObjName(). . . . . . . . . . . . . .23
GetObjType(). . . . . . . . . . . . . .24
IsInGroup() . . . . . . . . . . . . . .25
IsNovell(). . . . . . . . . . . . . . .26
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper ii
Table of Contents
(continued)
NumGroups() . . . . . . . . . . . . . .27
NumMembers(). . . . . . . . . . . . . .28
NumQueues() . . . . . . . . . . . . . .29
NumServers(). . . . . . . . . . . . . .30
NumUsers(). . . . . . . . . . . . . . .31
NumVolumes(). . . . . . . . . . . . . .32
SecurEquiv(). . . . . . . . . . . . . .33
ServDate(). . . . . . . . . . . . . . .34
ServTime(). . . . . . . . . . . . . . .35
SetDefCon() . . . . . . . . . . . . . .36
UserName(). . . . . . . . . . . . . . .37
WhoAmI(). . . . . . . . . . . . . . . .38
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 1
License Information
COPYRIGHT NOTICE
LXNet is copyrighted, and all rights are reserved. It is being released
as shareware. It may be tested, copied, uploaded to public access bulletin
boards, and distributed in any manner where the recipient pays for no more
than the cost of the distribution. All original files must be included.
LXNet may not be bundled with any other programs, libraries, or functions
without the written permission of the author.
RESTRICTIONS
LXNet functions may not be used in any application, for other than testing
purposes, by unregistered users. They may not be included in any application
that is in its final form, without registration.
DISCLAIMER
No guarantee of any kind is made in regards to these functions.
REGISTRATION
Use of LXNet may be registered by sending Twentyfive dollars to its author.
Any registered user may include the LXNet functions in any of his or her
applications that are for personal or corporate use, or that are distibuted
as .EXE applications. They are also entitled to make use of any upgrades
to the LXNet functions that are publicly available as shareware within
24 months of their original registration.
Note that registration does not provide the right to include LXNet
functions as part of any library of functions. Registration provides the
right to include LXNet functions only in applications distributed as .EXE
files.
To register, send $25.00 to: Randy Proulx
1618 Marion Rd. SE #47
Rochester, MN 55904
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 2
How to use this library
This library needs no setup or special instructions. All you have
to do is include LXNet in you LIB or SEARCH parameters for PLINK.
If you don't use PLINK, you will have to follow the instructions for
your linker for adding libraries.
I originally wrote the functions for a client that wanted security
within their application that would follow their Novell groups and
security equivilances. After writing these functions, including
security in my menus was a snap. I hope you find them useful also.
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 3
Future Features and Current Limitations
These function will only work on Novell Networks, I have no idea what
would happen on another network operating system. This Library has been
tested with Novell Netware V2.12. It should work with all Netware
versions 2.0 and later (with the exception of some queue option and the
capture command) since the system calls are the same. It has
not been tested with Clipper 5.0 either, no Clipper internals are called,
so it may work.
Changes from 1.0 (CLPNET)
Printing functions were added including Capture(), EndCap(),
FlushCap(), EndSpecCap(), FlushSCap(), CancelCap(), CanSpecCap(),
DefaultLPT(), GetBanUser(), A_Queues(), NumQueues().
A_Servers() and NumServers() were added.
IsNovell() was added.
Problem in A_Members was fixed. The problem caused A_Members to
return scambled user ids.
Changes from 1.1 (LXNet (9-24-90)
Multiple server functions were added including DefaultCon() and
SetDefCon().
A_Volume() and NumVolumes() were added to get volume names.
UserName() was added to get the full user name.
ServTime() and ServDate were added to get the server date and time.
Bug in IsNovell was fixed. This was called by many internals and
may have caused many functions to not work.
Future releases will include the following:
A function to login to any file server
A function to attach to another file server
A function to logout
A function to map drives
A function to get the user on any workstation
A function to send a message to another workstation
A function to get messages from other workstations
A function to caston and castoff (set broadcast mode)
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 4
Changes from version 1.0
IsNovell() function has been added. This function calls a Novell
function call and checks for DOS's error code to see if it failed.
The function call should never have an error unless the Netware Shell
is not loaded. Limited testing of this function has been done, please
let me know if there is a problem with it.
Numerous printing functions have been added, the most usefull being
the capture command. You can now capture to a queue using most of
Novell's capture commands. Commands not supported yet are queueing
to a non-primary server, queueing to a file, specifying a jobname,
and setting the KEEP flag.
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 5
Function :A_Groups
Syntax :A_Groups(a_var)
Description :A_Groups returns the Novell user groups in the array a_var.
a_var must be declared and have enough elements to hold all
the groups. NumGroups() can be used when declaring a_var
to set the correct number of elements.
Example :public groups[NumGroups()]
A_Groups(groups)
for i=1 to NumGroups()
? groups[i]
next
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 6
Function :A_Members
Syntax :A_Members(a_var,groupname)
Description :A_Members returns all the members of the group groupname in
the array a_var. a_var must be declared and have enough
elements to hold all the groups. NumMembers() can be used
when declaring a_var to set the correct number of elements.
Example :public members[NumMembers('EVERYONE')]
A_Members(members,'EVERYONE')
for i=1 to NumMembers('EVERYONE')
? members[i]
next
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 7
Function :A_Queues
Syntax :A_Queues(a_var)
Description :A_Queues returns all the print queues available on the
default server in the array a_var. a_var must be declared
and have enough elements to hold all the queues. NumQueues()
can be used when declaring a_var to set the correct number
of elements.
Example :public queues[NumQueues()]
A_Queues(queues)
for i=1 to NumQueues()
? queues[i]
next
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 8
Function :A_Servers
Syntax :n_var=A_Servers(a_var)
Description :A_Servers returns all the server names that the workstation
is logged into in the array a_var. a_var must be declared
and have enough elements to hold all the servers. The File
Server Table has a maximum size of eight values and a_var
can be sized to 8 elements or NumServers() can be used to
size the array. A_Servers will return the number of file
servers found in the File Server Table.
Example :public servers[NumServers()] &&or public servers[8]
n_servs=A_Servers(servers)
for i=1 to n_servs
? servers[i]
next
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 9
Function :A_Users
Syntax :A_Users(a_var)
Description :A_Users returns all the usernames for the default server.
a_var must be declared and have enough elements to hold all
the users. NumUsers() can be used when declaring a_var to
set the correct number of elements.
Example :public users[NumUsers()]
A_Users(users)
for i=1 to NumUsers()
? users[i]
next
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 10
Function :A_volumes
Syntax :A_volumes(a_var)
Description :A_volumes returns all the volume names for the default server.
a_var must be declared and have enough elements to hold all
the volumes. NumVolumes() can be used when declaring a_var to
set the correct number of elements.
Example :public volumes[NumVolumes()]
A_Volumes(users)
for i=1 to NumVolumes()
? volumes[i]
next
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 11
Function :Cancel_Cap
Syntax :Cancel_Cap()
Description :Cancel_Cap cancels the capture in progress for the default
LPT printer port. Any output not already printed will be
removed from the queue.
Example :capture('/q=myqueue /ti=0 /nb /nt')
set device to print
&&report begins
.
. user presses
. and set cancel_report to .t.
.
if cancel_report
cancel_cap()
else
endcap()
endif
set device to screen
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 12
Function :CanSpecCap
Syntax :CanSpecCap(lptport)
Description :CanSpecCap cancels the capture in progress for the specified
LPT printer port. Any output not already printed will be
removed from the queue. lptport can have the values of 1, 2,
or 3 for ports LPT1, LPT2, or LPT3.
Example :capture('/q=myqueue /ti=0 /nb /nt /l=2')
&& /l=2 will set capture to for LPT2
set device to print
set printer to LPT2 &&tells Clipper to use LPT2
&&report begins
.
. user presses
. and set cancel_report to .t.
.
if cancel_report
CanSpecCap(2)
else
EndSpecCap(2)
endif
set device to screen
set printer to
LXNet Ver. 1.2 - Novell bindery/printing functions for Clipper 13
Function :Capture
Syntax :Capture(option_string)
Description :Capture will end the current capture and start a new one
using the options specified in option_string. Options
available are:
/q=
/b=
/ti=
/t=
/ff formfeed after capture
/nff no formfeed after capture
/p=
/l=
December 21, 2017
Add comments