Hi ,
试试这个blog里的方法: http://blogs.msdn.com/b/johnbreakwell/archive/2008/05/14/how-to-tell-if-msmq-is-installed.aspx
Yes. Try to load Mqrt.dll (using the LoadLibrary API).
· For MSMQ 1.0 and 2.0, the DLL
file is not present on the disk if Message Queuing is not installed and so you won't be able to load it.
· For MSMQ 3.0, the Message Queuing
binaries are always present on the disk, but trying to load Mqrt.dll fails with ERROR_DLL_INIT_FAILED if Message Queuing is not installed.
希望有用.
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
