I'm using a DLL with the following function in C# Visual Studio 2008:
[DllImport("slpapi62", EntryPoint = "_SlpGetPrinterName@12")]
public static extern int SlpGetPrinterName(int nIndex, string strPrinterName, int nMaxChars);
Calling this function, strPrinterName is suppose to return a string.
string name = "";
SlpGetPrinterName(0, name, 128);
How can i get this parameter to pass by reference?
 
     
     
     
    