public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Wrong value for |FileNormalizedNameInfo| (|24| vs. |48|) in Cygwin 3.6 /usr/include ...
@ 2024-05-11 11:30 Roland Mainz
  2024-05-11 16:17 ` Brian Inglis
  0 siblings, 1 reply; 5+ messages in thread
From: Roland Mainz @ 2024-05-11 11:30 UTC (permalink / raw)
  To: cygwin; +Cc: Roland Mainz

Hi!

----

I'm writing a test program for |FileNormalizedNameInfo| right now (see
https://rovema.kpaste.net/07074abc).

Per https://learn.microsoft.com/en-us/windows/win32/api/minwinbase/ne-minwinbase-file_info_by_handle_class
|FileNormalizedNameInfo| should be |24|, but on Cygwin 3.6 I get the
value |48|.
Since |GetFileInformationByHandleEx()| gives me error 87 (="Invalid
Parameter") for |48|, but works as intended for |24| I assume that the
Cygwin header is wrong.

Could someone please check the Cygwin header files ?

Headers:
---- snip ----
$ grep -r FileNormalizedNameInfo /usr/include/
/usr/include/w32api/ddk/wdm.h:  FileNormalizedNameInformation,
/usr/include/w32api/minwinbase.h:    FileNormalizedNameInfo,
/usr/include/w32api/winternl.h:    FileNormalizedNameInformation = 48,
---- snip ----

Cygwin version:
---- snip ----
$ uname -a
CYGWIN_NT-10.0-19045 okkoto 3.6.0-0.115.g579064bf4d40.x86_64
2024-04-09 21:11 UTC x86_64 Cygwin
---- snip ----

----

Bye,
Roland
-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz@nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-15 14:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-11 11:30 Wrong value for |FileNormalizedNameInfo| (|24| vs. |48|) in Cygwin 3.6 /usr/include Roland Mainz
2024-05-11 16:17 ` Brian Inglis
2024-05-15 10:12   ` Roland Mainz
2024-05-15 14:45     ` [EXTERNAL] " Lavrentiev, Anton (NIH/NLM/NCBI) [C]
     [not found]   ` <DM8PR09MB7095035B890E1D7401D8DBB6A5E22@DM8PR09MB7095.namprd09.prod.outlook.com>
2024-05-15 14:14     ` Brian Inglis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).