2010-12-06 22:04:20 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2010 Louis Lenders
|
2012-06-19 08:19:59 +00:00
|
|
|
* Copyright 2012 Hans Leidekker for CodeWeavers
|
2010-12-06 22:04:20 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2012-06-19 08:19:59 +00:00
|
|
|
#define COBJMACROS
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "windows.h"
|
|
|
|
#include "ocidl.h"
|
|
|
|
#include "initguid.h"
|
|
|
|
#include "objidl.h"
|
|
|
|
#include "wbemcli.h"
|
|
|
|
#include "wmic.h"
|
|
|
|
|
2010-12-06 22:04:20 +00:00
|
|
|
#include "wine/debug.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(wmic);
|
|
|
|
|
2012-06-19 08:19:59 +00:00
|
|
|
static const struct
|
|
|
|
{
|
|
|
|
const WCHAR *alias;
|
|
|
|
const WCHAR *class;
|
|
|
|
}
|
|
|
|
alias_map[] =
|
|
|
|
{
|
2020-10-25 22:40:42 +00:00
|
|
|
{ L"bios", L"Win32_BIOS" },
|
|
|
|
{ L"computersystem", L"Win32_ComputerSystem" },
|
|
|
|
{ L"cpu", L"Win32_Processor" },
|
|
|
|
{ L"LogicalDisk", L"Win32_LogicalDisk" },
|
|
|
|
{ L"nic", L"Win32_NetworkAdapter" },
|
|
|
|
{ L"os", L"Win32_OperatingSystem" },
|
2021-03-08 08:25:42 +00:00
|
|
|
{ L"process", L"Win32_Process" },
|
|
|
|
{ L"baseboard", L"Win32_BaseBoard" },
|
|
|
|
{ L"diskdrive", L"Win32_DiskDrive" },
|
2022-11-23 00:58:03 +00:00
|
|
|
{ L"memorychip", L"Win32_PhysicalMemory" },
|
|
|
|
{ L"nicconfig", L"Win32_NetworkAdapterConfiguration" },
|
2012-06-19 08:19:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static const WCHAR *find_class( const WCHAR *alias )
|
2010-12-06 22:04:20 +00:00
|
|
|
{
|
2012-06-19 08:19:59 +00:00
|
|
|
unsigned int i;
|
|
|
|
|
2018-07-13 17:01:29 +00:00
|
|
|
for (i = 0; i < ARRAY_SIZE(alias_map); i++)
|
2012-06-19 08:19:59 +00:00
|
|
|
{
|
2019-05-02 07:31:22 +00:00
|
|
|
if (!wcsicmp( alias, alias_map[i].alias )) return alias_map[i].class;
|
2012-06-19 08:19:59 +00:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2019-05-02 07:31:22 +00:00
|
|
|
static int WINAPIV output_string( HANDLE handle, const WCHAR *msg, ... )
|
2012-06-19 08:19:59 +00:00
|
|
|
{
|
2022-07-04 15:41:08 +00:00
|
|
|
BOOL output = GetStdHandle(STD_OUTPUT_HANDLE) == handle;
|
|
|
|
static const WCHAR bomW[] = {0xfeff};
|
|
|
|
static BOOL bom;
|
2021-10-25 09:03:00 +00:00
|
|
|
va_list va_args;
|
2018-10-08 13:53:10 +00:00
|
|
|
int len;
|
2022-07-04 15:41:08 +00:00
|
|
|
DWORD count, bom_count = 0;
|
2012-06-19 08:19:59 +00:00
|
|
|
WCHAR buffer[8192];
|
|
|
|
|
2021-10-25 09:03:00 +00:00
|
|
|
va_start( va_args, msg );
|
2019-05-02 07:31:22 +00:00
|
|
|
len = vswprintf( buffer, ARRAY_SIZE(buffer), msg, va_args );
|
2021-10-25 09:03:00 +00:00
|
|
|
va_end( va_args );
|
2012-06-19 08:19:59 +00:00
|
|
|
|
2018-10-08 13:53:10 +00:00
|
|
|
if (!WriteConsoleW( handle, buffer, len, &count, NULL ))
|
2022-07-04 15:41:08 +00:00
|
|
|
{
|
|
|
|
if (output && !bom)
|
|
|
|
{
|
|
|
|
WriteFile( handle, bomW, sizeof(bomW), &bom_count, FALSE );
|
|
|
|
bom = TRUE;
|
|
|
|
}
|
2018-10-08 13:53:10 +00:00
|
|
|
WriteFile( handle, buffer, len * sizeof(WCHAR), &count, FALSE );
|
2022-07-04 15:41:08 +00:00
|
|
|
}
|
2018-10-08 13:53:10 +00:00
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
return count + bom_count;
|
2012-06-19 08:19:59 +00:00
|
|
|
}
|
|
|
|
|
2018-10-08 13:53:08 +00:00
|
|
|
static int output_error( int msg )
|
2012-06-19 08:19:59 +00:00
|
|
|
{
|
|
|
|
WCHAR buffer[8192];
|
|
|
|
|
2018-07-13 17:01:29 +00:00
|
|
|
LoadStringW( GetModuleHandleW(NULL), msg, buffer, ARRAY_SIZE(buffer));
|
2020-10-25 22:40:42 +00:00
|
|
|
return output_string( GetStdHandle(STD_ERROR_HANDLE), L"%s", buffer );
|
2012-06-19 08:19:59 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
static int output_text( const WCHAR *str, ULONG column_width )
|
2018-10-08 13:53:10 +00:00
|
|
|
{
|
2022-07-04 15:41:08 +00:00
|
|
|
return output_string( GetStdHandle(STD_OUTPUT_HANDLE), L"%-*s", column_width, str );
|
|
|
|
}
|
|
|
|
|
|
|
|
static int output_newline( void )
|
|
|
|
{
|
|
|
|
return output_string( GetStdHandle(STD_OUTPUT_HANDLE), L"\r\n" );
|
|
|
|
}
|
|
|
|
|
|
|
|
static WCHAR * strip_spaces(WCHAR *start)
|
|
|
|
{
|
|
|
|
WCHAR *str = start, *end;
|
2018-10-08 13:53:10 +00:00
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
while (*str == ' ')
|
|
|
|
str++;
|
2018-10-08 13:53:10 +00:00
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
end = start + lstrlenW(start) - 1;
|
|
|
|
while (end >= start && *end == ' ')
|
2018-10-08 13:53:10 +00:00
|
|
|
{
|
2022-07-04 15:41:08 +00:00
|
|
|
*end = '\0';
|
|
|
|
end--;
|
2018-10-08 13:53:10 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
return str;
|
2018-10-08 13:53:10 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
static HRESULT process_property_list( IWbemClassObject *obj, const WCHAR *proplist, WCHAR **ret )
|
2018-10-08 13:53:10 +00:00
|
|
|
{
|
2022-07-04 15:41:08 +00:00
|
|
|
WCHAR *p, *ctx, *ptr, *stripped;
|
|
|
|
HRESULT hr = S_OK;
|
|
|
|
|
|
|
|
if (!(p = wcsdup( proplist ))) return E_OUTOFMEMORY;
|
|
|
|
|
|
|
|
if (!(stripped = malloc( (wcslen( proplist ) + 1) * sizeof(**ret) )))
|
|
|
|
{
|
|
|
|
free( p );
|
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
}
|
|
|
|
*stripped = 0;
|
|
|
|
|
|
|
|
/* Validate that every requested property is supported. */
|
|
|
|
ptr = wcstok_s( p, L",", &ctx );
|
|
|
|
while (ptr)
|
|
|
|
{
|
|
|
|
ptr = strip_spaces( ptr );
|
|
|
|
|
|
|
|
if (FAILED(IWbemClassObject_Get( obj, ptr, 0, NULL, NULL, NULL )))
|
|
|
|
{
|
|
|
|
hr = E_FAIL;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (*stripped) wcscat( stripped, L"," );
|
|
|
|
wcscat( stripped, ptr );
|
|
|
|
ptr = wcstok_s( NULL, L",", &ctx );
|
|
|
|
}
|
|
|
|
free( p );
|
|
|
|
|
|
|
|
if (SUCCEEDED(hr))
|
|
|
|
*ret = stripped;
|
|
|
|
else
|
|
|
|
{
|
|
|
|
free( stripped );
|
|
|
|
*ret = NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
return hr;
|
2018-10-08 13:53:10 +00:00
|
|
|
}
|
|
|
|
|
2022-11-23 18:15:35 +00:00
|
|
|
static void convert_to_bstr( VARIANT *v )
|
|
|
|
{
|
2022-11-23 18:52:48 +00:00
|
|
|
BSTR out = NULL;
|
2022-11-23 18:15:35 +00:00
|
|
|
VARTYPE vt;
|
|
|
|
|
|
|
|
if (SUCCEEDED(VariantChangeType( v, v, 0, VT_BSTR ))) return;
|
|
|
|
vt = V_VT(v);
|
2022-11-23 18:52:48 +00:00
|
|
|
if (vt == (VT_ARRAY | VT_BSTR))
|
|
|
|
{
|
|
|
|
unsigned int i, count, len;
|
|
|
|
BSTR *strings;
|
|
|
|
WCHAR *ptr;
|
|
|
|
|
|
|
|
if (FAILED(SafeArrayAccessData( V_ARRAY(v), (void **)&strings )))
|
|
|
|
{
|
|
|
|
WINE_ERR( "Could not access array.\n" );
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
count = V_ARRAY(v)->rgsabound->cElements;
|
|
|
|
len = 0;
|
|
|
|
for (i = 0; i < count; ++i)
|
|
|
|
len += wcslen( strings[i] );
|
|
|
|
len += count * 2 + 2;
|
|
|
|
if (count) len += 2 * (count - 1);
|
|
|
|
out = SysAllocStringLen( NULL, len );
|
|
|
|
ptr = out;
|
|
|
|
*ptr++ = '{';
|
|
|
|
for (i = 0; i < count; ++i)
|
|
|
|
{
|
|
|
|
if (i)
|
|
|
|
{
|
|
|
|
memcpy( ptr, L", ", 2 * sizeof(*ptr) );
|
|
|
|
ptr += 2;
|
|
|
|
}
|
|
|
|
*ptr++ = '\"';
|
|
|
|
len = wcslen( strings[i] );
|
|
|
|
memcpy( ptr, strings[i], len * sizeof(*ptr) );
|
|
|
|
ptr += len;
|
|
|
|
*ptr++ = '\"';
|
|
|
|
}
|
|
|
|
*ptr++ = '}';
|
|
|
|
*ptr = 0;
|
|
|
|
SafeArrayUnaccessData( V_ARRAY(v) );
|
|
|
|
}
|
|
|
|
done:
|
2022-11-23 18:15:35 +00:00
|
|
|
VariantClear( v );
|
|
|
|
V_VT(v) = VT_BSTR;
|
2022-11-23 18:52:48 +00:00
|
|
|
V_BSTR(v) = out ? out : SysAllocString( L"" );
|
|
|
|
if (vt != VT_NULL && vt != VT_EMPTY && !out)
|
2022-11-23 18:15:35 +00:00
|
|
|
WINE_FIXME( "Could not convert variant, vt %u.\n", vt );
|
|
|
|
}
|
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
static int query_prop( const WCHAR *class, const WCHAR *propnames )
|
2012-06-19 08:19:59 +00:00
|
|
|
{
|
|
|
|
HRESULT hr;
|
|
|
|
IWbemLocator *locator = NULL;
|
|
|
|
IWbemServices *services = NULL;
|
|
|
|
IEnumWbemClassObject *result = NULL;
|
2022-11-23 17:58:20 +00:00
|
|
|
LONG flags = WBEM_FLAG_RETURN_IMMEDIATELY;
|
2022-07-04 15:41:08 +00:00
|
|
|
BSTR path = NULL, wql = NULL, query = NULL, name, str = NULL;
|
|
|
|
WCHAR *proplist = NULL;
|
2012-06-19 08:19:59 +00:00
|
|
|
int len, ret = -1;
|
2018-10-08 13:53:12 +00:00
|
|
|
IWbemClassObject *obj;
|
|
|
|
ULONG count, width = 0;
|
|
|
|
VARIANT v;
|
2012-06-19 08:19:59 +00:00
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
WINE_TRACE("%s, %s\n", debugstr_w(class), debugstr_w(propnames));
|
2012-06-19 08:19:59 +00:00
|
|
|
|
|
|
|
CoInitialize( NULL );
|
|
|
|
CoInitializeSecurity( NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_DEFAULT,
|
|
|
|
RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, NULL );
|
|
|
|
|
|
|
|
hr = CoCreateInstance( &CLSID_WbemLocator, NULL, CLSCTX_INPROC_SERVER, &IID_IWbemLocator,
|
|
|
|
(void **)&locator );
|
|
|
|
if (hr != S_OK) goto done;
|
|
|
|
|
2020-10-25 22:40:42 +00:00
|
|
|
if (!(path = SysAllocString(L"ROOT\\CIMV2" ))) goto done;
|
2012-06-19 08:19:59 +00:00
|
|
|
hr = IWbemLocator_ConnectServer( locator, path, NULL, NULL, NULL, 0, NULL, NULL, &services );
|
|
|
|
if (hr != S_OK) goto done;
|
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
if (!(str = SysAllocString( class ))) goto done;
|
|
|
|
hr = IWbemServices_GetObject( services, str, 0, NULL, &obj, NULL );
|
|
|
|
SysFreeString( str );
|
|
|
|
if (hr != S_OK)
|
|
|
|
{
|
|
|
|
WARN("Unrecognized class %s.\n", debugstr_w(class));
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Check that this class supports all requested properties. */
|
|
|
|
hr = process_property_list( obj, propnames, &proplist );
|
|
|
|
IWbemClassObject_Release( obj );
|
|
|
|
if (FAILED(hr))
|
|
|
|
{
|
|
|
|
output_error( STRING_INVALID_QUERY );
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
len = lstrlenW( class ) + lstrlenW( proplist ) + ARRAY_SIZE(L"SELECT * FROM ");
|
2012-06-19 08:19:59 +00:00
|
|
|
if (!(query = SysAllocStringLen( NULL, len ))) goto done;
|
2022-07-04 15:41:08 +00:00
|
|
|
swprintf( query, len, L"SELECT %s FROM %s", proplist, class );
|
2012-06-19 08:19:59 +00:00
|
|
|
|
2020-10-25 22:40:42 +00:00
|
|
|
if (!(wql = SysAllocString(L"WQL" ))) goto done;
|
2012-06-19 08:19:59 +00:00
|
|
|
hr = IWbemServices_ExecQuery( services, wql, query, flags, NULL, &result );
|
|
|
|
if (hr != S_OK) goto done;
|
|
|
|
|
2018-10-08 13:53:12 +00:00
|
|
|
for (;;) /* get column width */
|
2012-06-19 08:19:59 +00:00
|
|
|
{
|
2018-10-08 13:53:12 +00:00
|
|
|
IEnumWbemClassObject_Next( result, WBEM_INFINITE, 1, &obj, &count );
|
|
|
|
if (!count) break;
|
2012-06-19 08:19:59 +00:00
|
|
|
|
2022-11-23 18:01:07 +00:00
|
|
|
IWbemClassObject_BeginEnumeration( obj, 0 );
|
2022-07-04 15:41:08 +00:00
|
|
|
while (IWbemClassObject_Next( obj, 0, &name, &v, NULL, NULL ) == S_OK)
|
2018-10-08 13:53:12 +00:00
|
|
|
{
|
2022-11-23 18:15:35 +00:00
|
|
|
convert_to_bstr( &v );
|
2019-05-02 07:31:22 +00:00
|
|
|
width = max( lstrlenW( V_BSTR( &v ) ), width );
|
2018-10-08 13:53:12 +00:00
|
|
|
VariantClear( &v );
|
2022-07-04 15:41:08 +00:00
|
|
|
SysFreeString( name );
|
2018-10-08 13:53:12 +00:00
|
|
|
}
|
2022-07-04 15:41:08 +00:00
|
|
|
|
2018-10-08 13:53:12 +00:00
|
|
|
IWbemClassObject_Release( obj );
|
|
|
|
}
|
|
|
|
width += 2;
|
|
|
|
|
2022-07-04 15:41:08 +00:00
|
|
|
/* Header */
|
|
|
|
IEnumWbemClassObject_Reset( result );
|
|
|
|
IEnumWbemClassObject_Next( result, WBEM_INFINITE, 1, &obj, &count );
|
|
|
|
if (count)
|
|
|
|
{
|
2022-11-23 18:01:07 +00:00
|
|
|
IWbemClassObject_BeginEnumeration( obj, 0 );
|
2022-07-04 15:41:08 +00:00
|
|
|
while (IWbemClassObject_Next( obj, 0, &name, NULL, NULL, NULL ) == S_OK)
|
|
|
|
{
|
|
|
|
output_text( name, width );
|
|
|
|
SysFreeString( name );
|
|
|
|
}
|
|
|
|
output_newline();
|
|
|
|
IWbemClassObject_Release( obj );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Values */
|
2018-10-08 13:53:12 +00:00
|
|
|
IEnumWbemClassObject_Reset( result );
|
|
|
|
for (;;)
|
|
|
|
{
|
2012-06-19 08:19:59 +00:00
|
|
|
IEnumWbemClassObject_Next( result, WBEM_INFINITE, 1, &obj, &count );
|
|
|
|
if (!count) break;
|
2022-11-23 18:01:07 +00:00
|
|
|
IWbemClassObject_BeginEnumeration( obj, 0 );
|
2022-07-04 15:41:08 +00:00
|
|
|
while (IWbemClassObject_Next( obj, 0, NULL, &v, NULL, NULL ) == S_OK)
|
2012-06-19 08:19:59 +00:00
|
|
|
{
|
2022-11-23 18:15:35 +00:00
|
|
|
convert_to_bstr( &v );
|
2022-07-04 15:41:08 +00:00
|
|
|
output_text( V_BSTR( &v ), width );
|
2012-06-19 08:19:59 +00:00
|
|
|
VariantClear( &v );
|
|
|
|
}
|
2022-07-04 15:41:08 +00:00
|
|
|
output_newline();
|
2012-06-19 08:19:59 +00:00
|
|
|
IWbemClassObject_Release( obj );
|
|
|
|
}
|
|
|
|
ret = 0;
|
|
|
|
|
|
|
|
done:
|
|
|
|
if (result) IEnumWbemClassObject_Release( result );
|
|
|
|
if (services) IWbemServices_Release( services );
|
|
|
|
if (locator) IWbemLocator_Release( locator );
|
|
|
|
SysFreeString( path );
|
|
|
|
SysFreeString( query );
|
|
|
|
SysFreeString( wql );
|
2022-07-04 15:41:08 +00:00
|
|
|
free( proplist );
|
2012-06-19 08:19:59 +00:00
|
|
|
CoUninitialize();
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2019-10-17 15:05:47 +00:00
|
|
|
int __cdecl wmain(int argc, WCHAR *argv[])
|
2012-06-19 08:19:59 +00:00
|
|
|
{
|
2016-10-14 03:58:17 +00:00
|
|
|
const WCHAR *class, *value;
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 1; i < argc && argv[i][0] == '/'; i++)
|
|
|
|
WINE_FIXME( "command line switch %s not supported\n", debugstr_w(argv[i]) );
|
|
|
|
|
|
|
|
if (i >= argc)
|
|
|
|
goto not_supported;
|
|
|
|
|
2020-10-25 22:40:42 +00:00
|
|
|
if (!wcsicmp( argv[i], L"quit" ) || !wcsicmp( argv[i], L"exit" ))
|
2016-10-14 03:58:17 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2010-12-06 22:04:20 +00:00
|
|
|
|
2020-10-25 22:40:42 +00:00
|
|
|
if (!wcsicmp( argv[i], L"class") || !wcsicmp( argv[i], L"context" ))
|
2012-06-19 08:19:59 +00:00
|
|
|
{
|
2016-10-14 03:58:17 +00:00
|
|
|
WINE_FIXME( "command %s not supported\n", debugstr_w(argv[i]) );
|
|
|
|
goto not_supported;
|
|
|
|
}
|
|
|
|
|
2020-10-25 22:40:42 +00:00
|
|
|
if (!wcsicmp( argv[i], L"path" ))
|
2016-10-14 03:58:17 +00:00
|
|
|
{
|
|
|
|
if (++i >= argc)
|
|
|
|
{
|
2018-10-08 13:53:08 +00:00
|
|
|
output_error( STRING_INVALID_PATH );
|
2016-10-14 03:58:17 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
class = argv[i];
|
2012-06-19 08:19:59 +00:00
|
|
|
}
|
2016-10-14 03:58:17 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
class = find_class( argv[i] );
|
|
|
|
if (!class)
|
|
|
|
{
|
2018-10-08 13:53:08 +00:00
|
|
|
output_error( STRING_ALIAS_NOT_FOUND );
|
2016-10-14 03:58:17 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (++i >= argc)
|
|
|
|
goto not_supported;
|
|
|
|
|
2020-10-25 22:40:42 +00:00
|
|
|
if (!wcsicmp( argv[i], L"get" ))
|
2016-10-14 03:58:17 +00:00
|
|
|
{
|
|
|
|
if (++i >= argc)
|
|
|
|
goto not_supported;
|
|
|
|
value = argv[i];
|
|
|
|
return query_prop( class, value );
|
|
|
|
}
|
|
|
|
|
|
|
|
not_supported:
|
2018-10-08 13:53:08 +00:00
|
|
|
output_error( STRING_CMDLINE_NOT_SUPPORTED );
|
2016-10-14 03:58:17 +00:00
|
|
|
return 1;
|
2010-12-06 22:04:20 +00:00
|
|
|
}
|