static void test_createinstance(void) { HRESULT hr; ICLRMetaHost *host; if (no_legacy_runtimes) { /* If we don't have 1.x or 2.0 runtimes, we should at least have .NET 4. */ ok(pCreateInterface != NULL, "no legacy runtimes or .NET 4 interfaces available\n"); } if(!pCreateInterface) { win_skip("Function CreateInterface not found.\n"); return; } hr = pCreateInterface(&CLSID_CLRMetaHost, &IID_ICLRMetaHost, (void**)&host); if(SUCCEEDED(hr)) { ICLRMetaHost_Release(host); } else { win_skip(".NET 4 not installed.\n"); } }
static void test_createinstance(void) { HRESULT hr; ICLRMetaHost *host; if(!pCreateInterface) { win_skip("Function CreateInterface not found.\n"); return; } hr = pCreateInterface(&CLSID_CLRMetaHost, &IID_ICLRMetaHost, (void**)&host); if(SUCCEEDED(hr)) { ICLRMetaHost_Release(host); } else { win_skip(".NET 4 not installed.\n"); } }