Forum > Windows
SetFilePointerEx function missing
440bx:
--- Quote from: marcov on November 07, 2024, 12:25:05 pm ---Fixed
--- End quote ---
Great!
Fibonacci:
--- Quote from: marcov on November 07, 2024, 12:25:05 pm ---Fixed
--- End quote ---
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function SetFilePointerEx(InFile : THANDLE; InDistanceToMove : Int64;OutoptNewFilePointer : PInt64;InMoveMethod : DWORD): BOOL; stdcall; external KernelDLL;
Can you explain the spacing?
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function GetFileSizeEx(InFileHandle : THANDLE;OutFileSize : PLARGE_INTEGER): BOOL; stdcall;
Or this? 2 spaces before colon, why?
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---function GetNumaProximityNode(ProximityId:ULONG; NodeNumber:PUCHAR):BOOL;stdcall;external 'kernel32.dll' name 'GetNumaProximityNode';
Here no spacing around colons. Why? :o At least be consistent.
https://gitlab.com/freepascal.org/fpc/source/-/blob/1ccc23fa7009aaa7d8ac756768e3d2712ae2be47/rtl/win/wininc/func.inc?blame=1#L1375
Fibonacci:
https://gitlab.com/freepascal.org/fpc/source/-/blob/main/rtl/win/wininc/ascdef.inc?blame=1#L349
This function is commented out. I recently had to use this function so I had to declare it myself :-\
Whats funny, TOPENFILENAME structure is available in Windows unit, and is only used by the functions commented out: GetOpenFileName and GetSaveFileName.
"peter authored 24 years ago" :o Time flies
marcov:
Those early Peter commits are the original windows header. Back then commdlg functions were added to windows, but they were in commdlg unit in at least later (D4+) Delphis .
So at around 2008 they were retranslated, put commdlg in and mostly removed from unit Windows.
Probably the structure was left in as IIRC its packing was particularly hairy, and I never got confirmation that the commdlg one was good.
Note that as per Vista IFileDialog became the preferred way anyway, and it pretty much all legacy.
Thaddy:
I think some other people need more coffee. Why a signed type? Deliberately half your reach?
Then again, I got this response from MS,
--- Code: Text [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Historical Reasons: The use of LARGE_INTEGER dates back to earlier versions of Windows, and changing it now would break backward compatibility with existing applications.Which was unexpected to me.. No coffee needed.
Navigation
[0] Message Index
[#] Next page
[*] Previous page