FSetAccessRights (LabVIEW Manager Function)
- Mise à jour2025-07-30
- Temps de lecture : 1 minute(s)
MgErr FSetAccessRights(path, owner, group, permPtr);
Purpose
Sets access rights information for the specified file or directory. If an error occurs, no information changes.
Parameters
| Name | Type | Description |
|---|---|---|
| path | Path | Path of the file or directory for which you want to set access rights information. |
| owner | PStr | New owner that FSetAccessRights sets for the file or directory if owner is not NULL. |
| group | PStr | New group that FSetAccessRights sets for the file or directory if group is not NULL. |
| permPtr | int32 * | Address of new permissions that FSetAccessRights sets for the file or directory if permPtr is not NULL. |
Return Value
MgErr, which can contain the following errors. If you receive errors from LabVIEW Manager functions, most error names correspond to LabVIEW error codes.
| Value | Corresponding Error Code or Description |
|---|---|
| noErr | No error. |
| mgArgErr | 1 |
| fIOErr | 6 |
| fNotFound | 7 |