I am making the following call:
// Peek at message with the given lookup identifier.
hr = MQReceiveMessageByLookupId(
hQueue, // Handle of queue
ullLookupId, // Lookup identifier
MQ_LOOKUP_PEEK_CURRENT // Access mode
&msgProps, // Message property structure
NULL, // No OVERLAPPED structure
NULL, // No callback function
MQ_NO_TRANSACTION // Not in a transaction
And receiving the following error:
"The access rights of the queue for performing the action specified in dwLookupAction are not allowed for the user that opened the queue."
The queue itself is a private queue accessed locally, and the security on it is setup such that full control is allowed by everyone and yet I still get this error... has anyone run into this problem? and if so how did they correct it? any help is appreciated. Btw, there are in fact 10 messages currently in the queue.
PS: I have cross-posted this question in the Windows Programming topic area.