المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to creat a Hash Role programmatically



C# Programming
11-30-2009, 09:30 AM
Hi all
I must define a Hash Rule to control execution of a software from running by a human on a specific station.
I don't have the source code of software and so ... .
What i am doing is that this software must only be exceuted by another software written by me.
So a user may copy the installed files (on another PC) to the specified station and execute it (so bad).
So a Hash Rule is maybe the best method.

What i want is exactly that how to programmatically creating and dropping a "hash rule".

I don't want to manulally set the hash rule.


Note:
In Windows XP pro:
Run -> gpedit.msc -> Computer Configuration/Windows Settings/Security Settings/Software Restriction Policies/Additional Rules/ Right Click on the right panel / New Hash Rule ...

thanks