I need to get an enumeration of the Bin Type Numbers and PaperSize Numbers for a selected printer. I have the printer's Device Name and its Port. I have managed to get the Text Listings for the Items above using the DC_BINNAMES and DC_PAPERNAMES. My problem is I cannot get the API to work using the DC_BINS and DC_PAPERS settings.
>>HOWTO: Determine Available PaperBins with DeviceCapabilities API<<
http://support.microsoft.com/support/kb/articles/Q194/7/89.asp