General information
Category:
Windows API functions
Basically, there is no good way of doing what you want. There are several tricks or techniques to know if a function was delcared, but none is 100% sure. There is no way to undeclare only one function or to unload only one dll.
The only sure way is to declare the function right before its use, each time the function is used. The DECLARE command is very fast.
It's better to leave the dll functions undeclared (ie never use CLEAR DLLS), mainly because there may be functions declared by third party software or even code that you're not aware of and a CLEAR DLLS would break it.
Anyway, usually, unless you have a large number of dlls (or dlls that use a huge amount of memory), there is no big penalty for not clearing the dll function declarations.
Vlad
>How to check whether a DLL function (Win32API function) is already declared or not ? Also how to clear a single DLL declaration in case you have many active DLL functions? I am aware of "clear dll" which clears all the declared DLL functions.
>Your comment on how to organize declaring and clearing of WinAPI functions will be highly appreciated.
>
>Thanks
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only