ComputerName (PSZ) - input

      The name of the server to be queried.

    ResourceName (PSZ) - input

      The name of the resource to be queried.

    flType (ULONG) - input

      A bit array indicating the type of resource.

      Resource type bit mask definitions:

      NET_TYPE_DISK(0x00000010)

        The disk drive.
      NET_TYPE_QUEUE(0x00000020)
        The printer queue.
      NET_TYPE_SERIAL(0x00000040)
        The serial device.

      ulLevel (ULONG) - input

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

      pBuf (PVOID) - in/out

        The buffer that contains the RESOURCEINFO1 or RESOURCEINFO2 data structure (depending on the level).

      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 then 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_NET_PATH(53)
          The network path was not found.
        ERROR_INVALID_PARAMETER(87)
          The specified parameter is invalid.
        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: NetworkQueryResource Return Value - ulreturns]
        [Next: NetworkQueryResource - Topics]