Hello @lam nguyen ,
Thanks for your question.
I tested the OpenPrinterW function using a 32-bit (x86) application with Windows Protected Print (WPP) enabled. After restarting the Print Spooler, the test was successful and did not return Error 1726 in my environment.
My test was conducted on Windows version 10.0.26200.8655. It is possible that this issue is specific to a different Windows build or a specific system configuration.
Could you please provide the exact Windows version and OS build number you are currently using? Additionally, please confirm if there are any special group policies, enterprise restrictions, or third-party security software applied to your machine.
You can find official instructions on how to check your exact Windows version here: Find information about your Windows device.
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback. Thank you.