They've already been defined by LPFN_WSARECVMSG and LPFN_WSASENDMSG in parametric functions: void sendEcn
and recvEcn
. LPFN_WSARECVMSG and LPFN_WSASENDMSG are function pointer type. You shall see the doc: https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_wsarecvmsg
But it seems the doc of LPFN_WSASENDMSG is missing. I'll checked and report it.
I'm sure it can run well. It has an official sample: https://github.com/microsoft/Windows-classic-samples/blob/main/Samples/Win7Samples/netds/winsock/sendmsg/SendMsg.cpp
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.