Simcoder
Centurion
I've recently been playing around with some of the Windows API's and I've noticed a rather strange issue when using NetServerEnum. One of the parameters it takes is "level" which a SERVER_INFO type which can be 100, or 101.
You can take a look at the MSDN example here.
http://msdn.microsoft.com/en-us/library/aa370623(VS.85).aspx
It would appear that type 101 does the exact same thing as 100 but just returns a more detailed result set. However, upon examination, I'm noticing that the platformID is different depending on which type you pass in.
PLATFORM_ID_DOS = 300,
PLATFORM_ID_OS2 = 400,
PLATFORM_ID_NT = 500,
PLATFORM_ID_OSF = 600,
PLATFORM_ID_VMS = 700
For example, when I run it on my local network with 100 as the type, I return 400 (OS2) but when I pass in 101, 500 (NT) is returned. Can anyone shed any light on this? I can post code examples if needed. Thanks.
Joel
You can take a look at the MSDN example here.
http://msdn.microsoft.com/en-us/library/aa370623(VS.85).aspx
It would appear that type 101 does the exact same thing as 100 but just returns a more detailed result set. However, upon examination, I'm noticing that the platformID is different depending on which type you pass in.
PLATFORM_ID_DOS = 300,
PLATFORM_ID_OS2 = 400,
PLATFORM_ID_NT = 500,
PLATFORM_ID_OSF = 600,
PLATFORM_ID_VMS = 700
For example, when I run it on my local network with 100 as the type, I return 400 (OS2) but when I pass in 101, 500 (NT) is returned. Can anyone shed any light on this? I can post code examples if needed. Thanks.
Joel