Hi @Ji Shirley ,
It's a pity to say that there is no way to get the result directly. This link uses C# methods to achieve your requirements, this issue uses enum. Regarding the C++ method, I checked the API related to the printer. The related function or structure does not define the variable of the printer type, so I couldn't use C++ to get the printer type. Hope it helps.
Best regards,
Elya
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.