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

FindFirstFile behaves differently on Vista

8 views
Skip to first unread message

mohi...@gmail.com

unread,
Dec 19, 2006, 9:18:17 AM12/19/06
to
The api FindFirstFile returns different error code when the network is
disabled on XP and Vista.

On XP we get a error code

ERROR_NETWORK_UNREACHABLE 1231

and on Vista we get

ERROR_BAD_NETPATH 53

can any one point why microsoft came up with the brilliant idea of
changing the error codes of the function which they say are supported
on Vista and XP .

David Lowndes

unread,
Dec 19, 2006, 12:45:21 PM12/19/06
to
>The api FindFirstFile returns different error code when the network is
>disabled on XP and Vista.

What do you mean by "network disabled"?

>On XP we get a error code
>ERROR_NETWORK_UNREACHABLE 1231
>and on Vista we get
>ERROR_BAD_NETPATH 53

Undoubtedly these error codes are just what are returned from the
network layer - which has been substantially changed in Vista.

Why is it an issue to you?

Dave

Carl Woodward

unread,
Dec 19, 2006, 3:32:19 PM12/19/06
to
> Undoubtedly these error codes are just what are returned from the
> network layer - which has been substantially changed in Vista.

NtQueryDirectoryFile has also changed. The main difference is that
FileBothDirectoryInformation is no longer used and
FileIdBothDirectoryInformation is used instead.

Changes are everywhere in Vista!

Carl


0 new messages