1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SHELL_INC_SPSUPP_REGISTRAR_H
11 #define INCLUDED_SHELL_INC_SPSUPP_REGISTRAR_H
13 #include <initializer_list>
15 #if !defined WIN32_LEAN_AND_MEAN
16 # define WIN32_LEAN_AND_MEAN
22 explicit Registrar(REFIID riidCLSID
);
23 // First version in list becomes default
24 HRESULT
RegisterObject(REFIID riidTypeLib
,
25 const wchar_t* sProgram
,
26 const wchar_t* sComponent
,
27 std::initializer_list
<int> aVersions
,
29 HRESULT
UnRegisterObject(const wchar_t* sProgram
, const wchar_t* sComponent
,
30 std::initializer_list
<int> aVersions
);
31 // First version in list becomes the default
32 HRESULT
RegisterProgIDs(const wchar_t* sProgram
, const wchar_t* sComponent
,
33 std::initializer_list
<int> aVersions
);
34 HRESULT
UnRegisterProgIDs(const wchar_t* sProgram
, const wchar_t* sComponent
,
35 std::initializer_list
<int> aVersions
);
38 HRESULT
RegisterProgID(const wchar_t* sProgram
, const wchar_t* sComponent
, int nVersion
,
40 HRESULT
UnRegisterProgID(const wchar_t* sProgram
, const wchar_t* sComponent
, int nVersion
);
42 static const size_t nGUIDlen
= 40;
43 wchar_t m_sCLSID
[nGUIDlen
];
44 HRESULT m_ConstructionResult
;
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */