TA_SYSTEM - required permissions

I'm currently testing licensing behaviour with different users on one pc. I set the TA_SYSTEM flag for UseTrial and CheckAndSavePKey function calls. Different user can uses the same license on the PC, so everything seems to work correctly.

Now there is one point that irritates me:In the documentation (header file) there is written: "If you pass in the TA_SYSTEM flag and you don't have "admin" or "elevated" permission then the call will fail." I'm executing the program as normal user and it works correctly but according the documentation above it should fail. Don't get me wrong, I like this behaviour, but I'm afraid there might be problems on other system configurations I can't test right now. Currently I'm running it on a Windows 7 Ultimate 64bit system.

Thanks.

In the documentation (header file) there is written: "If you pass in the TA_SYSTEM flag and you don't have "admin" or "elevated" permission then the call will fail."

This is always true on Linux & Mac OS X (they require elevation). On Windows it depends. For normal configurations, both limited users and admin users can use TA_SYSTEM unimpeded. However, there's the matter of the Group Policy Editor. Some users do really stupid things with the Group Policy Editor (messing up permissions, etc.), and if that's the case then it will fail.

So, yes, you can get away with using TA_SYSTEM for all users on Windows, but it's recommended you just use CheckAndSavePKey(0, TA_SYSTEM) in your app's installer to be on the safe side.

Thanks, that makes things much clearer to me.What are the relevant group policies?

What are the relevant group policies?

Any of the policies that deal with reading & setting file/folder permissions. Sorry I can't give you a direct reference (I don't know all the policies off the top of my head).