Hans Leidekker hans@it.vu.nl writes:
On Tuesday 26 October 2004 02:51, Alexandre Julliard wrote:
You cannot cast a WSAPROTOCOL_INFOA* to a WSAPROTOCOL_INFOW*, the structures don't have the same size.
Not generally no, but here I can because the size difference comes from the last element of the structure which is either a unicode string or an ansi string. The FALSE parameter signals that we want an ansi string.
But the function is dealing with an array of them so that doesn't work, the size of the structure really matters.