PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
dotNet Class for Printer ACL
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework
dotNet Class for Printer ACL
![]() |
dotNet Class for Printer ACL |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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. -- Ciaran O''Donnell http://wannabedeveloper.spaces.live.com "SteveYau" wrote: > 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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

