How to create a remote mailslot in win32 programming?

369 Views Asked by At
hMailslot = CreateMailslot("\\\\.\\Mailslot\\client", 0, MAILSLOT_WAIT_FOREVER, NULL);

This is the mailslot that I created for local machine and it works.

How, exactly can I create for a mailslot for a remote machine?

1

There are 1 best solutions below

0
On

Refer to Mailslot Names, the "ComputerName" thing:

More frequently, you would use the following form to write to a mailslot on a specific remote computer:

\\ComputerName\mailslot\[path]\name