NPValidLocalDevice

Validates local devices.


DWORD NPValidLocalDevice(
  DWORD dwType,
  DWORD dwNumber
  );

dwType

Specifies the type of resource to connect to. It can be RESOURCETYPE_DISK, RESOURCETYPE_PRINT.

dwNumber

Specifies the range of local devices being requested. Zero for the first 32 devices, one for the next 32 devices and so on.