Mike,
If you're on a commercial workstation, and are not using a plug-in network adapter card, then the MAC address will be unique, although some (most?) workstations have not one, but *two* network interfaces, so there will actually be two distinct MAC addresses. If, however, you're using a plug-in card, you run the risk of crashing your software if the network hardware is upgraded. It is also possible, on Intel CPUs at least (not sure about AMD) to obtain the CPU serial number. Microsoft has the '__cpuid' macro that generates in-line, the MASM to obtain this: http://msdn.microsoft.com/en-us/library/hskdteyh%28v=vs.100%29.aspx That ties your software to a specific CPU (assuming CPU identification is enabled in the BIOS), and is much more reliable. Steve From: [email protected] [mailto:[email protected]] On Behalf Of Stephen Newbold Sent: Tuesday, October 23, 2012 1:03 AM To: Nuke plug-in development discussion Subject: Re: [Nuke-dev] Plugin Licencing Hi Steve, I can see how this would work when tying the plugin to a specific domain but how would you approach locking the plugin to a single machine? Use the MAC address? Steve Steve Booth wrote: Mike, How you do it depends on the OS platform you're using. Generally speaking, what I do is to get the domain name from the network stack (or just using the Win32 API under Windows), and compare it to a const string. Thus, if you're working within, say, Disney Animation, and the compositing domain is comp.disney.com, for example, just error() if the domain does not match this string. Hope that helps. Steve From: [email protected] [mailto:[email protected]] On Behalf Of Mike Wong | artixels.gmail Sent: Thursday, October 18, 2012 7:38 AM To: Nuke plug-in development discussion Subject: Re: [Nuke-dev] Plugin Licencing If I recall correctly, this License API is no longer available according to a thread I checked a while ago. Mike On Thursday, October 18, 2012, Stephen Newbold wrote: Is it possible to provide any more info on how a 3rd party can implement licensing within a plugin? I want to have a look at the very least locking the use of a plugin to a specific site, not really interested in floating licences or anything particularly complicated. http://docs.thefoundry.co.uk/nuke/63/ndkreference/Plugins/structDD_1_1Image_ 1_1License.html Can't really make much sense of this. How does the system ID work. 'This is a 32-bit value that is unique for each customer site'. I check '$this_system_id' here and get 0 as the result. I'm not even sure how this is meant to work! Cheers, Steve -- Stephen Newbold Compositing Lead - Film MPC 127 Wardour Street Soho, London, W1F 0NL Main - + 44 (0) 20 7434 3100 www.moving-picture.com _______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev _____ _______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev -- Stephen Newbold Compositing Lead - Film MPC 127 Wardour Street Soho, London, W1F 0NL Main - + 44 (0) 20 7434 3100 www.moving-picture.com
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
