home *** CD-ROM | disk | FTP | other *** search
- #include <windows.h>
- #include <winioctl.h> // Note!!! This files is required.
- #include <aimsvc.h>
- #include <stdio.h>
- // if the aimsvc.h is in the same directory as this file, use "aimsvc.h"
- // instead.
-
- int main(int argc, char **argv)
- {
- if(!AIInit())
- {
- printf("Cannot initialize Alfa Intercepter");
- return 5;
- }
- if(!AIClear(argv[1]))
- {
- printf("Cannot send data to Alfa Intercepter");
- return 5;
- }
- if(!AIDeactivate(argv[1]))
- {
- printf("Cannot deactivate Alfa Intercepter");
- return 5;
- }
- if(!AIDeInit())
- {
- printf("Cannot release Alfa Intercepter");
- return 5;
- }
- printf("No files are protected from deletion and renaming, now.\n");
- return 0;
- }