Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to assign printer rights or monitor printer usage
Message
De
15/11/2003 18:35:19
 
 
À
15/11/2003 06:39:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00849742
Message ID:
00850341
Vues:
23
Hi Hilmar,

>>Hi All,
>>
>>Is there a way for the following to be done?
>>
>>1. Assign 'user rights' to specific printers? That is, user Adam can print to Printer A, while user Mary is prohibited from printing to it.
>
>When you share a printer (or a folder, for that matter), you can assign a password.
>
>Windows also has the option to share to a specific user.
>
>The first method (assigning a password to every shared resource) doesn't require a domain server, the second does - but I think that for a larger network, the second method makes more sense.


My reply:

Will user level sharing work even on a stand alone PC? The PCs all run on XP.

This is the situation. My client has been distributing some sort of proprietary software which can dump print jobs on a special printer (also proprietary) that can print/engrave on metal (as against the usual paper) items like pendants. He wants to deter users using their own metal material.

Now, he wants some sort of monitoring or better yet a way to find out how many print jobs were made on a particular day.

I have gone thru WINSPOOL.DRV documentation and found out that there are functions like OpenPrinter, ClosePrinter. There is this EnumJobs which I think is the answer but I cant seem to make it work. (No idea what DWORD, STRUCT et al is though)

However, isnt it logical that there must be some log where one can print out or save to disk where XP?

Thanks! Hoping for your early help. =)

Dennis
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform