Category : Files from Magazines
Archive   : NOV91.ZIP
Filename : 2N11066A

 
Output of file : 2N11066A contained in archive : NOV91.ZIP
/*
* Check for NetWare connection
* (written for Borland C)
*/

#include
#include

struct REGPACK r; /* make 80x86 registers available */

int main(void)
{
r.r_ax = 0xDC00;
intr(0x21,&r); /* Get connection number */

if ((r.r_ax & 0x00FF) > 0)
printf("You have NetWare connection #%d.\n",(r.r_ax & 0x00FF));
else
{
puts("You're not logged in to a NetWare LAN.");
return(1);
}

return(0);
}


  3 Responses to “Category : Files from Magazines
Archive   : NOV91.ZIP
Filename : 2N11066A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/