Advertisement
Guest User

Untitled

a guest
May 26th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. int UninstallPOP3(PLUGINUNINSTALLPARAMS* ppup) //Usually UninstallEx, but need different name, because it is registered yet in main.cpp
  2. {
  3. if(ppup->bDoDeleteSettings)
  4. {
  5. char FileNameA[MAX_PATH+1];
  6.  
  7. PUIRemoveDbModule("YAMN-POP3");
  8.  
  9. if(FileName==NULL)
  10. MessageBox(NULL,"Cannot delete book file when YAMN is not loaded. Please do it manually.","YAMN-POP3 uninstalling",MB_OK|MB_ICONWARNING);
  11. else
  12. {
  13. if(!WideCharToMultiByte(CP_ACP,0,FileName,-1,FileNameA,MAX_PATH+1,NULL,NULL))
  14. MessageBox(NULL,"Cannot delete book file. Please do it manually.","YAMN-POP3 uninstalling",MB_OK|MB_ICONWARNING);
  15. else
  16. DeleteFile(FileNameA);
  17. }
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement