Platform SDK: Network Management

file_info_50

Windows 95/98: The file_info_50 structure contains information about a shared resource.

Windows NT/2000: This structure is not supported on Windows NT/Windows 2000. You can use the FILE_INFO_3 structure instead.

struct _file_info_50 {
  unsigned long   fi50_id;
  unsigned short  fi50_permissions;
  unsigned short  fi50_num_locks;
  char FAR *      fi50_pathname;
  char FAR *      fi50_username;
  char FAR *      fi50_sharename;
};
 

Members

fi50_id
Specifies the identification number assigned to the resource when it is opened.
fi50_permissions
Specifies the access permissions associated with the opening application. This member can be a combination of the following values.
Value Meaning
PERM_FILE_READ Permission to read a resource and, by default, execute the resource.
PERM_FILE_WRITE Permission to write to a resource.
PERM_FILE_CREATE Permission to create a resource; data can be written when creating the resource.

fi50_num_locks
Specifies the number of locks on the resource.
fi50_pathname
Pointer to a string that contains the path of the opened resource.
fi50_username
Pointer to a string that specifies which user opened the resource.
fi50_sharename
Pointer to a string that specifies the share name associated with the open resource.

Requirements

  Windows NT/2000: Unsupported.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Svrapi.h.

See Also

Network Management Overview, Network Management Structures, NetFile Functions, NetFileEnum