+
+#ifdef WITH_NTDLL
+ if (hNtdll == NULL)
+ hNtdll = LoadLibrary(L"ntdll.dll");
+
+ if (hNtdll) {
+ func_RtlNtStatusToDosError =
+ (void*)GetProcAddress(hNtdll, "RtlNtStatusToDosError");
+ if (func_RtlNtStatusToDosError) {
+
+ func_NtQuerySecurityObject =
+ (void*)GetProcAddress(hNtdll, "NtQuerySecurityObject");
+
+ func_NtQueryDirectoryFile =
+ (void*)GetProcAddress(hNtdll, "NtQueryDirectoryFile");
+
+ func_NtQueryInformationFile =
+ (void*)GetProcAddress(hNtdll, "NtQueryInformationFile");
+
+ func_NtSetSecurityObject =
+ (void*)GetProcAddress(hNtdll, "NtSetSecurityObject");
+ func_RtlCreateSystemVolumeInformationFolder =
+ (void*)GetProcAddress(hNtdll, "RtlCreateSystemVolumeInformationFolder");
+ }
+ }
+
+ DEBUG("FindFirstStreamW @ %p", win32func_FindFirstStreamW);
+ DEBUG("FindNextStreamW @ %p", win32func_FindNextStreamW);
+ DEBUG("CreateSymbolicLinkW @ %p", win32func_CreateSymbolicLinkW);
+ DEBUG("RtlNtStatusToDosError @ %p", func_RtlNtStatusToDosError);
+ DEBUG("NtQuerySecurityObject @ %p", func_NtQuerySecurityObject);
+ DEBUG("NtQueryDirectoryFile @ %p", func_NtQueryDirectoryFile);
+ DEBUG("NtQueryInformationFile @ %p", func_NtQueryInformationFile);
+ DEBUG("NtSetSecurityObject @ %p", func_NtSetSecurityObject);
+ DEBUG("RtlCreateSystemVolumeInformationFolder @ %p",
+ func_RtlCreateSystemVolumeInformationFolder);
+#endif
+