Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OpenFileByid

139 views
Skip to first unread message

Barry

unread,
Jul 6, 2009, 5:02:01 AM7/6/09
to
Hi,
I am having problems with the OpenFileByid API.
Even when compiling the SDK sample "ExtendedFileAPIs" the result is the
same, which is the API returning an ErrorCode 87.

I did notice that there are minor discrepencies between the winbase.h
definitions
and the fileextd.h i.e. FILE_ID_DESCRIPTOR includes a union with only one
member
and FILE_ID_TYPE is different. The consequence is that the sizeof returns
different
results depending on which definition is used.
However, I have tried all combinations and Windows always give a a polite
"ERROR_INVALID_PARAMETER".

What I would really appreciate is a sample vc project with a working
OpenFileByid function call.

Any tips would be much appreciated.

Regards,
Barry

0 new messages