Doing cleanup on OneNote close event

D

dyowee

Good day!

I'm trying to write an add-in for an OneNote. My application allocates some
resources that needs to be released when OneNote is closed. Is there a way
that I can catch/intercept the close event of ON, prevent it from closing
while cleanup is happening, and probably pop-up a progress bar dialog box?
Is this possible in C#, or through interop with Win32 API?


Thank you very much.
 
Top