1

I am really trying to find out how msg.exe work in windows 10. does it even use mailslot or uses socket? if it uses mailslot then what is the slot name(for example net send uses "\*\mailslot\messngr"). if anyone could answer thanks in advance.

  • I think `msg.exe` is using IPC to connect to RDSH. The [mailslot mechanism itself is using IPC](https://learn.microsoft.com/en-us/windows/win32/ipc/mailslots) too. – Daniel W. May 04 '21 at 15:11
  • I am kinda want to use the mailslot to send message using c++ from one computer to another on the network but it is not working in windows 10. is there a format for sending message like for example "to\0from\0message" and msg.exe works fine in windows 10. – Dio Paul Thrash May 05 '21 at 04:19
  • You should put your code in the question, tag it with `C++` and you're way more likely to get a helpful answer – Daniel W. May 05 '21 at 10:17
  • LPCSTR slotNameOfMSGexe = "\\\\*\\mailslot\\messngr"; is this the slot name which the msg.exe use? – Dio Paul Thrash May 05 '21 at 10:32
  • You are missing one backslash, 4 slashes escape 2 slashes and also try with a `.` instead of `*` first: `LPCSTR slotNameOfMSGexe = "\\\\.\\mailslot\\messngr";` – Daniel W. May 05 '21 at 11:48
  • thanking for pointing it out but what i REALLY wanted to know out here is, what slot name does msg.exe use? because the above definitely is not the one used by msg.exe in windows 10 pro (ie "\\\\.\\mailslot\\messngr" or "\\\\computername\\mailslot\\messngr"). – Dio Paul Thrash May 05 '21 at 16:19
  • My dear friend, I know nothing about this kind of windows wizardry but does [this link about listing all mailslots](https://social.msdn.microsoft.com/Forums/windows/en-US/712fb524-e3b7-49d4-a686-2e89c0efc5fa/how-can-i-get-a-list-of-all-open-mailslots-in-windows?forum=netfxbcl) help you to find out? I think there is a way to see the mailslot paths somehow. – Daniel W. May 05 '21 at 18:01
  • thank you for the help. i am very grateful to you @DanielW. – Dio Paul Thrash May 06 '21 at 17:28
  • still searching the www – Dio Paul Thrash May 06 '21 at 17:28

0 Answers0