getstockname() function support

daniel daniel 0 Reputation points
2023-05-23T18:50:10.41+00:00

HI

I have recently been developing a solution that applies to various versions of Windows, from Windows XP to Windows 11.

But the documentation provided for the function involved on your https://learn.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-getsockname page says that the minimum version is 8.1.

however, I verified that the change works without problem in Windows XP I even found a

2023-05-22_16-31

My question is why is this discrepancy in the documentation?

I must be clear that the modified code will work correctly in both Windows XP and Windows 11.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-05-24T11:14:29.8366667+00:00

    Hello Daniel,

    Thank you for your question and for reaching out with your question today.

    If you have tested it and it works then great. The reason Windows 8.1 is the minimum stated version is because when this document was produced Windows 8.1 was the minimum supported version of Windows. Therefore, WIndows XP will not have been tested. There are many solutions that still work with Windows prior to WIndows 10, but they will not be tested because those versions are no longer supported.

    Good luck with your development.

    If the reply was helpful, please don’t forget to upvote or accept as answer.

    Best regards.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.