LIBMAIN.LST 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. Listing:
  2. 1 IMPLEMENTATION MODULE LibMain;
  3. 2 IMPORT Windows;
  4. 3
  5. 4 PROCEDURE LIBMAIN(hInstance:HANDLE;wDataSeg,cbHeapSize:CARDINAL;lpszCmdLine:ARRAY OF CHAR):INTEGER;
  6. ***** ^ undeclared identifier
  7. ***** ^ not supported yet
  8. 5 VAR
  9. 6 Ret : INTEGER;
  10. 7 BEGIN
  11. 8 Ret := 1;
  12. 9 (* . *)
  13. 10 (* . *)
  14. 11 (* . *)
  15. 12 (* Perform DLL Initialization here *)
  16. 13 (* . *)
  17. 14 (* . *)
  18. 15 (* . *)
  19. 16 IF cbHeapSize > 0 THEN
  20. 17 Windows.UnlockData(0);
  21. ***** ^ not supported yet
  22. ***** ^ not supported yet
  23. ***** ^ not supported yet
  24. 18 END; (*IF*)
  25. 19 RETURN Ret;
  26. 20 END LIBMAIN;
  27. ***** ^ not supported yet
  28. 21
  29. 22 PROCEDURE WEP(nParam:INTEGER):INTEGER;
  30. 23 BEGIN
  31. 24 CASE nParam OF
  32. 25 Windows.WEP_SYSTEM_EXIT : (* System Shutdown *)
  33. ***** ^ not supported yet
  34. ***** ^ not supported yet
  35. 26 RETURN 1; |
  36. 27 Windows.WEP_FREE_DLL : (* Use count = 0 - DLL freed *)
  37. ***** ^ not supported yet
  38. ***** ^ not supported yet
  39. 28 RETURN 1; |
  40. 29 ELSE (* Undefined, just return *)
  41. 30 RETURN 1;
  42. 31 END; (*CASE*)
  43. 32 END WEP;
  44. ***** ^ not supported yet
  45. 33
  46. 34 END LibMain.
  47. ***** ^ not supported yet
  48. 12 errors