nesdev.com
http://forums.nesdev.com/

[RockNES] missing api-ms-win-core-**???
http://forums.nesdev.com/viewtopic.php?f=5&t=15393
Page 1 of 1

Author:  Zepper [ Tue Jan 17, 2017 10:16 am ]
Post subject:  [RockNES] missing api-ms-win-core-**???

When you think it's all right... no. :shock:
RockNES is compiled with gcc version 4.8.1.

I use Windows 10 (upgraded from 7).

Attachments:
walker.png
walker.png [ 72.61 KiB | Viewed 888 times ]

Author:  Dwedit [ Tue Jan 17, 2017 10:46 am ]
Post subject:  Re: [RockNES] missing api-ms-win-core-**???

If RockNES isn't importing it, then it doesn't matter what Kernel32 itself shows. Kernel32 gets loaded by every single process, even those that don't import it, so obviously it is able to load fine.

edit:
Read the article:
http://arstechnica.com/information-tech ... lims-down/

The API-CORE-*.dll imports from Kernel32 aren't actually real.
The OS does come with false stub DLL files made to look like what would be in there, look in C:\windows\system32\downlevel or C:\windows\syswow64\downlevel, and notice that they are all under 16k in size.

Author:  Zepper [ Tue Jan 17, 2017 4:01 pm ]
Post subject:  Re: [RockNES] missing api-ms-win-core-**???

I'm asking because of random freezes. Usually, it's on NTDLL.dll.

At anyway, it's full of errors. I'd like someone download depends v2.2 (attached) and let me know what's up.

Attachments:
depends22_x86.zip [596.45 KiB]
Downloaded 44 times

Author:  Dwedit [ Tue Jan 17, 2017 6:33 pm ]
Post subject:  Re: [RockNES] missing api-ms-win-core-**???

Bad pointers in the code end up as bad pointers in Windows API functions. Access violations and things like that. So you need to trap the bug and see the call stack down to the user code that triggered it.
Ollydbg can be used for this whether you have source code or not, but you can also just use your usual debugger.


As for errors you get in Dependency Walker, those are all phony and have to do with Minwin. The actual DLL loader ignores the phony DLL references, so it's not affected, just tools like Dependency Walker are affected.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/