public void AddLicense(License license)
{
IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf(license));
try
{
int status = SafeNativeMethods.xnAddLicense(this.InternalObject, ptr);
WrapperUtils.ThrowOnError(status);
}
finally
{
Marshal.FreeHGlobal(ptr);
}
}