Print Thread
Undocument API function
#54176 11/10/16 02:33 PM
Joined: Jan 2006
Posts: 162
Russian, SPB
Starina Offline OP
Member
OP Offline
Member
Joined: Jan 2006
Posts: 162
Russian, SPB
Hi.

Tell me please what do undocument functions:

1. ide_showtoolbuttonmenu.
2. ide_getsyntaxanalizer.




rrProject plugin developer (GitHub)
Donate
Re: Undocument API function
Starina #54179 11/11/16 02:51 PM
Joined: Aug 1999
Posts: 22,200
Member
Offline
Member
Joined: Aug 1999
Posts: 22,200
procedure IDE_ShowToolButtonMenu(ID, Index: Integer; Name, Items: PAnsiChar); cdecl;

Will Show a PopupMenu with items as defined in Items as:

n1=item1<crlf>n2=Item2

n is the index for the menu, item is the description.


function IDE_GetSyntaxAnalyzer(Name: PAnsiChar): PAnsiChar; cdecl;

Returns the definition of the SyntaxAnalyzer with the given name. It's for internal use only.


Marco Kalter
Allround Automations
Re: Undocument API function
Starina #64375 01/07/23 05:54 PM
Joined: Jan 2006
Posts: 162
Russian, SPB
Starina Offline OP
Member
OP Offline
Member
Joined: Jan 2006
Posts: 162
Russian, SPB
what functions are hidden behind indices 155, 170, 171, 172, 178, 179, 290, 291?


rrProject plugin developer (GitHub)
Donate
Re: Undocument API function
Starina #64388 01/18/23 07:28 PM
Joined: Jun 2015
Posts: 72
Russia
L
Member
Offline
Member
L
Joined: Jun 2015
Posts: 72
Russia
I got functions' list, coming into plugin through RegisterCallback() in v.14.0.6.1988.
Unknown functions for me are: 155, 170, 171, 172, 177, 290, 291
178 is
Code
int  (*IDE_GetAppHandleEx)() = (int(*)()) 178;

178 : @IDE_GetAppHandleEx := Addr;
it is described in \PlugInDoc\Interface\PlugInIntf.pas

155 seems to be IDE_SetSelectedText(char*) don't know what it returns;
170 is IDE_MainApplication() without parameters, returns pointer to some heavy struct;
171 is IDE_MainForm() - no params, return - ?;
172 IDE_Mouse() - seems to have one 32-bit parameter;
177 IDE_GetSyntaxAnalyzer() - 1 out parameter and some return value;
290 unnamed function, returning some flag, based on some internal variable;
291 much more complex unnamed function with 1 out param.

Last edited by lost; 01/18/23 07:48 PM.
Re: Undocument API function
Starina #64389 01/18/23 07:44 PM
Joined: Jun 2015
Posts: 72
Russia
L
Member
Offline
Member
L
Joined: Jun 2015
Posts: 72
Russia
summary
Code
void (*IDE_SetSelectedText)(char *p) = (void(*)(char*)) 155;
char*(*IDE_MainApplication)() = (char*(*)()) 170;
int  (*IDE_MainForm)() = (int(*)()) 171;
int  (*IDE_Mouse)(int) = (int(*)(int)) 172;
char*(*IDE_GetSyntaxAnalyzer)(char *Name) = (char*(*)(char*)) 177;
int  (*IDE_290)() = (int(*)()) 290;
void*(*IDE_291)(char *p) = (void*(*)(char*)) 291;


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.135s Queries: 15 (0.046s) Memory: 2.5132 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-04-20 06:48:03 UTC
Valid HTML 5 and Valid CSS