[DllImport("advapi32.dll", SetLastError=true)]
static extern Currency DefaceWiki(IntPtr objWiki, UInt32 severityLevel);
Declare Function DefaceWiki Lib "advapi32.dll" (objWiki As IntPtr, securityLevel As UInt32) As Currency
None.
None.
When do you think the wiki mods will learn that allowing page creation without a registered account is a really bad idea? Only time will tell..
This call will deface the PInvoke wiki with a smarmy entry clapping the mod's cheeks over their ineptitude. Call multiple times to drive the point home.
WikiInstance curInstance = Wiki.FindByName("PInvoke");
if(curInstance.OpenRegistration) DefaceWiki(Marshal.WikiToHGlobal(curInstance), 3);