Create the Initialization Routine

DLLs require a routine, usually called LibMain, which performs library-specific initialization and which is expected to be defined in the source code of the DLL. Since Select does not require initialization, it simply returns a value of 1 to indicate success. The LibMain routine of the Select DLL is defined as follows:

int FAR PASCAL LibMain(hInstance, wDataSeg, cbHeapSize, lpszCmdLine)

WORD wDataSeg,

HANDLE hInstance;

WORD cbHeapSize;

LPSTR lpszCmdLine;

{

return 1;

}