>Whenever I try to declare the win32 function AddPrinterDriver, I get the following error: "Cannot find entry point AddPrinterDriver in the DLL." This also happens for EnumPrinterDrivers.
>
>The exact command line I'm using is as follows:
>DECLARE LONG AddPrinterDriver in win32api
>
>I realize that there are no parameters in this declaration, but when I add them in the same error occurs.
That's because it's not in one of the default .DLLs search by the Win32API catchall. Under Win9x, it's in SPOOLSS.DLL:
DECLARE INTEGER AddPrinterDriver IN SPOOLSS.DLL ;
STRING @ lpName, ;
INTEGER Level, ;
STRING @ lpDriverInfo