I know that when I try to create new MessageQueue, system throws InvalidOperationException if the Message Queuing is not enabled.
But how to know programmatically whether Message Queueing is enabled on the machine or not?
I am using C# 2.0 & C# 4.0 in two different code bases.
You can use the System.ServiceProcess for this one, but first you need to add reference to your project the
Service.ServiceProcess, and you can retrieve all the services and get their status like this: