We have got only MSMQ 3.0. If I add a refernce to MSMQ 3.0 to any project in a system that has MSMQ 3.0, it creates a dll interop.msmq.dll . Can I copy that to the machine that doesnt have MSMQ 3.0 and use it ?
-----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Curt Hagenlocher Sent: Wednesday, May 12, 2004 7:12 PM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] MSMQ From: "Saravana Prasad S" <[EMAIL PROTECTED]> > Is there anyway one can programatically know the number of messages in > a queue. I couldn't figure out any in System.Messaging namespace. If you're using MSMQ 3.0 (which is in Windows XP and 2003 Server), there's a new queue property called PROPID_MGMT_QUEUE_MESSAGE_COUNT that returns what you want. There doesn't seem to be any way to get queue properties through System.Messaging, though. System.Messaging.MessageQueue.Properties is marked as internal. The same information is also available through the MSMQManagement COM object as the MessageCount property. You could create that object through interop. -- Curt Hagenlocher [EMAIL PROTECTED] =================================== This list is hosted by DevelopMentor(r) http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com