Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
825 B

  1. #include <windows.h>
  2. #include "gutils.h"
  3. #include "gutilsrc.h"
  4. /* dll global data */
  5. HANDLE hLibInst;
  6. extern void gtab_init(void);
  7. extern BOOL StatusInit(HANDLE);
  8. #ifdef WIN32
  9. BOOL WINAPI LibMain(HANDLE hInstance, DWORD dwReason, LPVOID reserved)
  10. {
  11. if (dwReason == DLL_PROCESS_ATTACH) {
  12. hLibInst = hInstance;
  13. gtab_init();
  14. StatusInit(hLibInst);
  15. }
  16. return(TRUE);
  17. }
  18. #else
  19. WORD wLibDataSeg;
  20. BOOL FAR PASCAL
  21. LibMain(HANDLE hInstance, WORD wDataSeg, WORD cbHeap, LPSTR lpszCmdLine)
  22. {
  23. hLibInst = hInstance;
  24. wLibDataSeg = wDataSeg;
  25. gtab_init();
  26. StatusInit(hLibInst);
  27. return(TRUE);
  28. }
  29. #endif
  30. /* needed for win16 - but does no harm in NT */
  31. int FAR PASCAL
  32. WEP (int bSystemExit)
  33. {
  34. return(TRUE);
  35. }