K
Keith M
Could some kind soul illustrate how I can call the EnumPrintProcessors Win32
API from c# code?
BOOL EnumPrintProcessors(
LPTSTR pName, // print server name
LPTSTR pEnvironment, // environment name
DWORD Level, // information level
LPBYTE pPrintProcessorInfo, // processor data buffer
DWORD cbBuf, // size of data buffer
LPDWORD pcbNeeded, // bytes received or required
LPDWORD pcReturned // number of processors
);I am having particular trouble with the pPrintProcessorInfo parameter.
This is defined as an LPBYTE and will eventually end up with an array of
PRINTPROCESSOR_INFO_1 structures within it.
I cant quite translate this concept into C#
Thanks for any assistance, I have been trawling round msdn and the net to
little avail.
API from c# code?
BOOL EnumPrintProcessors(
LPTSTR pName, // print server name
LPTSTR pEnvironment, // environment name
DWORD Level, // information level
LPBYTE pPrintProcessorInfo, // processor data buffer
DWORD cbBuf, // size of data buffer
LPDWORD pcbNeeded, // bytes received or required
LPDWORD pcReturned // number of processors
);I am having particular trouble with the pPrintProcessorInfo parameter.
This is defined as an LPBYTE and will eventually end up with an array of
PRINTPROCESSOR_INFO_1 structures within it.
I cant quite translate this concept into C#
Thanks for any assistance, I have been trawling round msdn and the net to
little avail.