Locked Problem sharing windows 2008 printers in c#

  • Monday, March 05, 2012 9:56 PM
     
     

    I have a program with does some complex creation of printers for me. I've gotten all the parts working except the equilvent of checking the share printer button in the GUI (I can get it to assign the share name, but not actually share it). I've been working with the following sample code.

    http://social.msdn.microsoft.com/Forums/nl-NL/csharpgeneral/thread/9e95ed93-e135-4e99-a9a6-4c427efafe4f

    I have everything working except the part:

    PrintBooleanProperty shared = new PrintBooleanProperty("IsShared", true);
    myPrintProperties.Remove("IsShared");
    myPrintProperties.Add("IsShared", shared);

    Any help appreciated!