forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComClsids.cpp
More file actions
64 lines (63 loc) · 2.6 KB
/
Copy pathComClsids.cpp
File metadata and controls
64 lines (63 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "Public/ComClsids.h"
#pragma warning( push )
#pragma warning ( disable : 4467 )
// 4467 Allow use of uuid attribute for com object creation.
#include "PackageManager.h"
#include "FindPackagesOptions.h"
#include "CreateCompositePackageCatalogOptions.h"
#include "InstallOptions.h"
#include "UninstallOptions.h"
#include "PackageMatchFilter.h"
#include "PackageManagerSettings.h"
#include "DownloadOptions.h"
#include "AuthenticationArguments.h"
#pragma warning( pop )
namespace winrt::Microsoft::Management::Deployment
{
CLSID GetRedirectedClsidFromInProcClsid(REFCLSID clsid)
{
if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_PackageManager))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::PackageManager);
}
else if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_FindPackagesOptions))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::FindPackagesOptions);
}
else if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_CreateCompositePackageCatalogOptions))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::CreateCompositePackageCatalogOptions);
}
else if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_InstallOptions))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::InstallOptions);
}
else if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_UninstallOptions))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::UninstallOptions);
}
else if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_DownloadOptions))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::DownloadOptions);
}
else if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_PackageMatchFilter))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::PackageMatchFilter);
}
else if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_AuthenticationArguments))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::AuthenticationArguments);
}
else if (IsEqualCLSID(clsid, WINGET_INPROC_COM_CLSID_PackageManagerSettings))
{
return __uuidof(winrt::Microsoft::Management::Deployment::implementation::PackageManagerSettings);
}
else
{
return CLSID_NULL;
}
}
}