Partager via


Queue Security Examples

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

The following examples show how to retrieve the name of a queue owner, list the permissions that are granted or denied to specific trustees based on the access rights contained in the applicable access mask, change the discretionary access control list (DACL) of an existing queue to allow specific users to read messages from a queue, and create a security descriptor for a new queue.

For an example of Using
Retrieving the domain name (if applicable) and account name of a queue's owner C/C++ Code Example: Retrieving the Queue Owner's Name
Displaying lists of the permissions that are granted to trustees for a queue C/C++ Code Example: Retrieving the Access Rights of a Queue
Changing the security settings of an existing queue to allow all members of the Everyone group to receive messages from it C/C++ Code Example: Granting Additional Access Rights
Creating a security descriptor that gives a specified trusted user full control over a queue C/C++ Code Example: Granting Additional Access Rights