AddPrinter Invalid Printer Name troubles

I have a problem similar to However, there are a few unanswered questions that apply to my situation. I am for some reason getting the same error on the same driver and ui dll files, and it didn’t show up when I tried to do the same thing last week on the same code. What are the most common scenarios that the invalid printer name error code (1801) would occur?