/// <summary> /// Marshals the unmanaged structure pointed to by the native LPARAM field to a managed .NET CLR struct. /// </summary> /// <typeparam name="T"> /// Expected type of the LPARAM structure. /// </typeparam> /// <returns> /// A structure of type <typeparamref name="T"/> populated with the values contained in the native LPARAM field. /// </returns> public T GetLParamAsStruct <T>() where T : struct { return(PInvokeUtils.MarshalPtrToStruct <T>(LParamPtr)); }