home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
cinfo.exe
/
CONINFO.ASM
< prev
next >
Wrap
Assembly Source File
|
1995-04-25
|
2KB
|
100 lines
;****************************************************************************
;** File: CONINFO.C
;**
;** Desc: Demonstrates how to get connection information using
;** assembly calls.
;**
;**
;**
;**
;**
;** DISCLAIMER
;**
;** Novell, Inc. makes no representations or warranties with respect to
;** any NetWare software, and specifically disclaims any express or
;** implied warranties of merchantability, title, or fitness for a
;** particular purpose.
;**
;** Distribution of any NetWare software is forbidden without the
;** express written consent of Novell, Inc. Further, Novell reserves
;** the right to discontinue distribution of any NetWare software.
;**
;** Novell is not responsible for lost profits or revenue, loss of use
;** of the software, loss of data, costs of re-creating lost data, the
;** cost of any substitute equipment or program, or claims by any party
;** other than you. Novell strongly recommends a backup be made before
;** any software is installed. Technical support for this software
;** may be provided at the discretion of Novell.
;**
;** Programmers:
;**
;** Ini Who Firm
;** -----------------------------------------------------------------------
;** KLB Karl Bunnell Novell Developer Support.
;**
;** History:
;**
;** When Who What
;** -----------------------------------------------------------------------
;** 01-25-95 klb First code.
;*
Ideal
Model Tiny
P286
CodeSeg
Org 100h
Start: jmp INIT_CODE
;** Structure definitions and Variable declarations
Struc requestBuffStruc
buffLength dw ?
function db ?
lConnNumber db ?
EndS requestBuffStruc
Struc replyBuffStruc
buffLength dw ?
objectID dd ?
objectType dw ?
objectName db 48 dup (?)
loginTime db 8 dup (?)
EndS replyBuffStruc
request requestBuffStruc ?
reply replyBuffStruc ?
Assume ds:DGROUP
INIT_CODE: mov ah, 0DCh ;Get connection number
int 21h
;** Set up request header
mov [request.buffLength], 2
mov [request.function], 016h
mov [request.lConnNumber], al
mov si, offset request
mov [reply.buffLength], 64
mov di, offset reply
mov ah, 0E3h
int 21h
terminate: mov ah, 04Ch ;Return mem. used back to DOS
mov al, 01h ;And terminate program.
int 21h
End Start