@cmuratori SetFileInformationByHandle ?
-
-
-
@JohnDoty Thank you sir! That is exactly what I was looking for.
End of conversation
New conversation -
-
-
@cmuratori Assuming your using overlapped IO for everything else, then SetFilePointer;SetEndOfFile will actually work just fine I think. -
@cmuratori As if two threads both call SetEndOfFile simultaneously then it's always going to be random as to which one goes first. - Show replies
New conversation -
-
-
@cmuratori https://msdn.microsoft.com/en-us/library/windows/desktop/aa364224(v=vs.85).aspx … use via SetFileInformationByHandle -
@rygorous@cmuratori What does "minimum client: Vista" ... "redistributable: XP" mean? - Show replies
New conversation -
-
-
@borodinvadim@cmuratori All file fns are thread-safe by themselves. The race Casey meant is that another thread might move the file ptr. -
@borodinvadim@cmuratori (between SetFilePointer and SetEndOfFile).
End of conversation
New conversation -
-
-
@borodinvadim@cmuratori You can generally assume they are unless explicitly stated otherwise. That's true for the common fns anyway. -
@borodinvadim@cmuratori (Who knows about "all" Win32 API fns; Win32 is huge.)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.