Last change
on this file since 2 was 2, checked in by stevenhl, 8 years ago |
Import sources from cwmm-full.zip dated 2005-03-21
|
File size:
799 bytes
|
Line | |
---|
1 | #include <os2.h>
|
---|
2 | #include <stdio.h>
|
---|
3 | #include <stdlib.h>
|
---|
4 |
|
---|
5 | APIRET APIENTRY DosReplaceModule(PSZ old, PSZ new, PSZ backup);
|
---|
6 |
|
---|
7 | int main(int argc, char *argv[])
|
---|
8 | {
|
---|
9 | APIRET rc;
|
---|
10 |
|
---|
11 | if(argc<2)
|
---|
12 | {
|
---|
13 | printf("%s - Ersetzt gesperrte DLLs \n\n", argv[0]);
|
---|
14 | printf("Benutzung: %s altDLL neuDLL backup\n",argv[0]);
|
---|
15 | printf(" altDLL - alte DLL, die ersetzt werden soll\n");
|
---|
16 | printf(" neuDLL - neue DLL\n");
|
---|
17 | printf(" backup - Name der Backupdatei\n\n");
|
---|
18 | exit(1);
|
---|
19 | }
|
---|
20 | if(argc>2)
|
---|
21 | rc=DosCopy(argv[1],argv[2],DCPY_EXISTING|DCPY_FAILEAS);
|
---|
22 |
|
---|
23 | if(rc==32 || argc==2)
|
---|
24 | {
|
---|
25 | rc=DosReplaceModule(argv[1], argv[2], argv[3]);
|
---|
26 | if(rc)
|
---|
27 | printf("DosReplaceModule: %u\n", rc);
|
---|
28 | }
|
---|
29 | else if (rc) printf("DosCopy: %u\n",rc);
|
---|
30 | return 0;
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.