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.

95 lines
3.5 KiB

  1. /******************************************************************
  2. SessionConnectionCommon.h --
  3. Description: Definition of the headers
  4. Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
  5. ******************************************************************/
  6. // Common routines required for Session and connection Provider
  7. //#ifndef UNICODE
  8. //#define UNICODE
  9. //#endif
  10. #ifndef _CSESSIONCONNECTIONCOMMON_H
  11. #define _CSESSIONCONNECTIONCOMMON_H
  12. #define NTONLY
  13. //#define WIN9XONLY
  14. #define Namespace L"root\\cimv2"
  15. // Provider Classess
  16. #define PROVIDER_NAME_CONNECTION L"Win32_ServerConnection"
  17. #define PROVIDER_NAME_SESSION L"Win32_ServerSession"
  18. #define PROVIDER_NAME_CONNECTIONTOSHARE L"Win32_ConnectionShare"
  19. #define PROVIDER_SHARE L"Win32_Share"
  20. #define PROVIDER_NAME_CONNECTIONTOSESSION L"Win32_SessionConnection"
  21. // Property names for Connection
  22. const static WCHAR *IDS_ShareName = L"sharename" ;
  23. const static WCHAR *IDS_ComputerName = L"computername" ;
  24. const static WCHAR *IDS_UserName = L"UserName" ;
  25. const static WCHAR *IDS_NumberOfFiles = L"NumberOfFiles" ;
  26. const static WCHAR *IDS_ActiveTime = L"ActiveTime" ;
  27. const static WCHAR *IDS_ConnectionID = L"ConnectionID" ;
  28. const static WCHAR *IDS_NumberOfUsers = L"NumberOfUsers" ;
  29. // for session in addition to ComputerName, ShareName and ActiveTime
  30. const static WCHAR *IDS_ResourcesOpened = L"resourcesopened" ;
  31. const static WCHAR *IDS_IdleTime = L"idletime" ;
  32. const static WCHAR *IDS_SessionType = L"sessiontype" ;
  33. const static WCHAR *IDS_ClientType = L"clienttype" ;
  34. const static WCHAR *IDS_TransportName = L"transportname" ;
  35. // for Connection to Share
  36. const static WCHAR *IDS_Connection = L"Dependent" ;
  37. const static WCHAR *IDS_Resource = L"Antecedent" ;
  38. // property for ConnectionToSession
  39. const static WCHAR *IDS_Session = L"Antecedent" ;
  40. // Win32_Share Key name
  41. const static WCHAR *IDS_ShareKeyName = L"Name" ;
  42. // Defining bit values for the property, which will be used for defining the bitmap of properties required connections
  43. #define CONNECTIONS_ALL_PROPS 0xFFFFFFFF
  44. #define CONNECTIONS_PROP_ShareName 0x00000001
  45. #define CONNECTIONS_PROP_ComputerName 0x00000002
  46. #define CONNECTIONS_PROP_UserName 0x00000004
  47. #define CONNECTIONS_PROP_NumberOfFiles 0x00000008
  48. #define CONNECTIONS_PROP_ConnectionID 0x00000010
  49. #define CONNECTIONS_PROP_NumberOfUsers 0x00000020
  50. #define CONNECTIONS_PROP_ConnectionType 0x00000040
  51. #define CONNECTIONS_PROP_ActiveTime 0x00000080
  52. // Defining bit values for the property, which will be used for defining the bitmap of properties required for sessions
  53. #define SESSION_ALL_PROPS 0xFFFFFFFF
  54. #define SESSION_PROP_Computer 0x00000001
  55. #define SESSION_PROP_User 0x00000002
  56. #define SESSION_PROP_NumOpens 0x00000004
  57. #define SESSION_PROP_ActiveTime 0x00000008
  58. #define SESSION_PROP_IdleTime 0x00000010
  59. #define SESSION_PROP_SessionType 0x00000020
  60. #define SESSION_PROP_ClientType 0x00000040
  61. #define SESSION_PROP_TransportName 0x00000080
  62. #define SESSION_PROP_SessionKey 0x00000100
  63. #define SESSION_PROP_NumOfConnections 0x00000200
  64. // Property Bit Map for Connection To Share Association class
  65. #define CONNECTIONSTOSHARE_ALL_PROPS 0xFFFFFFFF
  66. // Property Bit Map for Connection To Session Association class
  67. #define CONNECTIONSTOSESSION_ALL_PROPS 0xFFFFFFFF
  68. enum { Get, Delete, NoOp };
  69. #endif