/** $Id$ */
/** @file
* VBoxReplaceDll - helper for replacing a dll when it's in use by the system
*/
/*
* Copyright (C) 2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define INCL_BASE
#include <os2.h>
#include <stdio.h>
#include <string.h>
{
if (psz1)
if (psz1)
if (psz1)
printf("Usage: %s <dll1> [dll2 ...[dllN]]\n"
"\n"
"Tells the kernel to cache the specified DLLs in memory and close the\n"
"files on disk, allowing new DLL versions to be installed.\n"
"\n"
"Copyright (C) 2013 Oracle Corporation\n",
argv0);
return 0;
}
{
int cProcessed = 0;
int i;
for (i = 1; i < argc; i++)
{
if ( fOptions
&& argv[i][0] == '-')
{
fOptions = 0;
{
printf("$Revision$\n");
return 0;
}
else
{
return 2;
}
}
else
{
/*
* Replace the specified DLL.
*/
else
{
return 1;
}
cProcessed++;
}
}
if (cProcessed == 0)
{
return 1;
}
return 0;
}