GetPrintProcessorDirectory


BOOL GetPrintProcessorDirectory(
  LPTSTR  lpszName,        /* address of server name           */
  LPTSTR  lpszEnv,         /* address of environment           */
  DWORD   dwLevel,         /* structure level                  */
  LPBYTE  lpbProcessorDir, /* address of structure array       */
  DWORD   cbBuf,           /* size, in bytes, of array         */
  LPDWORD lpdwNeeded       /* addr. of variable with count of  */
                           /* bytes retrieved (or required)    */
);

Retrieves the path for the print processor on the specified server.

lpszName

Points to a null-terminated string that specifies the name of the server. If this string is NULL, a local path is returned.

lpszEnv

Points to a null-terminated string that specifies the environment. For example, "Windows 96 x86" specifies Windows 96 running on an Intel(r) 80386 or 80486 processor. If this string is NULL, the current environment of the caller/client (not of the destination/server) is used.

dwLevel

Specifies the structure level. This value must be 1.

lpbProcessorDir

Points to an array of bytes into which the path is copied.

cbBuf

Specifies the size of the buffer to which lpbProcessorDir points.

lpdwNeeded

Points to a value that specifies the number of bytes copied if the function succeeds, or the number of bytes required if cbBuf is too small.