Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / FUNCDROP total confusion

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. FUNCDROP total confusion
#12933
Posted by: garryggreen 2009-05-24 07:05:43
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.
Message2.
#12934
Posted by: Jeff Glatt 2009-05-24 13:46:21
You can't "drop" a function registered with FUNCDEF.
Message3.
#12935
Posted by: garryggreen 2009-05-24 15:35:46
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.
Message4.
#12937
Posted by: Jeff Glatt 2009-05-24 23:22:32
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 First 1 Last
掌柜推荐
 
 
¥1,390.00 ·
 
 
¥287.00 ·
 
 
¥410.00 ·
 
 
¥1,380.00 ·
 
 
¥1,080.00 ·
 
 
¥271.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0