Can somebody who has Windows Server run this little test, and tell me what it outputs? You can build it as part of the wine test suite, or standalone with the commands
Well, it's not Windows Server but at least NT4 SP6. The return value is INVALID_HANDLE (-1) and the error the expected INVALID_NAME (123).
bye Fabi