home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / numcomma.zip / loader.c < prev    next >
C/C++ Source or Header  |  1997-11-06  |  790b  |  35 lines

  1. #define INCL_DOS
  2. #include <os2.h>
  3. #include <stdio.h>
  4.  
  5. BOOL EXPENTRY HookInit(void);
  6. BOOL EXPENTRY HookKill(void);
  7. BOOL EXPENTRY WaitLoaded(void);
  8.  
  9. int main(int argc, char *argv[])
  10. {
  11.    if(argc > 1)
  12.       switch(argv[1][0])
  13.       {
  14.       case 'l':
  15.          if (HookInit())
  16.             printf("Hook successfully loaded.");
  17.          else
  18.             printf("Hook NOT successfully loaded.");
  19.          WaitLoaded();
  20.          break;
  21.       case 'u':
  22.          if (HookKill())
  23.             printf("Hook successfully unloaded.");
  24.          else
  25.             printf("Hook NOT successfully unloaded.");
  26.          break;
  27.       default:
  28.          printf("l for loading and u for unloading");
  29.       }
  30.    else
  31.       printf("l for loading and u for unloading");
  32.  
  33.    return 0;
  34. }
  35.