Entry() is called to allow the DLL to perform any required initialization. It is also called prior to any tokens being passed to the DLL. The DLL is provided with the resource language code to indicate the language being used in the calling application. This function must be exported at ordinal value 4 (four).
WORD WINAPI Entry ( WORD wLanguage )
The default language for the calling application. For the US version of GroupWise, the value of the wLanguage parameter would be:
A value greater than zero should be returned to indicate success. A return value less than or equal to zero indicates an error occurred.
WORD WINAPI Entry( WORD wLanguage) { if ('U' == (char) LOBYTE(wLanguage) && 'S' == (char) HIBYTE(wLanguage)) { return 1; } else { return 0; } }