Site icon EfmSoft

What does Windows error code 66 (ERROR_BAD_DEV_TYPE) mean?

 
Could be also:
ConstantTypeOS
EREMOTEerrnoLinux
ENOTEMPTYerrnoMac
EREMOTEerrnoSolaris
ATDISK_DRIVER_INTERNALBugCheck CodeWindows
Previous Next
ERROR_NETWORK_ACCESS_DENIED ERROR_BAD_NET_NAME

ERROR_BAD_DEV_TYPE

WNet APIs distinguish disk and print resources. WNetAddConnection2 documents that a redirected local device must be paired with a compatible resource type, and WNetGetResourceInformation can return ERROR_BAD_DEV_TYPE when the supplied dwType does not match the resource identified by the remote name.

This is a structural input error, not a server availability problem. For example, forcing a print resource through a disk-device mapping path can fail before meaningful remote I/O begins. Letting the provider infer the type can also be preferable when the caller does not actually know it.

Check the NETRESOURCE contract

WNetAddConnection2 · WNetGetResourceInformation


Looking for a different code? Search another status or error code.

Exit mobile version