home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / utils / wpprg / deinstl.c next >
Encoding:
C/C++ Source or Header  |  1993-12-27  |  441 b   |  23 lines

  1. #define INCL_WINWORKPLACE
  2.  
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <string.h>
  6. #include <os2.h>
  7.  
  8. main(int argc, char *argv[], char *envp[])
  9. {
  10.    BOOL rc;
  11.  
  12.    rc = WinReplaceObjectClass("WPProgram", "WPPrgExt", FALSE);
  13.    rc = WinDeregisterObjectClass("WPPrgExt");
  14.  
  15.    if (!rc) {
  16.       printf("Unable to deregister the class\n\n");
  17.       return 1;
  18.    }
  19.  
  20.    printf("Deinstallation is completed");
  21.    return 0;
  22. }
  23.