[PATCH 1/2] include: Add ntifs.h with Reparse point related definitions and typedefs.(try 3)

YongHao Hu christopherwuy at gmail.com
Thu Aug 6 09:12:07 CDT 2015


Hi,

On 15/8/6 下午7:52, Pierre Schweitzer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> On 06/08/2015 13:39, Piotr Caban wrote:
>> Hi,
>>
>> On 08/05/15 07:45, YongHao Hu wrote:
>>> +typedef struct _REPARSE_MOUNTPOINT_DATA_BUFFER +{ +    DWORD
>>> ReparseTag; +    DWORD ReparseDataLength; +    WORD Reserved; +
>>> WORD ReparseTargetLength; +    WORD ReparseTargetMaximumLength; +
>>> WORD Reserved1; +    WCHAR ReparseTarget[1]; +}
>>> REPARSE_MOUNTPOINT_DATA_BUFFER,
>>> *PREPARSE_MOUNTPOINT_DATA_BUFFER;
>> This structure is not defined in native ntifs.h. I don't know if
>> it's acceptable to add it in wine.
> I'd say, no, it's not.
> For the sole reason that the structure defined upper is wrong and
> doesn't match reality. Offsets are wrong and data are missing.
>
> Reading the comment[1], you wrote on top of the definition in the
> source file you provided, I wonder:
> What kind of undocumented things are you referring to?
> FSCTL_SET_REPARSE_POINT is documented and taking either
> REPARSE_DATA_BUFFER or REPARSE_GUID_DATA_BUFFER.
> Would you have details about the missing structure? Would you have
> test cases? Real applications that use it?
Sry, I did not test this seriously and have no idea whether it was right 
or not.  I do not understand reparse point clearly.
I found FSCTL_SET_REPARSE_POINT on some open source projects[1][2] when 
I want to create and test reparse points in tr2_functions.
Thank you very much.:)


[1]: http://osxr.org/qt/source/qtbase/tests/shared/filesystem.h line 106
[2]: http://markcox.googlecode.com/svn-history/r37/trunk/tools/reparse.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20150806/0e4ce894/attachment-0001.html>


More information about the wine-devel mailing list