-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathjumplist.h
74 lines (61 loc) · 1.65 KB
/
jumplist.h
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
65
66
67
68
69
70
71
72
73
74
#ifndef jumplist_h__
#define jumplist_h__
#include <string>
#include <shobjidl.h>
#include <propkey.h>
#include <propvarutil.h>
class JumpList
{
public:
JumpList(std::wstring AppID);
~JumpList();
bool DeleteJumpList();
void AddTasks();
private:
HRESULT _CreateShellLink(PCWSTR pszArguments, PCWSTR pszTitle, IShellLinkW **ppsl, int iconindex = -1);
ICustomDestinationList *pcdl;
};
#endif // jumplist_h__
/*
#ifndef jumplist_h__
#define jumplist_h__
#include <objectarray.h>
#include <shobjidl.h>
#include <propkey.h>
#include <propvarutil.h>
#include <knownfolders.h>
#include <shlobj.h>
#include <string>
#include <map>
class JumpList
{
public:
JumpList(std::wstring AppID);
~JumpList();
HRESULT _CreateShellLink(PCWSTR pszArguments, PCWSTR pszTitle, IShellLink **ppsl, int iconindex, bool WA);
bool _IsItemInArray(std::wstring path, IObjectArray *poaRemoved);
HRESULT _AddTasksToList();
HRESULT _AddCategoryToList();
HRESULT _AddCategoryToList2();
bool CreateJumpList(std::wstring pluginpath, std::wstring pref, std::wstring fromstart,
std::wstring resume, std::wstring openfile, std::wstring bookmarks, std::wstring pltext, bool recent,
bool frequent, bool tasks, bool addbm, bool playlist, const std::wstring bms);
bool DeleteJumpList();
bool CleanJumpList();
private:
bool CleanJL(IApplicationDocumentLists *padl, APPDOCLISTTYPE type);
ICustomDestinationList *pcdl;
IObjectCollection *poc;
HRESULT m_hr;
std::wstring path;
std::wstring m_AppID;
std::wstring s1;
std::wstring s2;
std::wstring s3;
std::wstring s4;
std::wstring s5;
std::wstring s6;
const int max_items_jumplist;
};
#endif // jumplist_h__
*/