MQOpenQueue Problem...

  • Thread starter Thread starter altag
  • Start date Start date
A

altag

Hi:

When I try to open a local private queue from a app on the same
machine... I'm getting : MQ_ERROR_ACCESS_DENIED


this is what the open looks like....
hr = MQOpenQueue(wszFormatName,
MQ_RECEIVE_ACCESS,
MQ_DENY_NONE,
&hQueue);


However, when I simply change the flag to MQ_SEND_ACCESS (the
following example) it opens successfully.... so I know it's not a
"naming format issue".....


hr = MQOpenQueue(wszFormatName,
MQ_SEND_ACCESS,
MQ_DENY_NONE,
&hQueue);


Note: This queue was not created via code... It was created via
Control Panel\Computer Management\Services and Applications\Message
Queing
as a local, private, non transactional queue with default
settings...
(windows xp (latest svc packs..)


I would appreciated another set of "experienced" eyes... Many thanks
in advance...
 
Back
Top