Source code of Windows XP (NT5)
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.

26 lines
652 B

  1. // low-level support for the add-on services
  2. typedef BOOL (FAR _cdecl *LOADPROC)( CMachine* pMachine );
  3. //----------------------------------------------------
  4. class CAddOnService : public CObject
  5. {
  6. public:
  7. // construction
  8. CAddOnService();
  9. // destruction
  10. ~CAddOnService();
  11. // Initialize the service. Loads the dll and makes sure
  12. // the callback we need is there
  13. BOOL FInitializeAddOnService( CString &szName );
  14. // call into the dll to create a new service object that
  15. // gets connected to a machine object
  16. BOOL LoadService( CMachine* pMachine );
  17. private:
  18. HINSTANCE m_library;
  19. LOADPROC m_proc;
  20. // BOOL (*m_proc) ();
  21. };