Category : C Source Code
Archive   : HELPLIB.ZIP
Filename : LIBINITC.C
* Utilities library C language initialization.
*/
#include
#include "helplib.h"
#include "prothelp.h"
/**********************************************************************
* function prototypes
**********************************************************************/
#define LOCAL static
int NEAR PASCAL LibInitC ( HANDLE );
LOCAL BOOL NEAR registerWindow ( VOID );
/**********************************************************************
* Global vars
**********************************************************************/
HANDLE hInst;
/**********************************************************************
* C init called from the asm entry point init.
* We require that the library have exactly one DS. See libinita.asm.
* The DS can (should) be moveable.
***********************************************************************/
int NEAR PASCAL LibInitC(HANDLE hInstance)
{
hInst = hInstance;
return(registerWindow());
}
/************************************************************************/
LOCAL BOOL NEAR registerWindow ( )
{WNDCLASS WndClass; /* Window class structure */
WndClass.style = CS_HREDRAW | CS_VREDRAW;
WndClass.lpfnWndProc = ScreenWndProc;
WndClass.cbClsExtra = 0;
WndClass.cbWndExtra = sizeof(HANDLE);
WndClass.hInstance = hInst;
WndClass.hIcon = NULL;
WndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
WndClass.hbrBackground = COLOR_WINDOW+1;
WndClass.lpszMenuName = NULL;
WndClass.lpszClassName = "Screen";
return RegisterClass(&WndClass);
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/