I wanna know how I can create Windows pop-ups

I wanna try to see if I can make a Windows pop-up in Unity. I don’t mean like a regular one in the game but I mean one using the actual Windows OS message pop-up. I added an image for what I am talking about. I tried to look it up on Google but I could not find any results. I don’t know if I have to use a 3rd-party application but I am trying to make a horror game and just wanna be able to make it so it can create pop-up messages to scare the user. I hope this is possible but if otherwise that’s okay. By the way, I’m building this game on PC standalone. Not on Universal Windows Platform. I also do not have any plans to release this game on a Mac, Android, Linux, Etc. I’m only planning on supporting it for Windows 10 and 11. I wanted to mention that because I think it may be important.

1 Like

You can call this function using the [DllImport] mechanism: MessageBoxW function (winuser.h) - Win32 apps | Microsoft Learn

How do I handle the types required by the MessageBoxW? I just found out about this and I am confused as to how to implement the function’s required parameters. Thanks!