Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Whatever thy hand findest to do, do it with all thy heart - Jesus

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...