Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

dotNet Class for Printer ACL

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SteveYau - 16 Feb 2007 04:46 GMT
Hi there,

Knowing that .Net 2.0 has new System.Security.AccessControl namespace. I
read through the documentation but I cannot find a class that can manipulate
printer's ACL, e.g. Print, ManageDocument, ManagePrinters...

Basically, I've written a Windows Service that need to check a particular
printer's ACL and see if a document can be printed. Right now, I'm using
ADSI's ADsSecurityUtility, IADsAccessControlList and IADsAccessControlEntry
to read a printer's ACL.

What I would like to do is to see if "Everyone" have the "Print" permission
on that printer.

Can this be done solely in .NET Framework 2.0?

Thanks in advance.

Steve
Ciaran O''Donnell - 16 Feb 2007 14:13 GMT
As far as I know there is no actual printer object in .NET which would
support this. You would need to use WMI or ADSI to get a printer object and
test the permissions. There is also bound to be a WindowsAPI call you could
make.

You can generate managed wrappers for WMI things in the Server Explorer in
Visual studio but if you have something working then its probably worth
leaving it.

Signature

Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com

> Hi there,
>
[quoted text clipped - 15 lines]
>
> Steve

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.