int nNumPapers = DeviceCapabilities( "hp deskjet 920c series", "LPT1",
DC_PAPERNAMES, NULL, NULL );
char* papers = new char[ nNumPapers * 64 ];
ZeroMemory( papers, nNumPapers * 64 );
DeviceCapabilities( "hp deskjet 920c series", "LPT1",
DC_PAPERNAMES, papers, NULL );
for( int i = 0; i < nNumPapers; i++ )
{
std::cout << papers << std::endl;
papers += 64;
}
try using this for checking the installed paper bins