| 4097 | FnTable = (IVRNotifications)Marshal.PtrToStructure(pInterface, typeof(IVRNotifications)); |
| 4098 | } |
| 4099 | public EVRNotificationError CreateNotification(ulong ulOverlayHandle,ulong ulUserValue,EVRNotificationType type,string pchText,EVRNotificationStyle style,ref NotificationBitmap_t pImage,ref uint pNotificationId) |
| 4100 | { |
| 4101 | IntPtr pchTextUtf8 = Utils.ToUtf8(pchText); |
| 4102 | pNotificationId = 0; |
| 4103 | EVRNotificationError result = FnTable.CreateNotification(ulOverlayHandle,ulUserValue,type,pchTextUtf8,style,ref pImage,ref pNotificationId); |
| 4104 | Marshal.FreeHGlobal(pchTextUtf8); |
| 4105 | return result; |
| 4106 | } |
| 4107 | public EVRNotificationError RemoveNotification(uint notificationId) |
| 4108 | { |
| 4109 | EVRNotificationError result = FnTable.RemoveNotification(notificationId); |