Is there any way to get the file path before merging files like filePreOpenProcess?

Is there any way to get the file path before merging files like filePreOpenProcess?

wf-soft
Explorer Explorer
393 Views
1 Reply
Message 1 of 2

Is there any way to get the file path before merging files like filePreOpenProcess?

wf-soft
Explorer
Explorer

I tried to check the files before merging them, but I didn't find any way to do it properly, plus, when I was in. NET register notifications, even filePreOpenProcess I can't get path parameters from

 

 

GlobalDelegates.Delegate5 notifHandler = new GlobalDelegates.Delegate5(Callback);
GlobalInterface.Instance.RegisterNotification(notifHandler, null, SystemNotificationCode.FilePreOpenProcess);
private static void Callback(IntPtr obj, INotifyInfo info) {
    Debug.WriteLine(info.CallParam);
}

 

0 Likes
394 Views
1 Reply
Reply (1)
Message 2 of 2

denisT.MaxDoctor
Advisor
Advisor

There is no built-in general callback that tells you the path to the merge file. There is a #filePreMerge callback, but it doesn't tell you the path.

The best thing you can do is create your own UI solution for merging files that need to be validated first. In this case, you will know the merge file path and have some control over the pre-merge process.

 

By the way, I would also have to clarify that at the moment when you receive a system pre-merge notification, the merging is already a fait accompli - it is impossible not to interrupt this process, not to change its conditions and settings. The only other thing you can do is change something in the current scene.

 

0 Likes