const
{ DADiskUnmountOptions }
kDADiskUnmountOptionDefault = $00000000;
kDADiskUnmountOptionForce = $00080000;
kDADiskUnmountOptionWhole = $00000001;
...
{
@typedef DADissenterRef
Type of a reference to DADissenter instances.
}
DADissenterRef = ^SInt32; { an opaque type }
...
{
typedef DADiskUnmountCallback
abstract Type of the callback function used by DADiskUnmount().
param disk The disk object.
param dissenter A dissenter object on failure or NULL on success.
param context The user-defined context parameter given to the unmount function.
}
// Was:
// typedef void ( *DADiskUnmountCallback )( DADiskRef disk, DADissenterRef __nullable dissenter, void * __nullable context );
DADiskUnmountCallback = procedure( disk: DADiskRef; dissenter: DADissenterRef; context: univptr); cdecl;
...
{
function DADiskUnmount
abstract Unmounts the volume at the specified disk object.
param disk The disk object.
param options The unmount options.
param callback The callback function to call once the unmount completes.
param context The user-defined context parameter to pass to the callback function.
}
procedure DADiskUnmount( disk: DADiskRef;
options: DADiskUnmountOptions;
callback: DADiskUnmountCallback;
context: UnivPtr); external name '_DADiskUnmount';