SHARE
TWEET

Untitled

a guest May 26th, 2012 13 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top