home *** CD-ROM | disk | FTP | other *** search
/ PC & Mediji 2001 December / PCM_0112.iso / media / demo / DirectDVD.exe / MIXER.SZS < prev    next >
Encoding:
Text File  |  2001-08-21  |  786 b   |  32 lines

  1. #include <windows.h>
  2. #include <winioctl.h> // Note!!! This files is required.
  3. #include <aimsvc.h>
  4. #include <stdio.h>
  5. // if the aimsvc.h is in the same directory as this file, use "aimsvc.h"
  6. // instead.
  7.  
  8. int main(int argc, char **argv)
  9. {
  10.     if(!AIInit())
  11.     {
  12.         printf("Cannot initialize Alfa Intercepter");
  13.         return 5;
  14.     }
  15.     if(!AIClear(argv[1]))
  16.     {
  17.         printf("Cannot send data to Alfa Intercepter");
  18.         return 5;
  19.     }
  20.     if(!AIDeactivate(argv[1]))
  21.     {
  22.         printf("Cannot deactivate Alfa Intercepter");
  23.         return 5;
  24.     }
  25.     if(!AIDeInit())
  26.     {
  27.         printf("Cannot release Alfa Intercepter");
  28.         return 5;
  29.     }
  30.     printf("No files are protected from deletion and renaming, now.\n");
  31.     return 0;
  32. }