Re: System-wide hooking, VB+ASM



"J French" <erewhon@xxxxxxxxxx> wrote in message
news:42a2bf6e.3410656@xxxxxxxxxxxxxxxxxxx
>
>>I don't know if VB uses a DLL entry point (called DllMain, LibMain or
>>whatever) but it probably does. We don't know what it is doing but it
>>could
>>be causing a problem somehow.
>
> My guess (and it is just a guess) is that all DLLs have this as a
> standard entry point.

That depends on what you mean by "standard". I think you mean that all DLLs
have an entry point function, since it is a standard. Not all DLLs have a
DLL entry point. I am not guessing, I know that the DLL entry point is not
required.

Perhaps you are thinking that when other languages, such as C++, are used to
create a DLL, that the source code is generate with a DLL entry point
function. When using VC 6 and a "Win32 Dynamic-Link Library" project is
created, we have a choice of three options. One is to create a project
without any source code generated, another is a project with a simple DLL,
and another is a project for a DLL that exports symbols. The source code
generated for the simple DLL does have a skeleton DllMain and that is all
that is in the source code. The third type of project generates source code
with a DllMain that also has a switch (select) statement and it has a sample
class that exports a couple of functions.

The DllMain can of course be deleted in a second from the generated source
code if it is not needed.



.



Relevant Pages

  • Re: System-wide hooking, VB+ASM
    ... >> standard entry point. ... >DLL entry point. ... >without any source code generated, another is a project with a simple DLL, ... >generated for the simple DLL does have a skeleton DllMain and that is all ...
    (microsoft.public.vb.winapi)
  • Re: Sudden [package require] woes
    ... This might be an issue that some dependencies are not met. ... here is what happens when a DLL is loaded: ... - the DLL entry point is called ... if some of these global variables are C++ objects and something ...
    (comp.lang.tcl)
  • Re: user service not recognized
    ... What could cause the unload of ... Try to load the DLL ... - Your DllMain (or the DLL entry point if you defined another ... (l'indirizzo di reply di questo messaggio non è ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Gracefully shutting down a thread in a DLL
    ... Windows ensures that calls to Dll entry points are always serialised, ... So you can't wait for a thread to complete in a dll unload. ... the threads will be unceremoniously aborted during process exit. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: user service not recognized
    ... The service build and creates a dll. ... there's something wrong in the registry. ... - Your DllMain (or the DLL entry point if you defined another name for ... (l'indirizzo di reply di questo messaggio non è ...
    (microsoft.public.windowsce.platbuilder)