pub unsafe extern "C-unwind" fn LSRegisterURL(
in_url: &CFURL,
in_update: bool,
) -> i32Available on crate feature
LSInfo only.Expand description
If the specified URL refers to an application or other bundle claiming to handle documents or URLs, add the bundle’s document and URL claims to the Launch Services database.
Parameter inURL: The CFURLRef of the item (a directory or file) to be registered.
Parameter inUpdate: When false, LSRegisterURL does not register the item if it has
already been registered and the current modification date of
the item has not changed from when it was last registered. When
true, the item’s registered info is updated, even if the
modification has not changed.
Returns: An OSStatus value: noErr - Success kLSNoRegistrationInfoErr - The item does not contain info requiring registration kLSDataErr - The item’s property list info is malformed.