windows build fixes

This commit is contained in:
Arvid Norberg
2010-12-01 05:47:18 +00:00
parent f4746f4090
commit 94ef3eaf4b
13 changed files with 29 additions and 10 deletions

View File

@@ -88,6 +88,7 @@ namespace libtorrent
#if _WIN32_WINNT >= 0x0600
if (m_low_prio_io)
{
// TODO: load this function dynamically from Kernel32.dll
FILE_IO_PRIORITY_HINT_INFO priorityHint;
priorityHint.PriorityHint = IoPriorityHintLow;
SetFileInformationByHandle(e.file_ptr->native_handle(),