GetPrintProcessorDirectory (winspool)
Last changed: -179.178.48.53

.

Summary:

Gets the directory of the current PrinterProcessor.

C# Signature:

[DllImport("winspool.drv")]

static extern bool GetPrintProcessorDirectory(StringBuilder pName, StringBuilder pEnv, int Level, Out StringBuilder outPath, int bufferSize, ref int Bytes);

code

[DllImport("winspool.drv")]

static extern bool GetPrintProcessorDirectory(StringBuilder pName,

                          StringBuilder pEnv,
                          int Level,
                          [Out] StringBuilder outPath,
                          int bufferSize,
                          ref int Bytes);

StringBuilder str = new StringBuilder();

int length = 0;

GetPrintProcessorDirectory(null, null, 1, str, 1024, ref length );

// length contains the path length

// str contains the path

[/code]

VB Signature:

Declare Function GetPrintProcessorDirectory Lib "winspool.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation