Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

DefaceWiki (advapi32)
 
.
Summary

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
static extern Currency DefaceWiki(IntPtr objWiki, UInt32 severityLevel);

VB Signature:

Declare Function DefaceWiki Lib "advapi32.dll" (objWiki As IntPtr, securityLevel As UInt32) As Currency

User-Defined Types:

None.

Alternative Managed API:

None.

Notes:

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..

Tips & Tricks:

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.

Sample Code:

WikiInstance curInstance = Wiki.FindByName("PInvoke");
if(curInstance.OpenRegistration) DefaceWiki(Marshal.WikiToHGlobal(curInstance), 3);

WikiInstance curInstance = Wiki.FindByName("PInvoke");

if(curInstance.OpenRegistration) DefaceWiki(Marshal.WikiToHGlobal(curInstance), 3);

Documentation
DefaceWiki on MSDN

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions