diff options
Diffstat (limited to 'include/m_clist.h')
-rw-r--r-- | include/m_clist.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/m_clist.h b/include/m_clist.h index 587a3cb35b..df82559883 100644 --- a/include/m_clist.h +++ b/include/m_clist.h @@ -468,6 +468,16 @@ typedef struct { #define ME_CLIST_GROUPCHANGE "CList/GroupChange"
+//checks that a group exists v0.1.1.0+
+//wParam = 0 (unused)
+//lParam = (TCHAR*)groupName
+//returns 0 if a group is not found or group handle on success
+#define MS_CLIST_GROUPEXISTS "CList/GroupExists"
+
+__forceinline HANDLE Clist_GroupExists(LPCTSTR ptszGroupName)
+{ return (HANDLE)CallService(MS_CLIST_GROUPEXISTS, 0, (LPARAM)ptszGroupName);
+}
+
//creates a new group and calls CLUI to display it v0.1.1.0+
//wParam = hParentGroup
//lParam = groupName
@@ -478,6 +488,10 @@ typedef struct { //API to create unique name by itself
#define MS_CLIST_GROUPCREATE "CList/GroupCreate"
+__forceinline HANDLE Clist_CreateGroup(HANDLE hParent, LPCTSTR ptszGroupName)
+{ return (HANDLE)CallService(MS_CLIST_GROUPCREATE, (WPARAM)hParent, (LPARAM)ptszGroupName);
+}
+
//deletes a group and calls CLUI to display the change v0.1.1.0+
//wParam = (WPARAM)(HANDLE)hGroup
//lParam = 0
|