There are a couple of things you might want to check:
1) Is the function name actually "PrintUIEntry"? Note that this is case-sensitive.
2) Is the function really exported without name mangling (this can be checked with Dependency Walker, depends.exe)? See: http://en.wikipedia.org/wi
3) What does GetLastError() return if called just after GetProcAddress fails? You can look up the corresponding textual error message in the Error Lookup tool.
Main Topics
Browse All Topics





by: jkrPosted on 2008-07-29 at 08:04:37ID: 22112185
The problem is that printui.dll does not export a function named 'PrintUIEntry()' - that one is actually called 'PrintUIEntryW()' as 'dumpbin /exports' shows:
Select allOpen in new window