Is there any free C/C++ source code for enforcing user licenses? That code must ensure that users cannot run simultaneously more instances of the tool than those that they have purchased and that users can not use the tool after the license period expires.