I need a sample function which will simulate user drag and drop for other program.
The other program is accepting files which are drag and droped by user.
I want to make this operation to be automatically without user action, in background.
I'm looking for C++ WIN API code, or Delphi code.
For most apps simple WM_DROPFILES message will suffice. But with some targets you need to hook RegisterDragDrop API and call IDropTarget interface methods. Ready to cover both cases.