setPrinter returns Win32 API failed [internalErrorCode=0x32 : The request is not supported. ][0x20000002:Internal service error]

tech enths 1 Reputation point
2022-03-31T05:01:23.053+00:00

I am using SetPrinter() to set port details. I am getting

Win32 API failed [internalErrorCode=0x32 : The request is not supported. ][0x20000002:Internal service error]

Iam doing OpenPrinter(),setPrinter() and ClosePrinter().

Please help in resolving the issue.

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,111 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,786 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.