📄 mq.h
字号:
//
// Values are 32 bit values layed out as follows:
//
// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
// +---+-+-+-----------------------+-------------------------------+
// |Sev|C|R| Facility | Code |
// +---+-+-+-----------------------+-------------------------------+
//
// where
//
// Sev - is the severity code
//
// 00 - Success
// 01 - Informational
// 10 - Warning
// 11 - Error
//
// C - is the Customer code flag
//
// R - is a reserved bit
//
// Facility - is the facility code
//
// Code - is the facility's status code
//
//
// Define the facility codes
//
//
// Define the severity codes
//
//
// MessageId: MQ_ERROR
//
// MessageText:
//
// GenericError
//
#define MQ_ERROR 0xC00E0001L
//
// MessageId: MQ_ERROR_PROPERTY
//
// MessageText:
//
// One or more of the passed properties are invalid.
//
#define MQ_ERROR_PROPERTY 0xC00E0002L
//
// MessageId: MQ_ERROR_QUEUE_NOT_FOUND
//
// MessageText:
//
// The queue is not registered in the DS
//
#define MQ_ERROR_QUEUE_NOT_FOUND 0xC00E0003L
//
// MessageId: MQ_ERROR_QUEUE_EXISTS
//
// MessageText:
//
// A queue with the same pathname is already registered
//
#define MQ_ERROR_QUEUE_EXISTS 0xC00E0005L
//
// MessageId: MQ_ERROR_INVALID_PARAMETER
//
// MessageText:
//
// An invalid parameter passed to a function.
//
#define MQ_ERROR_INVALID_PARAMETER 0xC00E0006L
//
// MessageId: MQ_ERROR_INVALID_HANDLE
//
// MessageText:
//
// An invalid handle passed to a function.
//
#define MQ_ERROR_INVALID_HANDLE 0xC00E0007L
//
// MessageId: MQ_ERROR_OPERATION_CANCELLED
//
// MessageText:
//
// The operation was cancelled before it could be completed.
//
#define MQ_ERROR_OPERATION_CANCELLED 0xC00E0008L
//
// MessageId: MQ_ERROR_SHARING_VIOLATION
//
// MessageText:
//
// Sharing violation. The queue is already opened for exclusive receive.
//
#define MQ_ERROR_SHARING_VIOLATION 0xC00E0009L
//
// MessageId: MQ_ERROR_SERVICE_NOT_AVAILABLE
//
// MessageText:
//
// The Message Queues service is not available
//
#define MQ_ERROR_SERVICE_NOT_AVAILABLE 0xC00E000BL
//
// MessageId: MQ_ERROR_MACHINE_NOT_FOUND
//
// MessageText:
//
// The specified machine could not be found.
//
#define MQ_ERROR_MACHINE_NOT_FOUND 0xC00E000DL
//
// MessageId: MQ_ERROR_ILLEGAL_SORT
//
// MessageText:
//
// Illegal sort specified in MQLocateBegin (e.g., duplicate columns).
//
#define MQ_ERROR_ILLEGAL_SORT 0xC00E0010L
//
// MessageId: MQ_ERROR_ILLEGAL_USER
//
// MessageText:
//
// The user is an illegal user.
//
#define MQ_ERROR_ILLEGAL_USER 0xC00E0011L
//
// MessageId: MQ_ERROR_NO_DS
//
// MessageText:
//
// No connection with this site's controller(s).
//
#define MQ_ERROR_NO_DS 0xC00E0013L
//
// MessageId: MQ_ERROR_ILLEGAL_QUEUE_PATHNAME
//
// MessageText:
//
// Illegal queue path name.
//
#define MQ_ERROR_ILLEGAL_QUEUE_PATHNAME 0xC00E0014L
//
// MessageId: MQ_ERROR_ILLEGAL_PROPERTY_VALUE
//
// MessageText:
//
// Illegal property value.
//
#define MQ_ERROR_ILLEGAL_PROPERTY_VALUE 0xC00E0018L
//
// MessageId: MQ_ERROR_ILLEGAL_PROPERTY_VT
//
// MessageText:
//
// Invalid VARTYPE value.
//
#define MQ_ERROR_ILLEGAL_PROPERTY_VT 0xC00E0019L
//
// MessageId: MQ_ERROR_BUFFER_OVERFLOW
//
// MessageText:
//
// The buffer supplied to MQReceiveMessage for message body retrieval
// was too small. The message is not removed from the queue and part
// of the message body that fits in the buffer was copied.
//
#define MQ_ERROR_BUFFER_OVERFLOW 0xC00E001AL
//
// MessageId: MQ_ERROR_IO_TIMEOUT
//
// MessageText:
//
// The MQReceiveMessage timeout has expired
//
#define MQ_ERROR_IO_TIMEOUT 0xC00E001BL
//
// MessageId: MQ_ERROR_ILLEGAL_CURSOR_ACTION
//
// MessageText:
//
// MQ_ACTION_PEEK_NEXT specified to MQReceiveMessage can not be used with
// the current cursor position.
//
#define MQ_ERROR_ILLEGAL_CURSOR_ACTION 0xC00E001CL
//
// MessageId: MQ_ERROR_MESSAGE_ALREADY_RECEIVED
//
// MessageText:
//
// A message that is currently pointed at by the cursor has been removed from
// the queue by another process or by another call to MQReceiveMessage
// without the use of this cursor.
//
#define MQ_ERROR_MESSAGE_ALREADY_RECEIVED 0xC00E001DL
//
// MessageId: MQ_ERROR_ILLEGAL_FORMATNAME
//
// MessageText:
//
// The given format name is invalid.
//
#define MQ_ERROR_ILLEGAL_FORMATNAME 0xC00E001EL
//
// MessageId: MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL
//
// MessageText:
//
// The format name buffer supplied to the API was too small
// to fit the format name
//
#define MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL 0xC00E001FL
//
// MessageId: MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION
//
// MessageText:
//
// The requested operation for the specified format name is not
// supported (e.g., delete a direct queue format name).
//
#define MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION 0xC00E0020L
//
// MessageId: MQ_ERROR_ILLEGAL_SECURITY_DESCRIPTOR
//
// MessageText:
//
// The specified security descriptor is not a valid security descriptor.
//
#define MQ_ERROR_ILLEGAL_SECURITY_DESCRIPTOR 0xC00E0021L
//
// MessageId: MQ_ERROR_SENDERID_BUFFER_TOO_SMALL
//
// MessageText:
//
// The passed buffer for the user ID property is too small.
//
#define MQ_ERROR_SENDERID_BUFFER_TOO_SMALL 0xC00E0022L
//
// MessageId: MQ_ERROR_SECURITY_DESCRIPTOR_TOO_SMALL
//
// MessageText:
//
// The size of the buffer passed to MQGetQueueSecurity is too small.
//
#define MQ_ERROR_SECURITY_DESCRIPTOR_TOO_SMALL 0xC00E0023L
//
// MessageId: MQ_ERROR_CANNOT_IMPERSONATE_CLIENT
//
// MessageText:
//
// The RPC server can not impersonate the client application, hence security
// credentials could not be verified.
//
#define MQ_ERROR_CANNOT_IMPERSONATE_CLIENT 0xC00E0024L
//
// MessageId: MQ_ERROR_ACCESS_DENIED
//
// MessageText:
//
// Access is denied.
//
#define MQ_ERROR_ACCESS_DENIED 0xC00E0025L
//
// MessageId: MQ_ERROR_PRIVILEGE_NOT_HELD
//
// MessageText:
//
// Client does not have the required privileges to perform the operation.
//
#define MQ_ERROR_PRIVILEGE_NOT_HELD 0xC00E0026L
//
// MessageId: MQ_ERROR_INSUFFICIENT_RESOURCES
//
// MessageText:
//
// Insufficient resources to perform operation.
//
#define MQ_ERROR_INSUFFICIENT_RESOURCES 0xC00E0027L
//
// MessageId: MQ_ERROR_USER_BUFFER_TOO_SMALL
//
// MessageText:
//
// Request failed because user buffer is too small to hold the returned information
//
#define MQ_ERROR_USER_BUFFER_TOO_SMALL 0xC00E0028L
//
// MessageId: MQ_ERROR_MESSAGE_STORAGE_FAILED
//
// MessageText:
//
// Could not store a recoverable or journal message. Message was not sent
//
#define MQ_ERROR_MESSAGE_STORAGE_FAILED 0xC00E002AL
//
// MessageId: MQ_ERROR_SENDER_CERT_BUFFER_TOO_SMALL
//
// MessageText:
//
// The passed buffer for the user certificate property is too small.
//
#define MQ_ERROR_SENDER_CERT_BUFFER_TOO_SMALL 0xC00E002BL
//
// MessageId: MQ_ERROR_INVALID_CERTIFICATE
//
// MessageText:
//
// The user certificate is not valid.
//
#define MQ_ERROR_INVALID_CERTIFICATE 0xC00E002CL
//
// MessageId: MQ_ERROR_CORRUPTED_INTERNAL_CERTIFICATE
//
// MessageText:
//
// The internal MSMQ certificate is corrupted.
//
#define MQ_ERROR_CORRUPTED_INTERNAL_CERTIFICATE 0xC00E002DL
//
// MessageId: MQ_ERROR_NO_INTERNAL_USER_CERT
//
// MessageText:
//
// The internal MSMQ certificate for the user does not exist.
//
#define MQ_ERROR_NO_INTERNAL_USER_CERT 0xC00E002FL
//
// MessageId: MQ_ERROR_CORRUPTED_SECURITY_DATA
//
// MessageText:
//
// A cryptogrphic function has failed.
//
#define MQ_ERROR_CORRUPTED_SECURITY_DATA 0xC00E0030L
//
// MessageId: MQ_ERROR_CORRUPTED_PERSONAL_CERT_STORE
//
// MessageText:
//
// The personal certificate store is corrupted.
//
#define MQ_ERROR_CORRUPTED_PERSONAL_CERT_STORE 0xC00E0031L
//
// MessageId: MQ_ERROR_COMPUTER_DOES_NOT_SUPPORT_ENCRYPTION
//
// MessageText:
//
// The computer does not support encryption operations.
//
#define MQ_ERROR_COMPUTER_DOES_NOT_SUPPORT_ENCRYPTION 0xC00E0033L
//
// MessageId: MQ_ERROR_BAD_SECURITY_CONTEXT
//
// MessageText:
//
// Bad security context.
//
#define MQ_ERROR_BAD_SECURITY_CONTEXT 0xC00E0035L
//
// MessageId: MQ_ERROR_COULD_NOT_GET_USER_SID
//
// MessageText:
//
// Could not get the SID information out of the thread token.
//
#define MQ_ERROR_COULD_NOT_GET_USER_SID 0xC00E0036L
//
// MessageId: MQ_ERROR_COULD_NOT_GET_ACCOUNT_INFO
//
// MessageText:
//
// Could not get the account information for the user.
//
#define MQ_ERROR_COULD_NOT_GET_ACCOUNT_INFO 0xC00E0037L
//
// MessageId: MQ_ERROR_ILLEGAL_MQCOLUMNS
//
// MessageText:
//
// Invalid MQCOLUMNS parameter
//
#define MQ_ERROR_ILLEGAL_MQCOLUMNS 0xC00E0038L
//
// MessageId: MQ_ERROR_ILLEGAL_PROPID
//
// MessageText:
//
// Invalid propid value
//
#define MQ_ERROR_ILLEGAL_PROPID 0xC00E0039L
//
// MessageId: MQ_ERROR_ILLEGAL_RELATION
//
// MessageText:
//
// Invalid relation value in restriction
//
#define MQ_ERROR_ILLEGAL_RELATION 0xC00E003AL
//
// MessageId: MQ_ERROR_ILLEGAL_PROPERTY_SIZE
//
// MessageText:
//
// Illegal property buffer size
//
#define MQ_ERROR_ILLEGAL_PROPERTY_SIZE 0xC00E003BL
//
// MessageId: MQ_ERROR_ILLEGAL_RESTRICTION_PROPID
//
// MessageText:
//
// Invalid propid value in MQRESTRICTION parameter
//
#define MQ_ERROR_ILLEGAL_RESTRICTION_PROPID 0xC00E003CL
//
// MessageId: MQ_ERROR_ILLEGAL_MQQUEUEPROPS
//
// MessageText:
//
// Illegal MQQUEUEPROPS parameter, either null or with zero properties
//
#define MQ_ERROR_ILLEGAL_MQQUEUEPROPS 0xC00E003DL
//
// MessageId: MQ_ERROR_PROPERTY_NOTALLOWED
//
// MessageText:
//
// Invalid propid for the requested operation (e.g. PROPID_Q_INSTANCE
// in MQSetQueueProperties)
//
#define MQ_ERROR_PROPERTY_NOTALLOWED 0xC00E003EL
//
// MessageId: MQ_ERROR_INSUFFICIENT_PROPERTIES
//
// MessageText:
//
// Not all the required properties for the operation were specified
// in the input parameters
//
#define MQ_ERROR_INSUFFICIENT_PROPERTIES 0xC00E003FL
//
// MessageId: MQ_ERROR_MACHINE_EXISTS
//
// MessageText:
//
// Computer with the same name already exists in the site.
//
#define MQ_ERROR_MACHINE_EXISTS 0xC00E0040L
//
// MessageId: MQ_ERROR_ILLEGAL_MQQMPROPS
//
// MessageText:
//
// Illegal MQQMPROPS parameter, either null or with zero properties
//
#define MQ_ERROR_ILLEGAL_MQQMPROPS 0xC00E0041L
//
// MessageId: MQ_ERROR_DS_IS_FULL
//
// MessageText:
//
// DS is full
//
#define MQ_ERROR_DS_IS_FULL 0xC00E0042L
//
// MessageId: MQ_ERROR_DS_ERROR
//
// MessageText:
//
// Internal DS error.
//
#define MQ_ERROR_DS_ERROR 0xC00E0043L
//
// MessageId: MQ_ERROR_INVALID_OWNER
//
// MessageText:
//
// Invalid object owner. For example MQCreateQueue failed because the QM
// object is invalid
//
#define MQ_ERROR_INVALID_OWNER 0xC00E0044L
//
// MessageId: MQ_ERROR_UNSUPPORTED_ACCESS_MODE
//
// MessageText:
//
// The specified access mode is not supported.
//
#define MQ_ERROR_UNSUPPORTED_ACCESS_MODE 0xC00E0045L
//
// MessageId: MQ_ERROR_RESULT_BUFFER_TOO_SMALL
//
// MessageText:
//
// The supplied result buffer is too small
//
#define MQ_ERROR_RESULT_BUFFER_TOO_SMALL 0xC00E0046L
//
// MessageId: MQ_ERROR_DELETE_CN_IN_USE
//
// MessageText:
//
// The Connected Network can not be deleted, it is in use.
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -