| Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 | 1. FUNCDROP total confusion #12933 | Am I having a blonde moment? After FUNCDEF'ing I do a FUNCDROP and it fails. I cut the code down to the following - it still fails:
API = "RegOpenKeyEx" RETQUERY1 = RXFUNCQUERY(API) SAY RETQUERY1 Gives 40 RETDEF = FUNCDEF(API,"32,void,str,32u,32u,void stor","advapi32",API) SAY RETDEF Gives 0 RETQUERY2 = RXFUNCQUERY(API) SAY RETQUERY2 Gives 0 RETDROP = FUNCDROP(API,"FUNC") SAY RETDROP Gives Routine not found PULL X
What is the problem with FUNCDROP/how do I unload the RegOpenKeyEx function? I feel stupid asking this question, but I've been scratching my head now for 7 hours. I've tried replacing the "FUNC" 2nd parm on FUNCDROP with every valid value w/o success.
Any help - thanks. Running latest version of files as far as I know and help book seems straightforward (but I find it interesting that all of the examples using FUNCDEF no longer make reference to FUNCDROP). Again, totally confused. | 2. #12934 | You can't "drop" a function registered with FUNCDEF. | 3. #12935 | Jeff - its been a while - I just checked some of my older (3 years old) code and it contains
CALL FUNCDEF("DC","void","kernel32","GetConsoleWindow") X = DC() CALL RXFUNCDROP("DC",0)
Can you clarify my confusion on FUNCDROP (seems to say this is what I should do in the doc), RXFUNCDROP (above) and DROP - I'm really confused (sorry).
Which do I use for Lite to unload a FUNCDEF'd DLL?
Thanks. | 4. #12937 | You can't currently unload a FUNCDEF'ed DLL (nor LIBRARY or MACRO dlls). It would involve more internal book-keeping in Reginald, so I didn't bother with it. It's something that I may look into eventually, but not a priority. Right now, all FUNCDEF does is DROP a funcdef'ed struct, or REXX callback subroutine. Your above FUNCDEF actually does nothing. | Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 |
|
|