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.

47 lines
1.8 KiB

  1. // --------------------------------------------------------------------------
  2. // Module Name: BadApplicationAPIServer.h
  3. //
  4. // Copyright (c) 2000, Microsoft Corporation
  5. //
  6. // This file contains several classes that implemention virtual functions
  7. // for complete LPC functionality.
  8. //
  9. // History: 2000-08-25 vtan created
  10. // --------------------------------------------------------------------------
  11. #ifndef _BadApplicationAPIServer_
  12. #define _BadApplicationAPIServer_
  13. #include "APIDispatcher.h"
  14. #include "ServerAPI.h"
  15. #include "PortMessage.h"
  16. // --------------------------------------------------------------------------
  17. // CBadApplicationAPIServer
  18. //
  19. // Purpose: This class implements the interface that the
  20. // CAPIConnectionThread uses to create create the LPC port,
  21. // accept or reject connections to the LPC port and create the
  22. // LPC request handling thread.
  23. //
  24. // History: 2000-08-25 vtan created
  25. // --------------------------------------------------------------------------
  26. class CBadApplicationAPIServer : public CServerAPI
  27. {
  28. public:
  29. CBadApplicationAPIServer (void);
  30. virtual ~CBadApplicationAPIServer (void);
  31. static DWORD StrToInt (const WCHAR *pszString);
  32. protected:
  33. virtual const WCHAR* GetPortName (void);
  34. virtual const TCHAR* GetServiceName (void);
  35. virtual bool ConnectionAccepted (const CPortMessage& portMessage);
  36. virtual CAPIDispatcher* CreateDispatcher (const CPortMessage& portMessage);
  37. virtual NTSTATUS Connect (HANDLE* phPort);
  38. private:
  39. };
  40. #endif /* _BadApplicationAPIServer_ */