title: Link to ntdll.lib and call functions inside ntdll.dll
body: <p>I'm recently doing some research on private APIs. I tried to call functions such as <code>NtOpenFile</code> in ntdll.dll with <code>LoadLibrary</code> and <code>GetProcAddress</code> at runtime. Luckly, it succeed. This morning I performed a file search on my computer and find <code>ntdll.lib</code> in my C drive. As far as I know of, such .lib file should contain stubs for dll exports available for linking. So, I tried to link my application to that lib but I'm constantly getting <code>unresolved external symbol</code> errors.  However, a <code>dumpbin /EXPORTS</code> shows that ntdll.lib clearly has NtOpenFile exported. How could I resolve this error?</p>