"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/wbemprox/tests/query.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

query.c  (wine-5.12.tar.xz):query.c  (wine-5.13.tar.xz)
skipping to change at line 1162 skipping to change at line 1162
{ {
win_skip( "Win32_PhysicalMemory not available\n" ); win_skip( "Win32_PhysicalMemory not available\n" );
return; return;
} }
hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count ); hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count );
ok( hr == S_OK, "got %08x\n", hr ); ok( hr == S_OK, "got %08x\n", hr );
if (count > 0) if (count > 0)
{ {
check_property( obj, L"BankLabel", VT_BSTR, CIM_STRING );
check_property( obj, L"Capacity", VT_BSTR, CIM_UINT64 ); check_property( obj, L"Capacity", VT_BSTR, CIM_UINT64 );
check_property( obj, L"Caption", VT_BSTR, CIM_STRING );
check_property( obj, L"DeviceLocator", VT_BSTR, CIM_STRING ); check_property( obj, L"DeviceLocator", VT_BSTR, CIM_STRING );
check_property( obj, L"FormFactor", VT_I4, CIM_UINT16 ); check_property( obj, L"FormFactor", VT_I4, CIM_UINT16 );
check_property( obj, L"MemoryType", VT_I4, CIM_UINT16 ); check_property( obj, L"MemoryType", VT_I4, CIM_UINT16 );
check_property( obj, L"PartNumber", VT_NULL, CIM_STRING );
check_property( obj, L"SerialNumber", VT_NULL, CIM_STRING );
IWbemClassObject_Release( obj ); IWbemClassObject_Release( obj );
} }
IEnumWbemClassObject_Release( result ); IEnumWbemClassObject_Release( result );
SysFreeString( query ); SysFreeString( query );
SysFreeString( wql ); SysFreeString( wql );
} }
static void test_Win32_IP4RouteTable( IWbemServices *services ) static void test_Win32_IP4RouteTable( IWbemServices *services )
{ {
BSTR wql = SysAllocString( L"wql" ), query = SysAllocString( L"SELECT * FROM Win32_IP4RouteTable" ); BSTR wql = SysAllocString( L"wql" ), query = SysAllocString( L"SELECT * FROM Win32_IP4RouteTable" );
skipping to change at line 1550 skipping to change at line 1554
check_property( obj, L"HotFixID", VT_BSTR, CIM_STRING ); check_property( obj, L"HotFixID", VT_BSTR, CIM_STRING );
IWbemClassObject_Release( obj ); IWbemClassObject_Release( obj );
if (total++ >= 10) break; if (total++ >= 10) break;
} }
IEnumWbemClassObject_Release( result ); IEnumWbemClassObject_Release( result );
SysFreeString( query ); SysFreeString( query );
SysFreeString( wql ); SysFreeString( wql );
} }
static void test_Win32_SoundDevice( IWbemServices *services )
{
BSTR wql = SysAllocString( L"wql" );
BSTR query = SysAllocString( L"SELECT * FROM Win32_SoundDevice" );
IEnumWbemClassObject *result;
IWbemClassObject *obj;
HRESULT hr;
DWORD count;
hr = IWbemServices_ExecQuery( services, wql, query, 0, NULL, &result );
ok( hr == S_OK, "got %08x\n", hr );
for (;;)
{
hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count );
if (hr != S_OK) break;
check_property( obj, L"Name", VT_BSTR, CIM_STRING );
check_property( obj, L"ProductName", VT_BSTR, CIM_STRING );
check_property( obj, L"StatusInfo", VT_I4, CIM_UINT16 );
check_property( obj, L"Manufacturer", VT_BSTR, CIM_STRING );
IWbemClassObject_Release( obj );
}
IEnumWbemClassObject_Release( result );
SysFreeString( query );
SysFreeString( wql );
}
START_TEST(query) START_TEST(query)
{ {
BSTR path = SysAllocString( L"ROOT\\CIMV2" ); BSTR path = SysAllocString( L"ROOT\\CIMV2" );
IWbemLocator *locator; IWbemLocator *locator;
IWbemServices *services; IWbemServices *services;
HRESULT hr; HRESULT hr;
CoInitialize( NULL ); CoInitialize( NULL );
CoInitializeSecurity( NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_DEFAULT, CoInitializeSecurity( NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_DEFAULT,
RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, NULL ); RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, NULL );
skipping to change at line 1601 skipping to change at line 1634
test_Win32_IP4RouteTable( services ); test_Win32_IP4RouteTable( services );
test_Win32_OperatingSystem( services ); test_Win32_OperatingSystem( services );
test_Win32_PhysicalMemory( services ); test_Win32_PhysicalMemory( services );
test_Win32_PnPEntity( services ); test_Win32_PnPEntity( services );
test_Win32_Printer( services ); test_Win32_Printer( services );
test_Win32_Process( services, FALSE ); test_Win32_Process( services, FALSE );
test_Win32_Process( services, TRUE ); test_Win32_Process( services, TRUE );
test_Win32_Processor( services ); test_Win32_Processor( services );
test_Win32_QuickFixEngineering( services ); test_Win32_QuickFixEngineering( services );
test_Win32_Service( services ); test_Win32_Service( services );
test_Win32_SoundDevice( services );
test_Win32_SystemEnclosure( services ); test_Win32_SystemEnclosure( services );
test_Win32_VideoController( services ); test_Win32_VideoController( services );
test_Win32_WinSAT( services ); test_Win32_WinSAT( services );
SysFreeString( path ); SysFreeString( path );
IWbemServices_Release( services ); IWbemServices_Release( services );
IWbemLocator_Release( locator ); IWbemLocator_Release( locator );
CoUninitialize(); CoUninitialize();
} }
 End of changes. 5 change blocks. 
0 lines changed or deleted 34 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)