/// <summary> /// Marshals the unmanaged object pointed to by the native LPARAM field to a managed .NET CLR object. /// </summary> /// <typeparam name="T"> /// Expected type of the LPARAM object. /// </typeparam> /// <returns> /// An instance of an object of type <typeparamref name="T"/> populated with the values contained in the native LPARAM field. /// </returns> public T GetLParamAsObject <T>() where T : class { return(PInvokeUtils.MarshalPtrToObject <T>(LParamPtr)); }