ComputerName (PSZ) - input

      The name of the server to be queried.

    flType (ULONG) - input

      The type of the servers to enumerate. Currently reserved and must be 0.

    ulLevel (ULONG) - input

      The level of detail required. This must be 1 or 2.

    pBuf (PVOID) - in/out

      The buffer that contains the SERVERINFO1 or SERVERINFO2 data structures.

    cbBuf (ULONG) - input

      The size, in bytes, of the buffer.

    pcbNeeded (PULONG) - output

      The size, in bytes, of available information.

    ulreturns (ULONG) - returns

      A network driver is not limited to just these errors. Network drivers will return the following errors when they occur, but other error numbers can be returned for errors not listed.

      EXIT_SUCCESS(0)

        No errors were encountered.
      ERROR_ACCESS_DENIED(5)
        Access denied.
      ERROR_NOT_ENOUGH_MEMORY(8)
        Not enough storage available to process this function.
      ERROR_BAD_NETPATH(53)
        The network path was not found.
      ERROR_BAD_NET_NAME(67)
        The network name cannot be found.
      ERROR_INVALID_LEVEL(124)
        The level parameter is invalid.
      ERROR_MORE_DATA(234)
        Additional data is available, but the buffer is too small.
      ERROR_NETWORK_NOT_FOUND(241)
        The specified network is invalid.


      [Back: NetworkQueryServer Return Value - ulreturns]
      [Next: NetworkQueryServer - Remarks]