/// <summary> /// /// </summary> /// <param name="productId"></param> /// <param name="ownerWStringPointer"></param> /// <param name="companyWStringPointer"></param> /// <returns></returns> static bool GetRegisteredOwnerInfoHelper(Guid productId, IntPtr ownerWStringPointer, IntPtr companyWStringPointer) { var owner = string.Empty; var company = string.Empty; var rc = LicenseUtils.GetRegisteredOwnerInfo(productId, ref owner, ref company); if (!rc) { return(false); } UnsafeNativeMethods.ON_wString_Set(ownerWStringPointer, owner); UnsafeNativeMethods.ON_wString_Set(companyWStringPointer, company); return(true); }