Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / WINNT / afsreg / test / dupkey.c
1 /* Copyright (C) 1999 Transarc Corporation - All rights reserved.
2  *
3  */
4
5 /* Test of RegDupKeyAlt() */
6
7 #include <afs/param.h>
8 #include <afs/stds.h>
9
10 #include <windows.h>
11 #include <stddef.h>
12 #include <stdlib.h>
13 #include <stdio.h>
14
15 #include <WINNT/afsreg.h>
16
17 int main(int argc, char *argv[])
18 {
19     long status;
20
21     if (argc != 3) {
22         printf("Usage: %s key1 key2\n", argv[0]);
23         return 1;
24     }
25
26     status = RegDupKeyAlt(argv[1], argv[2]);
27
28     if (status == ERROR_SUCCESS) {
29         printf("Registry key duplication succeeded\n");
30     } else {
31         printf("Registry key duplication failed (%d)\n", status);
32     }
33 }