home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.wwiv.com
/
ftp.wwiv.com.zip
/
ftp.wwiv.com
/
pub
/
MISC
/
PBAPI10.ZIP
/
APIDOCS.ZIP
/
USERSDAT.DOC
< prev
next >
Wrap
Text File
|
1998-02-21
|
28KB
|
730 lines
Author....... : Gary Price
Copyrighted by: Freejack's Software 1997-98
USERS_DAT API for TriBBS v10.x/11.x written in PowerBasic v3.5
---------------------------------------------------------------------------
The USERS_DAT unit is used to manipulate data in the USERS.DAT data file
found in node 1's MWORK directory. The USERS_DAT unit is declared in
PBAPI10.INC as follows:
Users.dat BitFields Breadown
UserDatBit.bit1 BIT Assignment
0 = LockedOutFlag 0 = No, 1 = Yes
1 = MarkedForDeletionFlag 0 = No, 1 = Yes
2 = IncludeLOGON1InQWKFlag 0 = No, 1 = Yes
3 = IncludeGOODBYEInQWKFlag 0 = No, 1 = Yes
4 = IncludeBulletinsInQWKFlag 0 = No, 1 = Yes
5 = IncludeNewFilesInQWKFlag 0 = No, 1 = Yes
6 = IncludeNewsletterInQWKFlag 0 = No, 1 = Yes
7 = CheckWaitingMessagesFlag 0 = Yes, 1 = No
UserDatBit.bit2 BIT Assignment
0 = GoodbyeAfterUploadFlag 0 = No, 1 = Yes
1 = AttachedFilesInQWKFlag 0 = No, 1 = Yes
2 to 7 = 0 (Reserved)
UserDatBit.bit3 to UserDatBit.bit10 - All bits are set to 0 (Reserved)
Sub Type Structure for 10 byte BitFields
TYPE UserDatBit
bit1 AS BYTE
bit2 AS BYTE
bit3 AS BYTE
bit4 AS BYTE
bit5 AS BYTE
bit6 AS BYTE
bit7 AS BYTE
bit8 AS BYTE
bit9 AS BYTE
bit10 AS BYTE
END TYPE
---------------------------------------------------------------------------
NetworkBit.bit1 & NetworkBit.bit2 BIT Assignments:
TriBBS allows a sysop to add up to 16 different Networks.
Depending on the bit position 0 or 1, means that a certain Message
Conference belongs to a certain network.
NetworkBit.bit1 BIT Assignment:
0 = Points to network name defined in Network.dat 0 = No, 1 = Yes
1 = Points to network name defined in Network.dat 0 = No, 1 = Yes
2 = Points to network name defined in Network.dat 0 = No, 1 = Yes
3 = Points to network name defined in Network.dat 0 = No, 1 = Yes
4 = Points to network name defined in Network.dat 0 = No, 1 = Yes
5 = Points to network name defined in Network.dat 0 = No, 1 = Yes
6 = Points to network name defined in Network.dat 0 = No, 1 = Yes
7 = Points to network name defined in Network.dat 0 = No, 1 = Yes
NetworkBit.bit2 BIT Assignment:
0 = Points to network name defined in Network.dat 0 = No, 1 = Yes
1 = Points to network name defined in Network.dat 0 = No, 1 = Yes
2 = Points to network name defined in Network.dat 0 = No, 1 = Yes
3 = Points to network name defined in Network.dat 0 = No, 1 = Yes
4 = Points to network name defined in Network.dat 0 = No, 1 = Yes
5 = Points to network name defined in Network.dat 0 = No, 1 = Yes
6 = Points to network name defined in Network.dat 0 = No, 1 = Yes
7 = Points to network name defined in Network.dat 0 = No, 1 = Yes
Sub Type Structure for Network Flag BitFields
TYPE NetworkBit
bit1 AS BYTE
bit2 AS BYTE
END TYPE
---------------------------------------------------------------------------
File Name: "USERS.DAT"
TYPE USERSDAT
UserName AS STRING * 61
Alias AS STRING * 61
Password AS STRING * 16
StreetAddress1 AS STRING * 41
StreetAddress2 AS STRING * 41
City AS STRING * 31
State AS STRING * 31
Country AS STRING * 31
ZipCode AS STRING * 11
PhoneNumber AS STRING * 31
Birthday AS STRING * 9
DateOfFirstCall AS STRING * 9
DateOfLastFileCheck AS STRING * 9
SubscriptionExpirationDate AS STRING * 9
DateAndTimeOfLastCall AS STRING * 15
ExpertMode AS INTEGER
SecurityLevel AS INTEGER
NumberOfCalls AS INTEGER
TimeLeftForToday AS INTEGER
LastMessageConference AS INTEGER
LastFileArea AS INTEGER
DefaultProtocol AS INTEGER
NumberOfCallsToday AS INTEGER
QWKNetworkNode AS INTEGER
DefaultEditor AS INTEGER
InitialChatStatus AS INTEGER
NumberOfFilesDownloadedToday AS INTEGER
ArchiveUsedInQWK AS INTEGER
NumberOfFilesUploaded AS LONG
NumberOfFilesDownloaded AS LONG
NumberOfKBytesUploaded AS LONG
NumberOfKBytesDownloaded AS LONG
NumberOfMessagesPosted AS LONG
NumberOfBytesDownloadedToday AS LONG
NetworkBitFields AS NetworkBit
UserDatBitFields AS UserDatBit
ReservedDataArea AS STRING * 556
END TYPE
DIM UserDatBit AS UserDatBit
DIM USERSDAT AS SHARED USERSDAT
DIM ud AS SHARED USERSDAT PTR
ud = VARPTR32(USERSDAT)
LSET USERSDAT = USERSDAT
---------------------------------------------------------------------------
FUNCTION's below are from the USERSDAT.PBU Unit and DECLAREd in PBAPI10.INC.
FUNCTION USERS_DAT_OPEN()
FUNCTION USERS_DAT_CLOSE()
FUNCTION USERS_DAT_READ(n AS WORD)
FUNCTION USERS_DAT_WRITE(n AS WORD)
FUNCTION USERS_DAT_Length() AS LONG
FUNCTION USERS_DAT_OpenRead(n AS WORD)
FUNCTION USERS_DAT_WriteClose(n AS WORD)
FUNCTION USERS_DAT_OpenReadClose(n AS WORD)
FUNCTION USERS_DAT_OpenWriteClose(n AS WORD)
FUNCTION USERS_DAT_Clearit(n AS WORD)
FUNCTION USERS_DAT_GetUN() AS STRING
FUNCTION USERS_DAT_PutUN(s AS STRING)
FUNCTION USERS_DAT_GetAN() AS STRING
FUNCTION USERS_DAT_PutAN(s AS STRING)
FUNCTION USERS_DAT_GetUP() AS STRING
FUNCTION USERS_DAT_PutUP(s AS STRING)
FUNCTION USERS_DAT_GetSA1() AS STRING
FUNCTION USERS_DAT_PutSA1(s AS STRING)
FUNCTION USERS_DAT_GetSA2() AS STRING
FUNCTION USERS_DAT_PutSA2(s AS STRING)
FUNCTION USERS_DAT_GetCity() AS STRING
FUNCTION USERS_DAT_PutCity(s AS STRING)
FUNCTION USERS_DAT_GetUS() AS STRING
FUNCTION USERS_DAT_PutUS(s AS STRING)
FUNCTION USERS_DAT_GetUC() AS STRING
FUNCTION USERS_DAT_PutUC(s AS STRING)
FUNCTION USERS_DAT_GetUZ() AS STRING
FUNCTION USERS_DAT_PutUZ(s AS STRING)
FUNCTION USERS_DAT_GetUPN() AS STRING
FUNCTION USERS_DAT_PutUPN(s AS STRING)
FUNCTION USERS_DAT_GetUBD() AS STRING
FUNCTION USERS_DAT_PutUBD(s AS STRING)
FUNCTION USERS_DAT_GetDOFC() AS STRING
FUNCTION USERS_DAT_PutDOFC(s AS STRING)
FUNCTION USERS_DAT_GetDOLFC() AS STRING
FUNCTION USERS_DAT_PutDOLFC(s AS STRING)
FUNCTION USERS_DAT_GetSED() AS STRING
FUNCTION USERS_DAT_PutSED(s AS STRING)
FUNCTION USERS_DAT_GetDATOLC() AS STRING
FUNCTION USERS_DAT_PutDATOLC(s AS STRING)
FUNCTION USERS_DAT_PutEM(n AS INTEGER)
FUNCTION USERS_DAT_GetEM() AS INTEGER
FUNCTION USERS_DAT_PutSL(n AS INTEGER)
FUNCTION USERS_DAT_GetSL() AS INTEGER
FUNCTION USERS_DAT_PutNOC(n AS INTEGER)
FUNCTION USERS_DAT_GetNOC() AS INTEGER
FUNCTION USERS_DAT_PutTLFT(n AS INTEGER)
FUNCTION USERS_DAT_GetTLFT() AS INTEGER
FUNCTION USERS_DAT_PutLMC(n AS INTEGER)
FUNCTION USERS_DAT_GetLMC() AS INTEGER
FUNCTION USERS_DAT_PutLFA(n AS INTEGER)
FUNCTION USERS_DAT_GetLFA() AS INTEGER
FUNCTION USERS_DAT_PutDP(n AS INTEGER)
FUNCTION USERS_DAT_GetDP() AS INTEGER
FUNCTION USERS_DAT_PutNOCT(n AS INTEGER)
FUNCTION USERS_DAT_GetNOCT() AS INTEGER
FUNCTION USERS_DAT_PutDE(n AS INTEGER)
FUNCTION USERS_DAT_GetDE() AS INTEGER
FUNCTION USERS_DAT_PutICS(n AS INTEGER)
FUNCTION USERS_DAT_GetICS() AS INTEGER
FUNCTION USERS_DAT_PutNOFDT(n AS INTEGER)
FUNCTION USERS_DAT_GetNOFDT() AS INTEGER
FUNCTION USERS_DAT_PutAUIQ(n AS INTEGER)
FUNCTION USERS_DAT_GetAUIQ() AS INTEGER
FUNCTION USERS_DAT_GetNOFU() AS LONG
FUNCTION USERS_DAT_PutNOFU(n AS LONG)
FUNCTION USERS_DAT_GetNOFD() AS LONG
FUNCTION USERS_DAT_PutNOFD(n AS LONG)
FUNCTION USERS_DAT_GetNOKBU() AS LONG
FUNCTION USERS_DAT_PutNOKBU(n AS LONG)
FUNCTION USERS_DAT_GetNOKBD() AS LONG
FUNCTION USERS_DAT_PutNOKBD(n AS LONG)
FUNCTION USERS_DAT_GetNOMP() AS LONG
FUNCTION USERS_DAT_PutNOMP(n AS LONG)
FUNCTION USERS_DAT_GetNOBDT() AS LONG
FUNCTION USERS_DAT_PutNOBDT(n AS LONG)
FUNCTION USERS_DAT_GetNWN() AS STRING
FUNCTION USERS_DAT_GetNWF(nw AS INTEGER) AS INTEGER
FUNCTION USERS_DAT_PutNWF(nw AS INTEGER, n AS INTEGER)
FUNCTION USERS_DAT_GetLOF() AS INTEGER
FUNCTION USERS_DAT_PutLOF(n AS INTEGER)
FUNCTION USERS_DAT_GetMFDF() AS INTEGER
FUNCTION USERS_DAT_PutMFDF(n AS INTEGER)
FUNCTION USERS_DAT_GetILIQF() AS INTEGER
FUNCTION USERS_DAT_PutILIQF(n AS INTEGER)
FUNCTION USERS_DAT_GetIGIQF() AS INTEGER
FUNCTION USERS_DAT_PutIGIQF(n AS INTEGER)
FUNCTION USERS_DAT_GetIBIQF() AS INTEGER
FUNCTION USERS_DAT_PutIBIQF(n AS INTEGER)
FUNCTION USERS_DAT_GetINFIQF() AS INTEGER
FUNCTION USERS_DAT_PutINFIQF(n AS INTEGER)
FUNCTION USERS_DAT_GetINLIQF() AS INTEGER
FUNCTION USERS_DAT_PutINLIQF(n AS INTEGER)
FUNCTION USERS_DAT_GetCWMF() AS INTEGER
FUNCTION USERS_DAT_PutCWMF(n AS INTEGER)
FUNCTION USERS_DAT_GetGAUF() AS INTEGER
FUNCTION USERS_DAT_PutGAUF(n AS INTEGER)
FUNCTION USERS_DAT_GetAFIQF() AS INTEGER
FUNCTION USERS_DAT_PutAFIQF(n AS INTEGER)
---------------------------------------------------------------------------
MPORTANT: TBNode1sMainDirectory must be set to node 1's main directory
before calling any function with the "Open" word.
USERS_DAT_Open()
The USERS_DAT_Open function opens the USERS.DAT file in node 1's MWORK
directory.
USERS_DAT_Close()
The USERS_DAT_Close function closes the USERS.DAT file in node 1's MWORK
directory.
USERS_DAT_Read(n AS WORD)
The USERS_DAT_Read function reads the record for user "n" into memory.
USERS_DAT_Write(n AS WORD)
The USERS_DAT_Write function updates the record for user "n" from memory.
USERS_DAT_Length() AS LONG
The USERS_DAT_Length function returns the number of records in the USERS.DAT
file.
USERS_DAT_OpenRead(n AS WORD)
The USERS_DAT_OpenRead function provides the functionality of the
USERS_DAT_Open and USERS_DAT_Read functions in a single function call.
USERS_DAT_WriteClose(n AS WORD)
The USERS_DAT_WriteClose function provides the functionality of the
USERS_DAT_Write and USERS_DAT_Close functions in a single function call.
USERS_DAT_OpenReadClose(n AS WORD)
The USERS_DAT_OpenReadClose function provides the functionality of the
USERS_DAT_Open, USERS_DAT_Read, and USERS_DAT_Close functions in a single
function call.
USERS_DAT_OpenWriteClose(n AS WORD)
The USERS_DAT_OpenWriteClose function provides the functionality of the
USERS_DAT_Open, USERS_DAT_Write, and USERS_DAT_Close functions in a single
function call.
USERS_DAT_ClearIt(n AS WORD)
The USERS_DAT_ClearIt function sets the entire USERS_DAT data record for 'n'
to all zeros, leaving the data record in place, but empty.
-----------------------------------------------------------------------------
POINTERS Uses a hidden variable I use called "@ud". Any reference to this is
only for your information for discussion in this doc file. You will not need
to concern yourself trying to use this.. All calls are handled in the main
USERSDAT.PBU Unit by my routines automatically. In other words, I am trying
to keep Pointers as easy as possible for your use. :)
Also, all calls to any Functions which gets data with the string routines
will auto-trim each string's extra spaces and the null terminator, CHR$(0),
off so printing will be easier for you to manipulate. When calling the string
routines to put data back into the string space, all string data will be
resized to fit the USERS.DAT type structure and will add the null terminator
back to the end of the string. Just remember, when working the data in memory
with the pointer calls, you still have to write the data back to the USERS.DAT
in order for the changes to become permanent.
-----------------------------------------------------------------------------
USERS_DAT_GetUN() AS STRING
This form of the USERS_DAT_GetUN function returns a pointer to the user's
name string.
USERS_DAT_PutUN(s AS STRING)
This form of the USERS_DAT_PutUN function sets the user's name string to the
string pointed to by "s". Note that the string pointed to by "s" can be no
more than 60 characters in length.
USERS_DAT_GetAN() AS STRING
This form of the USERS_DAT_GetAN function returns a pointer to the user's
alias string.
USERS_DAT_PutAN(s AS STRING)
This form of the USERS_DAT_PutAN function sets the user's alias string to
the string pointed to by "s". Note that the string pointed to by "s" can be
no more than 60 characters in length.
USERS_DAT_GetUP() AS STRING
This form of the USERS_DAT_GetUP function returns a pointer to the user's
password string.
USERS_DAT_PutUP(s AS STRING)
This form of the USERS_DAT_PutUP function sets the user's password string to
the string pointed to by "s". Note that the string pointed to by "s" can be
no more than 15 characters in length.
USERS_DAT_GetSA1() AS STRING
This form of the USERS_DAT_GetSA1 function returns a pointer to the user's
street address line 1 string.
USERS_DAT_PutSA1(s AS STRING)
This form of the USERS_DAT_PutSA1 function sets the user's street address
line 1 string to the string pointed to by "s". Note that the string pointed
to by "s" can be no more than 40 characters in length.
USERS_DAT_GetSA2() AS STRING
This form of the USERS_DAT_GetSA2 function returns a pointer to the user's
street address line 2 string.
USERS_DAT_PutSA2(s AS STRING)
This form of the USERS_DAT_PutSA2 function sets the user's street address
line 2 string to the string pointed to by "s". Note that the string pointed
to by "s" can be no more than 40 characters in length.
USERS_DAT_GetCity() AS STRING
This form of the USERS_DAT_GetCity function returns a pointer to the user's
city string.
USERS_DAT_PutCity(s AS STRING)
This form of the USERS_DAT_PutCity function sets the user's city string to
the string pointed to by "s". Note that the string pointed to by "s" can be
no more than 30 characters in length.
USERS_DAT_GetUS() AS STRING
This form of the USERS_DAT_GetUS function returns a pointer to the user's
state string.
USERS_DAT_PutUS(s AS STRING)
This form of the USERS_DAT_PutUS function sets the user's state string to
the string pointed to by "s". Note that the string pointed to by "s" can be
no more than 30 characters in length.
USERS_DAT_GetUC() AS STRING
This form of the USERS_DAT_GetUC function returns a pointer to the user's
country string.
USERS_DAT_PutUC(s AS STRING)
This form of the USERS_DAT_PutUC function sets the user's country string to
the string pointed to by "s". Note that the string pointed to by "s" can be
no more than 30 characters in length.
USERS_DAT_GetUZ() AS STRING
This form of the USERS_DAT_GetUZ function returns a pointer to the user's
zip code string.
USERS_DAT_PutUZ(s AS STRING)
This form of the USERS_DAT_PutUZ function sets the user's zip code string to
the string pointed to by "s". Note that the string pointed to by "s" can be
no more than 10 characters in length.
USERS_DAT_GetUPN() AS STRING
This form of the USERS_DAT_GetUPN function returns a pointer to the user's
phone number string.
USERS_DAT_PutUPN(s AS STRING)
This form of the USERS_DAT_PutUPN function sets the user's phone number
string to the string pointed to by "s". Note that the string pointed to by
"s" can be no more than 30 characters in length. The format for the phone
number string is determined by the appropriate setting in SYSDAT1.DAT.
USERS_DAT_GetUBD() AS STRING
This form of the USERS_DAT_GetUBD function returns a pointer to the user's
birthday string.
USERS_DAT_PutUBD(s AS STRING)
This form of the USERS_DAT_PutUBD function sets the user's birthday string to
the string pointed to by "s". Note that the string pointed to by "s" can be
no more than 8 characters in length and uses the format "MM/DD/YY".
USERS_DAT_GetDOFC() AS STRING
This form of the USERS_DAT_GetDOFC function returns a pointer to the user's
date of first call string.
USERS_DAT_PutDOFC(s AS STRING)
This form of the USERS_DAT_PutDOFC function sets the user's date of first
call string to the string pointed to by "s". Note that the string pointed to
by "s" can be no more than 8 characters in length and uses the format
"MM/DD/YY".
USERS_DAT_GetDOLFC() AS STRING
This form of the USERS_DAT_GetDOLFC function returns a pointer to the user's
date of last file check string.
USERS_DAT_PutDOLFC(s AS STRING)
This form of the USERS_DAT_PutDOLFC function sets the user's date of last
file check string to the string pointed to by "s". Note that the string
pointed to by "s" can be no more than 8 characters in length and uses the
format "MM/DD/YY".
USERS_DAT_GetSED() AS STRING
This form of the USERS_DAT_GetSED function returns a pointer to the user's
subscription expiration date string.
USERS_DAT_PutSED(s AS STRING)
This form of the USERS_DAT_PutSED function sets the user's subscription
expiration date string to the string pointed to by "s". Note that the string
pointed to by "s" can be no more than 8 characters in length and uses the
form at "MM/DD/YY".
USERS_DAT_GetDATOLC() AS STRING
This form of the USERS_DAT_GetDATOLC function returns a pointer to the user's
date and time of last call string.
USERS_DAT_PutDATOLC(s AS STRING)
This form of the USERS_DAT_PutDATOLC function sets the user's date and time
of last call string to the string pointed to by "s". Note that the string
pointed to by "s" can be no more than 14 characters in length and uses the
format "MM/DD/YY HH:MM".
USERS_DAT_GetEM() AS INTEGER
This form of the USERS_DAT_GetEM function returns the user's expert mode
setting.
USERS_DAT_PutEM(n AS INTEGER)
This form of the USERS_DAT_PutEM function sets the user's expert mode setting
to "n". "n" must be in the range of 0 to 2 as follows:
0 = Novice mode.
1 = Expert mode.
2 = Super expert mode.
USERS_DAT_GetSL() AS INTEGER
This form of the USERS_DAT_GetSL function returns the user's security level.
USERS_DAT_PutSL(n AS INTEGER)
This form of the USERS_DAT_PutSL function sets the user's security level to
"n". "n" must be in the range of 1 to 9999.
USERS_DAT_GetNOC() AS INTEGER
This form of the USERS_DAT_GetNOC function returns the user's number of
calls.
USERS_DAT_PutNOC(n AS INTEGER)
This form of the USERS_DAT_PutNOC function sets the user's number of calls
to "n".
USERS_DAT_GetTLFT() AS INTEGER
This form of the USERS_DAT_GetTLFT function returns the user's time left for
today.
USERS_DAT_PutTLFT(n AS INTEGER)
This form of the USERS_DAT_PutTLFT function sets the user's time left for
today to "n".
USERS_DAT_GetLMC() AS INTEGER
This form of the USERS_DAT_GetLMC function returns the user's last message
conference.
USERS_DAT_PutLMC(n AS INTEGER)
This form of the USERS_DAT_PutLMC function sets the user's last message
conference to "n".
USERS_DAT_GetLFA() AS INTEGER
This form of the USERS_DAT_GetLFA function returns the user's last file area.
USERS_DAT_PutLFA(n AS INTEGER)
This form of the USERS_DAT_PutLFA function sets the user's last file area to
"n".
USERS_DAT_GetDP() AS INTEGER
This form of the USERS_DAT_GetDP function returns the user's default
protocol.
USERS_DAT_PutDP(n AS INTEGER)
This form of the USERS_DAT_PutDP function sets the user's default protocol
to "n". "n" must be as follows:
0 = No default.
1 to 255 = ASCII code for the protocol's first character.
Example: n = ASCII(UCASE$(zmodem)
The ASCII of "Z" would be '90'
USERS_DAT_GetNOCT() AS INTEGER
This form of the USERS_DAT_GetNOCT function returns the user's number of
calls for today.
USERS_DAT_PutNOCT(n AS INTEGER)
This form of the USERS_DAT_PutNOCT function sets the user's number of calls
for today to "n".
USERS_DAT_GetDE() AS INTEGER
This form of the USERS_DAT_GetDE function returns the user's default editor.
USERS_DAT_DefaultEditor(n AS INTEGER)
This form of the USERS_DAT_PutDE function sets the user's default editor to
"n". "n" is set as follows:
0 = No default editor.
1 = Line editor.
2 = Full screen editor.
USERS_DAT_GetICS() AS INTEGER
This form of the USERS_DAT_GetICS function returns the user's initial chat
status.
USERS_DAT_PutICS(n AS INTEGER)
This form of the USERS_DAT_PutICS function sets the user's initial chat
status to "n". "n" must be in the range of 0 to 1 as follows:
0 = Available for chat.
1 = Not available for chat.
USERS_DAT_GetNOFDT() AS INTEGER
This form of the USERS_DAT_GetNOFDT function returns the user's number of
files downloaded for today.
USERS_DAT_PutNOFDT(n AS INTEGER)
This form of the USERS_DAT_PutNOFDT function sets the user's number of files
downloaded for today to "n".
USERS_DAT_GetAUIQ()
This form of the USERS_DAT_GetAUIQ function returns the user's archive used
in QWK.
USERS_DAT_PutAUIQ(n AS INTEGER)
This form of the USERS_DAT_PutAUIQ function sets the user's archive used in
QWK to "n". "n" must be in the range of 0 to 4 as follows:
0 = ZIP
1 = LZH
2 = ARJ
3 = ARC
4 = PAK
USERS_DAT_GetNOFU() AS LONG
This form of the USERS_DAT_GetNOFU function returns the user's number of
files uploaded.
USERS_DAT_NumberOfFilesUploaded(n AS LONG)
This form of the USERS_DAT_PutNOFU function sets the user's number of files
uploaded to "n".
USERS_DAT_GetNOFD() AS LONG
This form of the USERS_DAT_GetNOFD function returns the user's number of
files downloaded.
USERS_DAT_PutNOFD(n AS LONG)
This form of the USERS_DAT_PutNOFD function sets the user's number of files
downloaded to "n".
USERS_DAT_GetNOKBU() AS LONG
This form of the USERS_DAT_GetNOKBU function returns the user's number of
Kilo Bytes uploaded.
USERS_DAT_PutNOKBU(n AS LONG)
This form of the USERS_DAT_PutNOKBU function sets the user's number of Kilo
Bytes uploaded to "n".
USERS_DAT_GetNOKBD() AS LONG
This form of the USERS_DAT_GetNOKBD function returns the user's number of
Kilo Bytes downloaded.
USERS_DAT_PutNOKBD(n AS LONG)
This form of the USERS_DAT_PutNOKBD function sets the user's number of Kilo
Bytes downloaded to "n".
USERS_DAT_GetNOMP() AS LONG
This form of the USERS_DAT_GetNOMP function returns the user's number of
messages posted.
USERS_DAT_PutNOMP(n AS LONG)
This form of the USERS_DAT_PutNOMP function sets the user's number of
messages posted to "n".
USERS_DAT_GetNOBDT() AS LONG
This form of the USERS_DAT_GetNOBDT function returns the user's number of
bytes downloaded today.
USERS_DAT_PutNOBDT(n AS LONG)
This form of the USERS_DAT_PutNOBDT function sets the user's number of bytes
downloaded today to "n".
USERS_DAT_GetNWN() AS STRING
The USERS_DAT_GetNWN function returns a pointer to the user's QWK netstatus
Network name string for the user. NOTE: If the user belongs to multiple
Networks, then it will return a string with all network names that this user
belongs to as in this Example: Fidonet, WME, Rime
USERS_DAT_GetNWF(nw AS INTEGER) AS INTEGER
This form of the USERS_DAT_GetNWF function returns the user's QWK netstatus
flag for the network specified by "nw".
USERS_DAT_PutNWF(nw AS INTEGER, n AS INTEGER)
This form of the USERS_DAT_PutNWF function sets the user's QWK netstatus flag
for the network specified by "nw" to "n". "n" must be in the range of 0 to 1
as follows:
0 = User does not have netstatus for the network.
1 = The user has netstatus for the network.
-----------------------------------------------------------------------------
All BIT Field Flags below have been converted to Integers to allow easier
access and handling.
-----------------------------------------------------------------------------
USERS_DAT_GetLOF() AS INTEGER
This form of the USERS_DAT_GetLOF function returns the user's locked out
flag.
USERS_DAT_PutLOF(n AS INTEGER)
This form of the USERS_DAT_PutLOF function sets the user's locked out flag
to "n". "n" must be in the range of 0 to 1 as follows:
0 = The user is not locked out.
1 = The user is locked out.
USERS_DAT_GetMFDF() AS INTEGER
This form of the USERS_DAT_GetMFDF function returns the user's marked for
deletion flag.
USERS_DAT_PutMFDF(n AS INTEGER)
This form of the USERS_DAT_PutMFD function sets the user's marked for
deletion flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = The user is not marked for deletion.
1 = The user is marked for deletion.
USERS_DAT_GetILIQF() AS INTEGER
This form of the USERS_DAT_GetILIQF function returns the user's include
LOGON1 in QWK flag.
USERS_DAT_PutILIQF(n AS INTEGER)
This form of the USERS_DAT_PutILIQF function sets the user's include LOGON1
in QWK flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = Do not include LOGON1 in a QWK packet.
1 = Include LOGON1 in a QWK packet.
USERS_DAT_GetIGIQF() AS INTEGER
This form of the USERS_DAT_GetIGIQF function returns the user's include
GOODBYE in QWK flag.
USERS_DAT_PutIGIQF(n AS INTEGER)
This form of the USERS_DAT_PutIGIQF function sets the user's include GOODBYE
in QWK flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = Do not include GOODBYE in a QWK packet.
1 = Include GOODBYE in a QWK packet.
USERS_DAT_GetIBIQF() AS INTEGER
This form of the USERS_DAT_GetIBIQF function returns the user's include
bulletins in QWK flag.
USERS_DAT_PutIBIQF(n AS INTEGER)
This form of the USERS_DAT_PutIBIQF function sets the user's include
bulletins in QWK flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = Do not include Bulletins in a QWK packet.
1 = Include bulletins in a QWK packet.
USERS_DAT_GetINFIQF() AS INTEGER
This form of the USERS_DAT_GetINFIQF function returns the user's include new
files in QWK flag.
USERS_DAT_PutINFIQF(n AS INTEGER)
This form of the USERS_DAT_PutINFIQF function sets the user's include new
files in QWK flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = Do not include a new files list in a QWK packet.
1 = Include a new files list in a QWK packet.
USERS_DAT_GetINLIQF() AS INTEGER
This form of the USERS_DAT_GetINLIQF function returns the user's include
news letter in QWK flag.
USERS_DAT_PutINLIQF(n AS INTEGER)
This form of the USERS_DAT_PutINLIQF function sets the user's include news
letter in QWK flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = Do not include a newsletter in a QWK packet.
1 = Include a newsletter in a QWK packet.
USERS_DAT_GetCWMF() AS INTEGER
This form of the USERS_DAT_GetCWMF function returns the user's check waiting
messages flag.
USERS_DAT_PutCWMF(n AS INTEGER)
This form of the USERS_DAT_PutCWMF function sets the user's check waiting
message flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = Check for waiting messages at logon.
1 = Do not check for waiting messages at logon.
USERS_DAT_GetGAUF() AS INTEGER
This form of the USERS_DAT_GetGAUF function returns the user's goodbye after
upload flag.
USERS_DAT_PutGAUF(n AS INTEGER)
This form of the USERS_DAT_PutGAUF function sets the user's goodbye after
upload flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = Do not log off after a REP packet upload.
1 = Log the user off after a REP packet upload.
USERS_DAT_GetAFIQF() AS INTEGER
This form of the USERS_DAT_GetAFIQF function returns the user's attached
files in QWK flag.
USERS_DAT_PutAFIQF(n AS INTEGER)
This form of the USERS_DAT_PutAFIQF function sets the user's attached files
in QWK flag to "n". "n" must be in the range of 0 to 1 as follows:
0 = Do not include attached files in a QWK packet.
1 = Include attached files in a QWK packet.