PC Review


Reply
Thread Tools Rate Thread

dotNet Class for Printer ACL

 
 
=?Utf-8?B?U3RldmVZYXU=?=
Guest
Posts: n/a
 
      16th Feb 2007
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2lhcmFuIE8nJ0Rvbm5lbGw=?=
Guest
Posts: n/a
 
      16th Feb 2007
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

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use dotnet 2.0 class in 1.x ravi Microsoft ASP .NET 0 28th Jan 2009 01:50 PM
DotNet class for message only window? PLS Microsoft Dot NET Framework Forms 3 6th Nov 2007 10:25 PM
Subject: Using a dotNET Class in C++ =?Utf-8?B?UmljaGFyZCBDcmVlZA==?= Microsoft VC .NET 0 27th Feb 2005 10:49 PM
Using a dotNET Class in C++ =?Utf-8?B?UmljaGFyZCBDcmVlZA==?= Microsoft VC .NET 0 11th Feb 2005 12:17 PM
access is denied, dotnet class Guoqi Zheng Microsoft ASP .NET 6 24th Sep 2004 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:31 PM.