0d39579b024b5bdc9ec28616c9da099866766cdcvboxsync * VBoxReplaceDll - helper for replacing a dll when it's in use by the system
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * Copyright (C) 2013 Oracle Corporation
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * available from http://www.virtualbox.org. This file is free software;
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * you can redistribute it and/or modify it under the terms of the GNU
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * General Public License (GPL) as published by the Free Software
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync/*******************************************************************************
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync* Header Files *
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync*******************************************************************************/
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync "Tells the kernel to cache the specified DLLs in memory and close the\n"
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync "files on disk, allowing new DLL versions to be installed.\n"
4d1226da58f42754f7b947e5ab65fb391de20946vboxsync "Copyright (C) 2013 Oracle Corporation\n",
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync fprintf(stderr, "syntax error: Invalid option '%s'!\n", argv[i]);
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync * Replace the specified DLL.
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync APIRET rc = DosReplaceModule((PCSZ)argv[i], NULL, NULL);
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync printf("info: Successfully cached '%s'.\n", argv[i]);
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync fprintf(stderr, "error: DosReplaceModule failed with rc=%u on '%s'.\n", rc, argv[i]);
6ebc06c9cd87d26f64680c2b58e6805b6b504728vboxsync fprintf(stderr, "syntax error: No DLLs specified. (Consult --help for usage.)\n");