NPSDeviceGetNumber
DWORD NPSDeviceGetNumber(
LPTSTR lpLocalName,
LPDWORD lpdwNumber,
LPDWORD lpdwType
);
- lpLocalName
- Contains the name of the local device the caller is interested in.
- lpdwNumber
- Returns the number associated with the local device. Devices "A:" to "Z:" for disk devices are assigned numbers 1 to 26, and devices "LPT1" onwards for print devices are assigned numbers 1 onwards.
- lpdwType
- Returns the type of device passed in. It can be RESOURCETYPE_DISK, RESOURCETYPE_PRINT.
- WN_SUCCESS if the call is successful.
WN_BAD_LOCALNAME |
lpLocalName is not a valid disk or print device. |