<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dlfcn-win32, branch v1.3.0</title>
<subtitle>A mirror of https://github.com/dlfcn-win32/dlfcn-win32.git
</subtitle>
<id>https://git.lua4.win/dlfcn-win32/atom?h=v1.3.0</id>
<link rel='self' href='https://git.lua4.win/dlfcn-win32/atom?h=v1.3.0'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/'/>
<updated>2021-02-24T08:54:51+00:00</updated>
<entry>
<title>Merge pull request #95 from pali/master</title>
<updated>2021-02-24T08:54:51+00:00</updated>
<author>
<name>Silvio Traversaro</name>
<email>silvio@traversaro.it</email>
</author>
<published>2021-02-24T08:54:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=522c301ec366e9b42205ae21617780d37cc0e9f0'/>
<id>urn:sha1:522c301ec366e9b42205ae21617780d37cc0e9f0</id>
<content type='text'>
Various fixes</content>
</entry>
<entry>
<title>Fix noinline for older compiler versions (e.g. Visual Studio 6.0)</title>
<updated>2021-02-03T20:01:24+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T20:01:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=9e40646cf3a7d0817b2298f915399a128fcb4d27'/>
<id>urn:sha1:9e40646cf3a7d0817b2298f915399a128fcb4d27</id>
<content type='text'>
Visual Studio 6.0 does not support __declspec(noinline) and throw error.

Add checks for compilers which support noinline to prevent compile errors.
</content>
</entry>
<entry>
<title>Define ULONG_PTR for older SDK</title>
<updated>2021-02-03T20:00:56+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T20:00:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=7da1054564609f3382869714432f54b63812d083'/>
<id>urn:sha1:7da1054564609f3382869714432f54b63812d083</id>
<content type='text'>
If compiling with _WIN32_WINNT target prior 0x0500 then SDK does not define
ULONG_PTR type. Such systems are only 32bit so define it explicitly to
32bit type ULONG.
</content>
</entry>
<entry>
<title>Fix MSVC 14.00 compile warning: warning C4244: '=' : conversion from 'ULONG_PTR' to 'char', possible loss of data</title>
<updated>2021-02-03T20:00:28+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T20:00:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=d1a0d28f903f9d3eff03f06e299cde5a7998216e'/>
<id>urn:sha1:d1a0d28f903f9d3eff03f06e299cde5a7998216e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add helper function MyGetModuleHandleFromAddress()</title>
<updated>2021-02-03T19:59:58+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T19:59:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=06fea3fe8b3efe8c79f97fa724f703bc0e25aeef'/>
<id>urn:sha1:06fea3fe8b3efe8c79f97fa724f703bc0e25aeef</id>
<content type='text'>
This function implements calling GetModuleHandleExA() with correct flags to
retrieve hModule from passed address.

To allow compilation also with older compilers and environments (like WDK)
with any _WIN32_WINNT value, retrieve pointer to this function via
GetProcAddress(). And as a fallback implementation use old code via
VirtualQuery() which was there prior commit 8ec5ffef2eca.
</content>
</entry>
<entry>
<title>Fix helper function MyEnumProcessModules()</title>
<updated>2021-02-03T19:59:18+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T19:59:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=0e9d85a9d03bcedade35cced63ec6b969ab3451e'/>
<id>urn:sha1:0e9d85a9d03bcedade35cced63ec6b969ab3451e</id>
<content type='text'>
Call SetErrorMode(SEM_FAILCRITICALERRORS) prior opening Psapi.dll library
to avoid GUI error messages.

Close Psapi.dll library via FreeLibrary() if symbol was not retrieved to
prevent possible memory leaks.

Try to get K32EnumProcessModules symbol from Kernel32.dll library as it is
preferred way how to call EnumProcessModules() on Windows 7 and newer
versions.

If retrieving EnumProcessModules symbol failed with both methods then do
not try it again on next MyEnumProcessModules() function call.
</content>
</entry>
<entry>
<title>Avoid calling SetLastError() and GetLastError() internally</title>
<updated>2021-02-03T19:58:39+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T19:58:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=c172ee216cd5d46c1999018e1a3e905eebe3c10c'/>
<id>urn:sha1:c172ee216cd5d46c1999018e1a3e905eebe3c10c</id>
<content type='text'>
There is no need for propagating internal errors via SetLastError() and
GetLastError() calls. Just use additional argument for save_err_str()
function. Also dlfcn API is POSIX and does not use GetLastError().
</content>
</entry>
<entry>
<title>Move hCurrentProc variable to scope where is used</title>
<updated>2021-02-03T19:58:15+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T19:58:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=b89f89323c13a9804d9d521ea9800983f955560a'/>
<id>urn:sha1:b89f89323c13a9804d9d521ea9800983f955560a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix some style issues</title>
<updated>2021-02-03T19:57:40+00:00</updated>
<author>
<name>Pali Rohár</name>
<email>pali.rohar@gmail.com</email>
</author>
<published>2021-02-03T19:57:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=f7e7a5d7345cb416c5514b983f2d8ad387b6f915'/>
<id>urn:sha1:f7e7a5d7345cb416c5514b983f2d8ad387b6f915</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #94 from pali/dladdr</title>
<updated>2021-02-03T17:33:32+00:00</updated>
<author>
<name>Silvio Traversaro</name>
<email>silvio@traversaro.it</email>
</author>
<published>2021-02-03T17:33:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/dlfcn-win32/commit/?id=3ec513f9d9fec0cf52aa7e2f2050112499cac581'/>
<id>urn:sha1:3ec513f9d9fec0cf52aa7e2f2050112499cac581</id>
<content type='text'>
dladdr() - Retrieve symbol name and address from export table</content>
</entry>
</feed>
