Category : Files from Magazines
Archive   : CUJ9301.ZIP
Filename : 1101027B

 
Output of file : 1101027B contained in archive : CUJ9301.ZIP
int GetSystemInfo (int flag, unsigned char *ptr)
{
if (flag == GET_SYSTEM_INFO)
{
if ( (int)*ptr == sizeof (oSYSTEM_INFO))
{
oSYSTEM_INFO *sinfo = (oSYSTEM_INFO *)ptr;
/* don't touch extended fields */
sinfo->num_displays = _getNumDisplays();
sinfo->num_printers = _getNumPrinters();
sinfo->num_drives = _getNumDrives();
}
if ( (int)*ptr == sizeof (SYSTEM_INFO))
{
SYSTEM_INFO *sinfo = (SYSTEM_INFO *)ptr;
/* fill extended fields */
sinfo->num_displays = _getNumDisplays();
sinfo->num_printers = _getNumPrinters();
sinfo->num_drives = _getNumDrives();
sinfo->num_tapes = _getNumTapes();
}
}
if (flag == GET_DISPLAY_INFO)
{
DISPLAY_INFO *dptr = (DISPLAY_INFO *)ptr;
dptr->xpixels = _getDisplayWidth(dptr->displayno);
dptr->ypixels = _getDisplayHeight(dptr->displayno);
dptr->bits_per_pixel = _getDisplayBPPix(dptr->displayno);
dptr->planes = _getDisplayPlanes(dptr->displayno);
}
return 0;
}



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9301.ZIP
Filename : 1101027B

  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/