Peeking an MSMQ Outgoing Queue with JScript
问题 I created a script to monitor a set of queues, and, while it works perfectly with Remote Private Queues, it doesn't work with Outgoing Queues. I made an experiment by removing everything but the essential from the script, and I created the following test script: var info = new ActiveXObject("MSMQ.MSMQQueueInfo"); info.FormatName = /*<Queue name>*/; // 0x80 = MQ_ADMIN_ACCESS // 0x20 = MQ_PEEK_ACCESS // 0x00 = MQ_DENY NONE var mq = info.Open(0x80 | 0x20, 0x00); var msg = mq.PeekCurrent(false,