ReactOS 0.4.16-dev-329-g9223134
iconoverlay.h
Go to the documentation of this file.
1/* Copyright (c) Mark Harmstone 2016-17
2 *
3 * This file is part of WinBtrfs.
4 *
5 * WinBtrfs is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public Licence as published by
7 * the Free Software Foundation, either version 3 of the Licence, or
8 * (at your option) any later version.
9 *
10 * WinBtrfs is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public Licence for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public Licence
16 * along with WinBtrfs. If not, see <http://www.gnu.org/licenses/>. */
17
18#pragma once
19
20#include <shlobj.h>
21
22extern LONG objs_loaded;
23
24class BtrfsIconOverlay : public IShellIconOverlayIdentifier {
25public:
27 refcount = 0;
29 }
30
33 }
34
35 // IUnknown
36
38
41 }
42
45
46 if (rc == 0)
47 delete this;
48
49 return rc;
50 }
51
52 // IShellIconOverlayIdentifier
53
54 virtual HRESULT __stdcall GetOverlayInfo(PWSTR pwszIconFile, int cchMax, int* pIndex, DWORD* pdwFlags) noexcept;
55 virtual HRESULT __stdcall GetPriority(int *pPriority) noexcept;
56 virtual HRESULT __stdcall IsMemberOf(PCWSTR pwszPath, DWORD dwAttrib) noexcept;
57
58private:
60};
UINT cchMax
#define InterlockedIncrement
Definition: armddk.h:53
#define InterlockedDecrement
Definition: armddk.h:52
ULONG __stdcall AddRef()
Definition: iconoverlay.h:39
virtual ~BtrfsIconOverlay()
Definition: iconoverlay.h:31
ULONG __stdcall Release()
Definition: iconoverlay.h:43
virtual HRESULT __stdcall GetOverlayInfo(PWSTR pwszIconFile, int cchMax, int *pIndex, DWORD *pdwFlags) noexcept
Definition: iconoverlay.cpp:46
virtual HRESULT __stdcall GetPriority(int *pPriority) noexcept
Definition: iconoverlay.cpp:65
virtual HRESULT __stdcall IsMemberOf(PCWSTR pwszPath, DWORD dwAttrib) noexcept
Definition: iconoverlay.cpp:74
HRESULT __stdcall QueryInterface(REFIID riid, void **ppObj)
Definition: iconoverlay.cpp:35
unsigned long DWORD
Definition: ntddk_ex.h:95
LONG objs_loaded
Definition: main.cpp:48
REFIID riid
Definition: atlbase.h:39
_Out_ PULONG _Out_ PULONG pIndex
Definition: ndis.h:4565
long LONG
Definition: pedump.c:60
#define REFIID
Definition: guiddef.h:118
uint16_t * PWSTR
Definition: typedefs.h:56
const uint16_t * PCWSTR
Definition: typedefs.h:57
#define __stdcall
Definition: typedefs.h:25
uint32_t ULONG
Definition: typedefs.h:59