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.

41 lines
1.2 KiB

  1. // --------------------------------------------------------------------------
  2. // Module Name: FUSAPI.h
  3. //
  4. // Copyright (c) 2000, Microsoft Corporation
  5. //
  6. // Class to manage communication with the BAM server for shims.
  7. //
  8. // History: 2000-11-03 vtan created
  9. // --------------------------------------------------------------------------
  10. #ifndef _FUSAPI_
  11. #define _FUSAPI_
  12. // --------------------------------------------------------------------------
  13. // CFUSAPI
  14. //
  15. // Purpose: Class that knows how to communicate with the BAM server.
  16. //
  17. // History: 2000-11-03 vtan created
  18. // --------------------------------------------------------------------------
  19. class CFUSAPI
  20. {
  21. private:
  22. CFUSAPI (void);
  23. public:
  24. CFUSAPI (const WCHAR *pszImageName);
  25. ~CFUSAPI (void);
  26. bool IsRunning (void);
  27. bool TerminatedFirstInstance (void);
  28. void RegisterBadApplication (BAM_TYPE bamType);
  29. private:
  30. void DWORDToString (DWORD dwNumber, WCHAR *pszString);
  31. private:
  32. HANDLE _hPort;
  33. WCHAR* _pszImageName;
  34. };
  35. #endif /* _FUSAPI_ */