/
nwlstat.c
49 lines (38 loc) · 940 Bytes
/
nwlstat.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/* Copyright 2000 Luiz Rafael Culik <Culik@sl.conex.net>
See COPYING.txt for licensing terms.
This is an original work by Glenn Scott and is placed in the public domain.
Rev 1.2 15 Aug 1991 23:06:04 GLENN
Forest Belt proofread/edited/cleaned up doc
Rev 1.1 12 Jun 1991 02:19:46 GLENN
Documentation correction and check for compatibility with new return
value for ft_int86().
Rev 1.0 01 Apr 1991 01:01:54 GLENN
Nanforum Toolkit
*/
#include "hbapi.h"
#if defined( HB_OS_DOS )
#include <dos.h>
#endif
HB_FUNC( FT_NWLSTAT )
{
int iConnect;
#if defined( HB_OS_DOS )
{
union REGS regs;
regs.HB_XREGS.ax = 0xDC;
HB_DOS_INT86( 0x2F, ®s, ®s );
iConnect = regs.h.al;
if( iConnect < 0 )
iConnect += 256;
}
#else
iConnect = 0;
#endif
hb_retni( iConnect );
}
HB_FUNC( FT_REBOOT )
{
#if defined( HB_OS_DOS )
int iTODO;
#endif
}