diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-02-04 20:06:58 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-02-04 20:11:32 -0600 |
| commit | c239e0cc3a28a50c42c63b086ee62e17cf699104 (patch) | |
| tree | 5ba3e85a9bb1aef22a9162629b248a8e27e2c43f /src/ca/cputilsched.cpp | |
| parent | cbc09b6cd6d0d0b8bf095a88d4d8333616637f71 (diff) | |
| download | wix-c239e0cc3a28a50c42c63b086ee62e17cf699104.tar.gz wix-c239e0cc3a28a50c42c63b086ee62e17cf699104.tar.bz2 wix-c239e0cc3a28a50c42c63b086ee62e17cf699104.zip | |
Integrate into latest v4.
Diffstat (limited to 'src/ca/cputilsched.cpp')
| -rw-r--r-- | src/ca/cputilsched.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/ca/cputilsched.cpp b/src/ca/cputilsched.cpp index 9dbe21ec..1a958c56 100644 --- a/src/ca/cputilsched.cpp +++ b/src/ca/cputilsched.cpp | |||
| @@ -43,7 +43,7 @@ static int giTables; | |||
| 43 | 43 | ||
| 44 | // function definitions | 44 | // function definitions |
| 45 | 45 | ||
| 46 | void CpiInitialize() | 46 | void CpiSchedInitialize() |
| 47 | { | 47 | { |
| 48 | // collections | 48 | // collections |
| 49 | gpiCatalog = NULL; | 49 | gpiCatalog = NULL; |
| @@ -80,7 +80,7 @@ void CpiInitialize() | |||
| 80 | if (S_OK == WcaTableExists(L"ComPlusSubscriptionProperty")) giTables |= cptComPlusSubscriptionProperty; | 80 | if (S_OK == WcaTableExists(L"ComPlusSubscriptionProperty")) giTables |= cptComPlusSubscriptionProperty; |
| 81 | } | 81 | } |
| 82 | 82 | ||
| 83 | void CpiFinalize() | 83 | void CpiSchedFinalize() |
| 84 | { | 84 | { |
| 85 | // collections | 85 | // collections |
| 86 | ReleaseObject(gpiCatalog); | 86 | ReleaseObject(gpiCatalog); |
| @@ -95,7 +95,7 @@ BOOL CpiTableExists( | |||
| 95 | return (giTables & iTable) == iTable; | 95 | return (giTables & iTable) == iTable; |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | HRESULT CpiGetAdminCatalog( | 98 | HRESULT CpiSchedGetAdminCatalog( |
| 99 | ICOMAdminCatalog** ppiCatalog | 99 | ICOMAdminCatalog** ppiCatalog |
| 100 | ) | 100 | ) |
| 101 | { | 101 | { |
| @@ -118,7 +118,7 @@ LExit: | |||
| 118 | return hr; | 118 | return hr; |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | HRESULT CpiGetCatalogCollection( | 121 | HRESULT CpiSchedGetCatalogCollection( |
| 122 | LPCWSTR pwzName, | 122 | LPCWSTR pwzName, |
| 123 | ICatalogCollection** ppiColl | 123 | ICatalogCollection** ppiColl |
| 124 | ) | 124 | ) |
| @@ -134,7 +134,7 @@ HRESULT CpiGetCatalogCollection( | |||
| 134 | ExitOnNull(bstrName, hr, E_OUTOFMEMORY, "Failed to allocate BSTR for collection name"); | 134 | ExitOnNull(bstrName, hr, E_OUTOFMEMORY, "Failed to allocate BSTR for collection name"); |
| 135 | 135 | ||
| 136 | // get catalog | 136 | // get catalog |
| 137 | hr = CpiGetAdminCatalog(&piCatalog); | 137 | hr = CpiSchedGetAdminCatalog(&piCatalog); |
| 138 | ExitOnFailure(hr, "Failed to get COM+ admin catalog"); | 138 | ExitOnFailure(hr, "Failed to get COM+ admin catalog"); |
| 139 | 139 | ||
| 140 | // get collecton from catalog | 140 | // get collecton from catalog |
| @@ -159,7 +159,7 @@ LExit: | |||
| 159 | return hr; | 159 | return hr; |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | HRESULT CpiGetCatalogCollection( | 162 | HRESULT CpiSchedGetCatalogCollection( |
| 163 | ICatalogCollection* piColl, | 163 | ICatalogCollection* piColl, |
| 164 | ICatalogObject* piObj, | 164 | ICatalogObject* piObj, |
| 165 | LPCWSTR pwzName, | 165 | LPCWSTR pwzName, |
| @@ -180,7 +180,7 @@ HRESULT CpiGetCatalogCollection( | |||
| 180 | ExitOnNull(bstrName, hr, E_OUTOFMEMORY, "Failed to allocate BSTR for collection name"); | 180 | ExitOnNull(bstrName, hr, E_OUTOFMEMORY, "Failed to allocate BSTR for collection name"); |
| 181 | 181 | ||
| 182 | // get catalog | 182 | // get catalog |
| 183 | hr = CpiGetAdminCatalog(&piCatalog); | 183 | hr = CpiSchedGetAdminCatalog(&piCatalog); |
| 184 | ExitOnFailure(hr, "Failed to get COM+ admin catalog"); | 184 | ExitOnFailure(hr, "Failed to get COM+ admin catalog"); |
| 185 | 185 | ||
| 186 | // get key | 186 | // get key |
| @@ -331,7 +331,7 @@ LExit: | |||
| 331 | return hr; | 331 | return hr; |
| 332 | } | 332 | } |
| 333 | 333 | ||
| 334 | HRESULT CpiGetPartitionsCollection( | 334 | HRESULT CpiSchedGetPartitionsCollection( |
| 335 | ICatalogCollection** ppiPartColl | 335 | ICatalogCollection** ppiPartColl |
| 336 | ) | 336 | ) |
| 337 | { | 337 | { |
| @@ -340,7 +340,7 @@ HRESULT CpiGetPartitionsCollection( | |||
| 340 | if (!gpiPartColl) | 340 | if (!gpiPartColl) |
| 341 | { | 341 | { |
| 342 | // get collection | 342 | // get collection |
| 343 | hr = CpiGetCatalogCollection(L"Partitions", &gpiPartColl); | 343 | hr = CpiSchedGetCatalogCollection(L"Partitions", &gpiPartColl); |
| 344 | ExitOnFailure(hr, "Failed to get partitions collection"); | 344 | ExitOnFailure(hr, "Failed to get partitions collection"); |
| 345 | } | 345 | } |
| 346 | 346 | ||
| @@ -354,7 +354,7 @@ LExit: | |||
| 354 | return hr; | 354 | return hr; |
| 355 | } | 355 | } |
| 356 | 356 | ||
| 357 | HRESULT CpiGetApplicationsCollection( | 357 | HRESULT CpiSchedGetApplicationsCollection( |
| 358 | ICatalogCollection** ppiAppColl | 358 | ICatalogCollection** ppiAppColl |
| 359 | ) | 359 | ) |
| 360 | { | 360 | { |
| @@ -369,7 +369,7 @@ HRESULT CpiGetApplicationsCollection( | |||
| 369 | if (!gpiAppColl) | 369 | if (!gpiAppColl) |
| 370 | { | 370 | { |
| 371 | // get catalog | 371 | // get catalog |
| 372 | hr = CpiGetAdminCatalog(&piCatalog); | 372 | hr = CpiSchedGetAdminCatalog(&piCatalog); |
| 373 | ExitOnFailure(hr, "Failed to get COM+ admin catalog"); | 373 | ExitOnFailure(hr, "Failed to get COM+ admin catalog"); |
| 374 | 374 | ||
| 375 | // get ICOMAdminCatalog2 interface | 375 | // get ICOMAdminCatalog2 interface |
| @@ -385,7 +385,7 @@ HRESULT CpiGetApplicationsCollection( | |||
| 385 | ExitOnFailure(hr, "Failed to get global partition id"); | 385 | ExitOnFailure(hr, "Failed to get global partition id"); |
| 386 | 386 | ||
| 387 | // get partitions collection | 387 | // get partitions collection |
| 388 | hr = CpiGetPartitionsCollection(&piPartColl); | 388 | hr = CpiSchedGetPartitionsCollection(&piPartColl); |
| 389 | ExitOnFailure(hr, "Failed to get partitions collection"); | 389 | ExitOnFailure(hr, "Failed to get partitions collection"); |
| 390 | 390 | ||
| 391 | // find object | 391 | // find object |
| @@ -396,7 +396,7 @@ HRESULT CpiGetApplicationsCollection( | |||
| 396 | ExitFunction(); // partition not found, exit with hr = S_FALSE | 396 | ExitFunction(); // partition not found, exit with hr = S_FALSE |
| 397 | 397 | ||
| 398 | // get applications collection | 398 | // get applications collection |
| 399 | hr = CpiGetCatalogCollection(piPartColl, piPartObj, L"Applications", &gpiAppColl); | 399 | hr = CpiSchedGetCatalogCollection(piPartColl, piPartObj, L"Applications", &gpiAppColl); |
| 400 | ExitOnFailure(hr, "Failed to get applications collection"); | 400 | ExitOnFailure(hr, "Failed to get applications collection"); |
| 401 | } | 401 | } |
| 402 | 402 | ||
| @@ -404,7 +404,7 @@ HRESULT CpiGetApplicationsCollection( | |||
| 404 | else | 404 | else |
| 405 | { | 405 | { |
| 406 | // get applications collection | 406 | // get applications collection |
| 407 | hr = CpiGetCatalogCollection(L"Applications", &gpiAppColl); | 407 | hr = CpiSchedGetCatalogCollection(L"Applications", &gpiAppColl); |
| 408 | ExitOnFailure(hr, "Failed to get applications collection"); | 408 | ExitOnFailure(hr, "Failed to get applications collection"); |
| 409 | } | 409 | } |
| 410 | } | 410 | } |
