Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 27 MAY 1998 06:39:37PM Brandon Lunt wrote:

I am looking for a way to have the Oengine.exe return the maximum number of users to my rbasic program. I am using OI3.5.


At 29 MAY 1998 10:42AM Cameron Revelation wrote:

Brandon,

I am looking for a way to have the Oengine.exe return the maximum number of users to my rbasic program. I am using OI3.5.

This is not a simple one. If you call Get_SysInfo(), it sends the following @fm-delimited information to the client using Send_Dyn:

<code>
equ DBID$	to 1
equ USERNAME$	to 2
equ ADMIN$	to 3
equ SERIAL$	to 4
equ VERSION$	to 5
equ CPU_TYPE$	to 6
equ COPROC$     to 7
equ MEM_AVAIL$	to 8
equ DES_AVAIL$  to 9
equ NETWORK$	to 10
equ STATION$	to 11
equ MAX_USERS$  to 12

</code>

So you have to shell Send_Dyn. (A planned feature is to support a BASIC+ callback from Send_Dyn so this would not be necessary.)

Alternatively, here is the binary for SYSOBJ/$MAXUSERS, a function which returns the maximum number of users:

00010001001300120000008A18E31429

B8740201010101000018005359535052

4F47FE31313130372E34343035303932

3539330400766F6964

Cameron Purdy

[email protected]


At 29 MAY 1998 12:38PM Brandon Lunt wrote:

This sounds great, but can you give me an example of shelling Send_Dyn? I have not been able to get this to work. Also, if there is already a function (SYSOBJ/$MAXUSERS), can't I just make a Maxusers call and accomplish the same thing?


At 29 MAY 1998 02:58PM Andrew P McAuley wrote:

Cam has created the maxusers function for you. You need to grab the hex and write it as binary to $MAXUSERS in Sysobj.

[email protected]

Sprezzatura Ltd

World Leaders in all things RevSoft


At 29 MAY 1998 03:17PM Cameron Revelation wrote:

Brandon,

Also, if there is already a function (SYSOBJ/$MAXUSERS), can't I just make a Maxusers call and accomplish the same thing?

If you already have a SYSOBJ/$MAXUSERS then it probably returns the maximum number of users. I have such a function, but I did not think that it was shipped in the product. To test, in the System Editor command line execute the following:

run maxusers

The reason I posted the binary for the function SYSOBJ/$MAXUSERS it that there is a maxusers() function available but it is intrinsic (implemented by the compiler, not by object code in the SYSOBJ table) and furthermore it is accessible only from the system compiler.

Cameron Purdy

[email protected]

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/6eebfc8561e2af4685256611007c7a1e.txt
  • Last modified: 2024/01/04 21:00
  • by 127.0.0.1