Unit 'Workbench' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

TCopyDataMsg

A message your copy hook is invoked with.

Declaration

Source position: workbench.pas line 256

type TCopyDataMsg = record

  cdm_Length: LongWord;

  

Size of this data structure in bytes.

  cdm_Action: LongInt;

  

Will be set to CPACTION_Copy

  cdm_SourceLock: LongInt;

  

A lock on the parent directory of the source file/drawer.

  cdm_SourceName: PChar;

  

The name of the source file or drawer.

  cdm_DestinationLock: LongInt;

  

A lock on the parent directory of the destination file/drawer.

  cdm_DestinationName: PChar;

  

The name of the destination file/drawer. This may or may not match the name of the source file/drawer in case the data is to be copied under a different name. For example, this is the case with the Workbench "Copy" command which creates duplicates of file/drawers by prefixing the duplicate's name with "Copy_XXX_of".

  cdm_DestinationX: LongInt;

  

When the icon corresponding to the

  cdm_DestinationY: LongInt;

  

destination is written to disk, this is the position (put into its PDiskObject^.do_CurrentX/PDiskObject^.do_CurrentY fields) it should be placed at.

end;


Documentation generated on: 2021-07-30