Use STL algorithms more often
[TortoiseGit.git] / src / GitWCRev / Register.h
blob48a3d991aaf3bf238eb2b4f6f5030e1bc4f5e7d5
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2017 - TortoiseGit
4 // Copyright (C) 2007, 2010, 2012 - TortoiseSVN
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
23 // registry.h
24 // - Helper functions registering and unregistering a component.
27 // This function will register a component in the Registry.
28 // The component calls this function from its DllRegisterServer function.
29 HRESULT RegisterServer(HMODULE hModule, const CLSID& clsid, const TCHAR* szFriendlyName, const TCHAR* szVerIndProgID, const TCHAR* szProgID, const CLSID& libid) ;
31 // This function will unregister a component. Components
32 // call this function from their DllUnregisterServer function.
33 HRESULT UnregisterServer(const CLSID& clsid, const TCHAR* szVerIndProgID, const TCHAR* szProgID, const CLSID& libid) ;
36 void RegisterInterface(HMODULE hModule, // DLL module handle
37 const CLSID& clsid, // Class ID
38 const TCHAR* szFriendlyName, // Friendly Name
39 const CLSID &libid,
40 const IID &iid);
41 void UnregisterInterface(const IID &iid);
43 HRESULT RegisterTypeLib(HINSTANCE hInstTypeLib, LPCOLESTR lpszIndex);
44 HRESULT UnRegisterTypeLib(HINSTANCE hInstTypeLib, LPCOLESTR lpszIndex);