DLLDateien.h 509 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef DLLDateien_H
  2. #define DLLDateien_H
  3. #include <Text.h>
  4. #include <Array.h>
  5. using namespace Framework;
  6. struct DLLDatei
  7. {
  8. Text *name;
  9. HINSTANCE handle;
  10. int ref;
  11. };
  12. class DLLDateien
  13. {
  14. private:
  15. Array< DLLDatei* > *dlls;
  16. CRITICAL_SECTION cs;
  17. int ref;
  18. public:
  19. // Konstruktor
  20. DLLDateien();
  21. // Destruktor
  22. ~DLLDateien();
  23. // nicht constant
  24. HINSTANCE ladeDLL( char *name, char *pfad );
  25. void releaseDLL( char *name );
  26. // Reference Counting
  27. DLLDateien *getThis();
  28. DLLDateien *release();
  29. };
  30. #endif