Using code above I was success adding method CheckLicense + PInvoke, however when I using PEVerify to validate output assembly it's produce this message (error(s)):
================================================================== Microsoft (R) .NET Framework PE Verifier. Version 3.5.30729.1 Copyright (c) Microsoft Corporation. All rights reserved. [MD]: Error: Implementation Map has invalid calling convention 0x0000. [token:0x00000001] [MD]: Error: Implementation Map has invalid calling convention 0x0000. [token:0x00000001] 2 Error(s) Verifying CecilPInvokeInjector.EXE ==================================================================
-- -- mono-cecil
