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.

51 lines
974 B

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name :
  4. funcdict.hxx
  5. Abstract:
  6. Class that contains all the methods used by the .inf file
  7. Author:
  8. Christopher Achille (cachille)
  9. Project:
  10. Internet Services Setup
  11. Revision History:
  12. June 2001: Created
  13. --*/
  14. #include "basefunc.hxx"
  15. #define DICTIONARY_MAXFUNCTIONS 50
  16. // class: CFunctionDictionary
  17. //
  18. // This class keeps track of all the Functions available,
  19. // and lets them be used
  20. //
  21. class CFunctionDictionary {
  22. private:
  23. CBaseFunction* m_pDict[DICTIONARY_MAXFUNCTIONS];
  24. DWORD m_dwFunctions;
  25. BOOL m_bFunctionsLoaded;
  26. CBaseFunction *FindFunction(LPTSTR szFunctionName);
  27. void DeleteFunctions();
  28. void InitializeFunctions();
  29. BOOL LoadFunctions();
  30. public:
  31. CFunctionDictionary();
  32. ~CFunctionDictionary();
  33. BOOL CallFunction(LPTSTR szFunctionName, LPTSTR szParameters);
  34. };