ConnectName (PSZ) - input

      The name of the local device that is connected to a remote resource, or the UNC name of a shared resource with a deviceless connection. The connect name string must include the colon delimiter at the end of the string, except in the case of a deviceless connection, in which case a UNC path is passed.

    ulLevel (ULONG) - input

      The level of detail required. This must be 1.

    pBuf (PVOID)

      The buffer that contains the CONNECTINFO1 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_NOT_ENOUGH_MEMORY(8)
        Not enough storage available to process this function.
      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.
      NERR_UseNotFound(2250)
        The connection can not be found.


      [Back: NetworkQueryConnection Return Value - ulreturns]
      [Next: NetworkQueryConnection - Topics]