Skip to content

Commit 22b9b88

Browse files
authored
v8.5.6: NPPM_ALLOCATEINDICATOR (#545)
* add 2137 NPPM_ALLOCATEINDICATOR closes #542
1 parent 31517e0 commit 22b9b88

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

content/docs/plugin-communication.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,25 @@ struct toolbarIconsWithDarkMode {
152152

153153
---
154154

155+
#### [2137] **NPPM_ALLOCATEINDICATOR**
156+
*Obtains a number of consecutive indicator IDs dynamically, with the guarantee of these IDs not clashing with Notepad++'s own internal indicator usage, nor usage by any other plugins that use this API to allocate their needed indicators. (new to v8.5.6)*
157+
158+
**Parameters**:
159+
160+
*wParam [in]*
161+
: int, numberOfIndicators.
162+
163+
*lParam [out]*
164+
: int, pointer to firstIndicatorID.
165+
166+
**Return value**
167+
: Returns 0 on failure, nonzero on success
168+
169+
**Other information**
170+
: If successful, `(*firstIndicatorID)+0` thru `(*firstIndicatorID)+numberOfIndicators-1` are the indicator numbers that have been set as reserved for use by the caller.
171+
172+
---
173+
155174
#### [2106] **NPPM_ALLOCATEMARKER**
156175
*Obtains a number of consecutive marker IDs dynamically, with the guarantee of these IDs not clashing with any other plugins.*
157176

0 commit comments

Comments
 (0)