| N F O _ G E T W I N A D D R ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English AMIGA - NFO_#?
----------------------------------------------------------------------------
NAME
nfo_getwinaddr() - Obtains window pointer from FileHandle.
SYNOPSIS
win = nfo_getwinaddr(fd);
struct Window *nfo_getwinaddr(LONG);
FUNCTION
This func. allows to obtain console Window ptr. from 'fd'
by sending ACTION_DISK_INFO packet.
INPUTS
fd - FileHandle as obtained with 'Open()'.
RETURNS
Returns NULL on failure or pointer to a console Window or
if 'fd' points at non-console handler its 'dol'(volume).
BASES
SysBase, DOSBase
NOTES
Please note that you never know what will be returned in
case you have no idea what you have just 'Open()'ed! Its
advised to use the 'nfo_iswindow()' function to make sure
that the pointer is really a Window.
SEE ALSO
nfo_iswindow(), nfo_getconunit(), nfo_getconioreq()
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |