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.

59 lines
1.5 KiB

  1. //**********************************************************************
  2. // File name: server.h
  3. //
  4. //
  5. //
  6. // Copyright (c) 1993-1996 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined(SERVER_H)
  9. #define SERVER_H
  10. // String Macros.
  11. #define ABOUT_TITLE_STR "DLLSERVE: OLE Tutorial Code Sample"
  12. // Dialog IDs.
  13. #define IDD_ABOUTBOX 1000
  14. // Error-related String Identifiers.
  15. #define IDS_ASSERT_FAIL 2200
  16. #ifdef __cplusplus
  17. //**********************************************************************
  18. // Class: CServer
  19. //
  20. // Summary: Class to encapsulate control of this COM server (eg, handle
  21. // Lock and Object counting, encapsulate otherwise global data).
  22. //
  23. // Methods: none
  24. //**********************************************************************
  25. class CServer
  26. {
  27. public:
  28. CServer(void);
  29. ~CServer(void);
  30. void Lock(void);
  31. void Unlock(void);
  32. void ObjectsUp(void);
  33. void ObjectsDown(void);
  34. // A place to store the handle to loaded instance of this DLL module.
  35. HINSTANCE m_hDllInst;
  36. // Global DLL Server living Object count.
  37. LONG m_cObjects;
  38. // Global DLL Server Client Lock count.
  39. LONG m_cLocks;
  40. };
  41. #endif // __cplusplus
  42. // Allow other internal ICWUTIL modules to get at the globals.
  43. extern CServer* g_pServer;
  44. #endif // SERVER_H