No navigation frame on the left?  Click here.

NetServerTransportEnum

Another small one -- this sample enumerates the logical transports on which a server offers its SMB stuff. The docs are, again, incomplete -- LMSERVER.H declares structs for three info levels (0, 1, and 2); here (NT 5.0b2), 0 and 1 work, 2 does not. Also, note that the svti1_transportaddress member of SERVER_TRANSPORT_INFO_1 is the machine name (to be exact, the Netbios name through which the server advertises).

nste.cpp, 2 KB