📄 mqprops.h
字号:
//------------- Default Values ----------
#define DEFAULT_QM_QUOTA 0xFFFFFFFF
#define DEFAULT_QM_JOURNAL_QUOTA 0xFFFFFFFF
#define DEFAULT_QM_FOREIGN MSMQ_MACHINE
/*
*
[T] - Basic VARTYPE value of this property.
[R] - Property value may be referenced (VT_BYREF).
[N] - Property value can be retrieved without specifying basic VARTYPE
(assigning VT_NULL instead), Falcon will assign the property
type and will allocated memory if required.
*
*/
/*
*
Flags definition of PROPID_QM_SERVICE
*
*/
#define SERVICE_NONE ((ULONG) 0x00000000)
#define SERVICE_SRV ((ULONG) 0x00000001)
#define SERVICE_BSC ((ULONG) 0x00000002)
#define SERVICE_PSC ((ULONG) 0x00000004)
#define SERVICE_PEC ((ULONG) 0x00000008)
#define SERVICE_RCS ((ULONG) 0x00000010)
//------------- Default Values ----------
#define DEFAULT_N_SERVICE SERVICE_NONE
/*
*
Flags definition of PROPID_QM_OS
*
*/
#define MSMQ_OS_NONE ((ULONG) 0x00000000)
#define MSMQ_OS_FOREIGN ((ULONG) 0x00000100)
#define MSMQ_OS_95 ((ULONG) 0x00000200)
#define MSMQ_OS_NTW ((ULONG) 0x00000300)
#define MSMQ_OS_NTS ((ULONG) 0x00000400)
#define MSMQ_OS_NTE ((ULONG) 0x00000500)
//------------- Default Values ----------
#define DEFAULT_QM_OS MSMQ_OS_NONE
//********************************************************************
// SITE PROPERTIES
//********************************************************************
#define PROPID_S_BASE MQDS_SITE * PROPID_OBJ_GRANULARITY
#define PPROPID_S_BASE (PRIVATE_PROPID_BASE + PROPID_S_BASE)
/* [T] [R] [N]*/
/* ----------------------------*/
#define PROPID_S_PATHNAME (PROPID_S_BASE + 1) /* VT_LPWSTR - + */
#define PROPID_S_SITEID (PROPID_S_BASE + 2) /* VT_CLSID - + */
#define PROPID_S_GATES (PROPID_S_BASE + 3) /* VT_CLSID|VT_VECTOR - + */
#define PROPID_S_PSC (PROPID_S_BASE + 4) /* VT_LPWSTR - + */
#define PROPID_S_INTERVAL1 (PROPID_S_BASE + 5) /* VT_UI2 - + */
#define PROPID_S_INTERVAL2 (PROPID_S_BASE + 6) /* VT_UI2 - + */
#define PROPID_S_MASTERID (PROPID_S_BASE + 7) /* VT_CLSID - + */
#define PROPID_S_SEQNUM (PROPID_S_BASE + 8) /* VT_BLOB - + */
#define PROPID_S_FULL_NAME (PROPID_S_BASE + 9) /* VT_LPWSTR */
#define PROPID_S_NT4_STUB (PROPID_S_BASE + 10) /* VT_UI2 */
#define PROPID_S_FOREIGN (PROPID_S_BASE + 11) /* VT_UI1 */
#define PROPID_S_DONOTHING (PROPID_S_BASE + 12) /* VT_UI1 */
//
// S_DONOTHING is used when creating replicated object (by the replication
// service) to ignore property which are not supported by NT5 DS, like
// site gate or SeqNum. The PropId of these ones are changed to
// S_DONOTHING before calling DSCreateObject or DSSetProps.
//
#define PROPID_S_SECURITY (PPROPID_S_BASE + 1) /* VT_BLOB */
#define PROPID_S_PSC_SIGNPK (PPROPID_S_BASE + 2) /* VT_BLOB */
//
// PROPID_S_NT4_STUB is set to 1 by the migration tool to indicate that
// this site was created by the migration tool and it has the objectGuid
// of the original site in MSMQ1.0 MQIS database.
//
//------------- Default Values ----------
#define DEFAULT_S_INTERVAL1 2 /* sec */
#define DEFAULT_S_INTERVAL2 10 /* sec */
//********************************************************************
// DELETED OBJECT PROPERTIES
//********************************************************************
#define PROPID_D_BASE MQDS_DELETEDOBJECT * PROPID_OBJ_GRANULARITY
#define PPROPID_D_BASE (PRIVATE_PROPID_BASE + PROPID_D_BASE)
/* [T] [R] [N] */
/* ---------------------- */
#define PROPID_D_SEQNUM (PPROPID_D_BASE + 1) /* VT_BLOB */
#define PROPID_D_MASTERID (PPROPID_D_BASE + 2) /* VT_CLSID */
#define PROPID_D_SCOPE (PPROPID_D_BASE + 3) /* VT_UI1 - + */
#define PROPID_D_OBJTYPE (PPROPID_D_BASE + 4) /* VT_UI1 _ + */
#define PROPID_D_IDENTIFIER (PPROPID_D_BASE + 5) /* VT_CLSID - + */
#define PROPID_D_TIME (PPROPID_D_BASE + 6) /* VT_I4 - + */
//********************************************************************
// CNS PROPERTIES
//********************************************************************
#define PROPID_CN_BASE MQDS_CN * PROPID_OBJ_GRANULARITY
#define PPROPID_CN_BASE (PRIVATE_PROPID_BASE + PROPID_CN_BASE)
/* [T] [R] [N] */
/* -------------------- */
#define PROPID_CN_PROTOCOLID (PROPID_CN_BASE + 1) /* VT_UI1 - + */
#define PROPID_CN_NAME (PROPID_CN_BASE + 2) /* VT_LPWSTR */
#define PROPID_CN_GUID (PROPID_CN_BASE + 3) /* VT_CLSID */
#define PROPID_CN_MASTERID (PROPID_CN_BASE + 4) /* VT_CLSID - + */
#define PROPID_CN_SEQNUM (PROPID_CN_BASE + 5) /* VT_BLOB */
#define PROPID_CN_SECURITY (PPROPID_CN_BASE + 1) /* VT_BLOB */
//********************************************************************
// ENTERPRISE PROPERTIES
//********************************************************************
#define PROPID_E_BASE MQDS_ENTERPRISE * PROPID_OBJ_GRANULARITY
#define PPROPID_E_BASE (PRIVATE_PROPID_BASE + PROPID_E_BASE)
/* [T] */
/* -------------- */
#define PROPID_E_NAME (PROPID_E_BASE + 1) /* VT_LPWSTR */
#define PROPID_E_NAMESTYLE (PROPID_E_BASE + 2) /* VT_UI1 */
#define PROPID_E_CSP_NAME (PROPID_E_BASE + 3) /* VT_LPWSTR */
#define PROPID_E_PECNAME (PROPID_E_BASE + 4) /* VT_LPWSTR */
#define PROPID_E_S_INTERVAL1 (PROPID_E_BASE + 5) /* VT_UI2 */
#define PROPID_E_S_INTERVAL2 (PROPID_E_BASE + 6) /* VT_UI2 */
#define PROPID_E_MASTERID (PROPID_E_BASE + 7) /* VT_CLSID */
#define PROPID_E_SEQNUM (PROPID_E_BASE + 8) /* VT_BLOB */
#define PROPID_E_ID (PROPID_E_BASE + 9) /* VT_CLSID */
#define PROPID_E_CRL (PROPID_E_BASE + 10) /* VT_BLOB */
#define PROPID_E_CSP_TYPE (PROPID_E_BASE + 11) /* VT_UI4 */
#define PROPID_E_ENCRYPT_ALG (PROPID_E_BASE + 12) /* VT_UI4 */
#define PROPID_E_SIGN_ALG (PROPID_E_BASE + 13) /* VT_UI4 */
#define PROPID_E_HASH_ALG (PROPID_E_BASE + 14) /* VT_UI4 */
#define PROPID_E_CIPHER_MODE (PROPID_E_BASE + 15) /* VT_UI4 */
#define PROPID_E_LONG_LIVE (PROPID_E_BASE + 16) /* VT_UI4 */
#define PROPID_E_VERSION (PROPID_E_BASE + 17) /* VT_UI2 */
#define PROPID_E_NT4ID (PROPID_E_BASE + 18) /* VT_CLSID */
//
// E_NT4ID is the guid of the enterprise on NT4 (MSMQ1.0). This is used
// for migration, to create an enterprise with predefined objectGUID.
//
#define PROPID_E_SECURITY (PPROPID_E_BASE + 1) /* VT_BLOB */
//-------PROPID_E_NAMESTYLE---------------
#define MQ_UNC_STYLE 0
#define MQ_DNS_STYLE 1
//-------Default Values-------------------
#define DEFAULT_E_NAMESTYLE MQ_UNC_STYLE
#define DEFAULT_E_DEFAULTCSP TEXT("Microsoft Base Cryptographic Provider v1.0")
#define DEFAULT_E_DEFAULTCSP_LEN STRLEN(DEFAULT_E_DEFAULTCSP)
#define DEFAULT_E_PROV_TYPE 1 // PROV_RSA_FULL
#define DEFAULT_E_VERSION 200
// begin_mq_h
//
// LONG_LIVED is the default for PROPID_M_TIME_TO_REACH_QUEUE. If call
// to MQSendMessage() specify this value, or not give this property at
// all, then the actual timeout is taken from MQIS database.
//
#define LONG_LIVED 0xfffffffe
// end_mq_h
//********************************************************************
// USER PROPERTIES
//********************************************************************
#define PROPID_U_BASE MQDS_USER * PROPID_OBJ_GRANULARITY
/* [T] */
/* -------------- */
#define PROPID_U_SID (PROPID_U_BASE + 1) /* VT_BLOB */
#define PROPID_U_SIGN_CERT (PROPID_U_BASE + 2) /* VT_BLOB */
#define PROPID_U_MASTERID (PROPID_U_BASE + 3) /* VT_CLSID */
#define PROPID_U_SEQNUM (PROPID_U_BASE + 4) /* VT_BLOB */
#define PROPID_U_DIGEST (PROPID_U_BASE + 5) /* VT_UUID */
#define PROPID_U_ID (PROPID_U_BASE + 6) /* VT_UUID */
//********************************************************************
// SITELINKS PROPERTIES
//********************************************************************
#define PROPID_L_BASE MQDS_SITELINK * PROPID_OBJ_GRANULARITY
/* [T] */
/* -------------- */
#define PROPID_L_NEIGHBOR1 (PROPID_L_BASE + 1) /* VT_CLSID */
#define PROPID_L_NEIGHBOR2 (PROPID_L_BASE + 2) /* VT_CLSID */
#define PROPID_L_COST (PROPID_L_BASE + 3) /* VT_UI4 */
#define PROPID_L_MASTERID (PROPID_L_BASE + 4) /* VT_CLSID */
#define PROPID_L_SEQNUM (PROPID_L_BASE + 5) /* VT_BLOB */
#define PROPID_L_ID (PROPID_L_BASE + 6) /* VT_CLSID */
#define PROPID_L_GATES (PROPID_L_BASE + 7) /* VT_LPWSTR | VT_VECTOR */
#define PROPID_L_NEIGHBOR1_DN (PROPID_L_BASE + 8) /* VT_LPWSTR */
#define PROPID_L_NEIGHBOR2_DN (PROPID_L_BASE + 9) /* VT_LPWSTR */
#define PROPID_L_DESCRIPTION (PROPID_L_BASE + 10) /* VT_LPWSTR */
#define PROPID_L_FULL_PATH (PROPID_L_BASE + 11) /* VT_LPWSTR */
//********************************************************************
// PURGE PROPERTIES
//********************************************************************
#define PROPID_P_BASE MQDS_PURGE * PROPID_OBJ_GRANULARITY
/* [T] */
/* -------------- */
#define PROPID_P_MASTERID (PROPID_P_BASE + 1) /* VT_CLSID */
#define PROPID_P_PURGED_SN (PROPID_P_BASE + 2) /* VT_BLOB */
#define PROPID_P_ALLOWED_SN (PROPID_P_BASE + 3) /* VT_BLOB */
#define PROPID_P_ACKED_SN (PROPID_P_BASE + 4) /* VT_BLOB */
#define PROPID_P_ACKED_SN_PEC (PROPID_P_BASE + 5) /* VT_BLOB */
#define PROPID_P_STATE (PROPID_P_BASE + 6) /* VT_UI1 */
//********************************************************************
// BSCACK PROPERTIES
//********************************************************************
#define PROPID_B_BASE MQDS_BSCACK * PROPID_OBJ_GRANULARITY
/* [T] */
/* -------------- */
#define PROPID_B_BSC_MACHINE_ID (PROPID_B_BASE + 1) /* VT_CLSID */
#define PROPID_B_ACK_TIME (PROPID_B_BASE + 2) /* VT_I4 */
//********************************************************************
// Site Server PROPERTIES
//********************************************************************
#define PROPID_SRV_BASE MQDS_SERVER * PROPID_OBJ_GRANULARITY
#define PROPID_SRV_NAME (PROPID_SRV_BASE + 1) /* VT_LPWSTR */
#define PROPID_SRV_ID (PROPID_SRV_BASE + 2) /* VT_CLSID */
//********************************************************************
// MSMQ SETTING PROPERTIES
//********************************************************************
#define PROPID_SET_BASE MQDS_SETTING * PROPID_OBJ_GRANULARITY
#define PROPID_SET_NAME (PROPID_SET_BASE + 1) /* VT_LPWSTR */
#define PROPID_SET_SERVICE (PROPID_SET_BASE + 2) /* VT_UI4 */
#define PROPID_SET_QM_ID (PROPID_SET_BASE + 3) /* VT_CLSID */
#define PROPID_SET_APPLICATION (PROPID_SET_BASE + 4) /* VT_LPWSTR */
#define PROPID_SET_FULL_PATH (PROPID_SET_BASE + 5) /* VT_LPWSTR */
#define PROPID_SET_NT4 (PROPID_SET_BASE + 6) /* VT_UI1 */
//
// SET_NT4 is TRUE if the server is NT4/MSMQ1.0. FALSE otherwise.
//
#define PROPID_SET_MASTERID (PROPID_SET_BASE + 7) /* VT_CLSID */
#define PROPID_SET_SITENAME (PROPID_SET_BASE + 8) /* VT_LPWSTR */
//
// PROPID_SET_MASTERID is the NT4 style site guid. It's written on the
// MSMQSetting object which belong to a MSMQ PSC server object. This is the
// best place to keep it, as a server, in NT5 DS, can be in a different site,
// as compared to NT4 MSMQ1 DS. So if it's a server (PROPID_SET_SERVICE is
// SERVICE_PSC or SERVICE_PEC) then MASTERID is the NT4 style site guid which
// is also the masterID for the site's objects. This is used for replication.
//
// PROPID_SET_SITENAME is the site name as written in NT4 MSMQ1 DS.
//
//********************************************************************
// COMPUTER PROPERTIES
//********************************************************************
#define PROPID_COM_BASE MQDS_COMPUTER * PROPID_OBJ_GRANULARITY
#define PROPID_COM_FULL_PATH (PROPID_COM_BASE + 1) /* VT_LPWSTR */
#define PROPID_COM_SAM_ACCOUNT (PROPID_COM_BASE + 2) /* VT_LPWSTR */
//
// COM_CONTAINER Can be used only as extended property when creating
// the computer object.
//
#define PROPID_COM_CONTAINER (PROPID_COM_BASE + 3) /* VT_LPWSTR */
//
// ACCOUNT_CONTROL property is translated to DS attribute userAccountControl
// and it must be set to 4128 (Decimal) when creating a computer object.
// Otherwise, you can't loggin from that computer.
//
#define PROPID_COM_ACCOUNT_CONTROL (PROPID_COM_BASE + 4) /* VT_UI4 */
//********************************************************************
// LEFT PANE QUEUE PROPERTIES
//********************************************************************
//
// This is a temporary object : until msmq is in NT5 schema.
// It is required for displaying MSMQ queues on left pane of MMC
//
#define PROPID_LEFT_BASE MQDS_LEFTPANEQUEUE * PROPID_OBJ_GRANULARITY
#define PROPID_LEFT_FULL_PATH (PROPID_LEFT_BASE + 1) /* VT_LPWSTR */
#endif // __MQPROPS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -