Table of Contents

Class Win32

Namespace
Npp.DotNet.Plugin
Assembly
Npp.DotNet.Plugin.dll
public class Win32
Inheritance
Win32
Inherited Members

Fields

FALSE

public static readonly NativeBool FALSE

Field Value

NativeBool

GWLP_HINSTANCE

public const int GWLP_HINSTANCE = -6

Field Value

int

GWLP_HWNDPARENT

public const int GWLP_HWNDPARENT = -8

Field Value

int

GWLP_ID

public const int GWLP_ID = -12

Field Value

int

GWLP_USERDATA

public const int GWLP_USERDATA = -21

Field Value

int

GWLP_WNDPROC

public const int GWLP_WNDPROC = -4

Field Value

int

GWL_EXSTYLE

public const int GWL_EXSTYLE = -20

Field Value

int

GWL_STYLE

public const int GWL_STYLE = -16

Field Value

int

MAX_PATH

public const int MAX_PATH = 260

Field Value

int

MFS_CHECKED

Checks the menu item. For more information about selected menu items, see the hbmpChecked member.

public const uint MFS_CHECKED = 8

Field Value

uint

MFS_DEFAULT

Specifies that the menu item is the default. A menu can contain only one default menu item, which is displayed in bold.

public const uint MFS_DEFAULT = 4096

Field Value

uint

MFS_DISABLED

Disables the menu item and grays it so that it cannot be selected. This is equivalent to MFS_GRAYED.

public const uint MFS_DISABLED = 3

Field Value

uint

MFS_ENABLED

Enables the menu item so that it can be selected. This is the default state.

public const uint MFS_ENABLED = 0

Field Value

uint

MFS_GRAYED

Disables the menu item and grays it so that it cannot be selected. This is equivalent to MFS_DISABLED.

public const uint MFS_GRAYED = 3

Field Value

uint

MFS_HILITE

Highlights the menu item.

public const uint MFS_HILITE = 128

Field Value

uint

MFS_UNCHECKED

Unchecks the menu item. For more information about clear menu items, see the hbmpChecked member.

public const uint MFS_UNCHECKED = 0

Field Value

uint

MFS_UNHILITE

Removes the highlight from the menu item. This is the default state.

public const uint MFS_UNHILITE = 0

Field Value

uint

MFT_BITMAP

Displays the menu item using a bitmap. The low-order word of the dwTypeData member is the bitmap handle, and the cch member is ignored.

public const uint MFT_BITMAP = 4

Field Value

uint

MFT_MENUBARBREAK

Places the menu item on a new line (for a menu bar) or in a new column (for a drop-down menu, submenu, or shortcut menu). For a drop-down menu, submenu, or shortcut menu, a vertical line separates the new column from the old.

public const uint MFT_MENUBARBREAK = 32

Field Value

uint

MFT_MENUBREAK

Places the menu item on a new line (for a menu bar) or in a new column (for a drop-down menu, submenu, or shortcut menu). For a drop-down menu, submenu, or shortcut menu, the columns are not separated by a vertical line.

public const uint MFT_MENUBREAK = 64

Field Value

uint

MFT_OWNERDRAW

Assigns responsibility for drawing the menu item to the window that owns the menu. The window receives a WM_MEASUREITEM message before the menu is displayed for the first time, and a WM_DRAWITEM message whenever the appearance of the menu item must be updated. If this value is specified, the dwTypeData member contains an application-defined value.

public const uint MFT_OWNERDRAW = 256

Field Value

uint

MFT_RADIOCHECK

Displays selected menu items using a radio-button mark instead of a check mark if the hbmpChecked member is Zero.

public const uint MFT_RADIOCHECK = 512

Field Value

uint

MFT_RIGHTJUSTIFY

Right-justifies the menu item and any subsequent items. This value is valid only if the menu item is in a menu bar.

public const uint MFT_RIGHTJUSTIFY = 16384

Field Value

uint

MFT_RIGHTORDER

Specifies that menus cascade right-to-left (the default is left-to-right). This is used to support right-to-left languages, such as Arabic and Hebrew.

public const uint MFT_RIGHTORDER = 8192

Field Value

uint

MFT_SEPARATOR

Specifies that the menu item is a separator. A menu item separator appears as a horizontal dividing line. The dwTypeData and cch members are ignored. This value is valid only in a drop-down menu, submenu, or shortcut menu.

public const uint MFT_SEPARATOR = 2048

Field Value

uint

MFT_STRING

Displays the menu item using a text string. The dwTypeData member is the pointer to a null-terminated string, and the cch member is the length of the string.

public const uint MFT_STRING = 0

Field Value

uint

MF_BITMAP

Uses a bitmap as the menu item. The lpNewItem parameter contains a handle to the bitmap.

public const uint MF_BITMAP = 4

Field Value

uint

MF_BYCOMMAND

Indicates that the uPosition parameter gives the identifier of the menu item.

public const uint MF_BYCOMMAND = 0

Field Value

uint

MF_BYPOSITION

Indicates that the uPosition parameter gives the zero-based relative position of the menu item.

public const uint MF_BYPOSITION = 1024

Field Value

uint

MF_CHECKED

Places a check mark next to the item. If your application provides check-mark bitmaps (see the SetMenuItemBitmaps function), this flag displays a selected bitmap next to the menu item.

public const uint MF_CHECKED = 8

Field Value

uint

MF_DISABLED

Disables the menu item so that it cannot be selected, but this flag does not gray it.

public const uint MF_DISABLED = 2

Field Value

uint

MF_ENABLED

Enables the menu item so that it can be selected and restores it from its grayed state.

public const uint MF_ENABLED = 0

Field Value

uint

MF_GRAYED

Disables the menu item and grays it so that it cannot be selected.

public const uint MF_GRAYED = 1

Field Value

uint

MF_MENUBARBREAK

Functions the same as the MF_MENUBREAK flag for a menu bar. For a drop-down menu, submenu, or shortcut menu, the new column is separated from the old column by a vertical line.

public const uint MF_MENUBARBREAK = 32

Field Value

uint

MF_MENUBREAK

Places the item on a new line (for menu bars) or in a new column (for a drop-down menu, submenu, or shortcut menu) without separating columns.

public const uint MF_MENUBREAK = 64

Field Value

uint

MF_OWNERDRAW

Specifies that the item is an owner-drawn item. Before the menu is displayed for the first time, the window that owns the menu receives a WM_MEASUREITEM message to retrieve the width and height of the menu item. The WM_DRAWITEM message is then sent to the window procedure of the owner window whenever the appearance of the menu item must be updated.

public const uint MF_OWNERDRAW = 256

Field Value

uint

MF_POPUP

Specifies that the menu item opens a drop-down menu or submenu. The uIDNewItem parameter specifies a handle to the drop-down menu or submenu. This flag is used to add a menu name to a menu bar or a menu item that opens a submenu to a drop-down menu, submenu, or shortcut menu.

public const uint MF_POPUP = 16

Field Value

uint

MF_SEPARATOR

Draws a horizontal dividing line. This flag is used only in a drop-down menu, submenu, or shortcut menu. The line cannot be grayed, disabled, or highlighted. The lpNewItem and uIDNewItem parameters are ignored.

public const uint MF_SEPARATOR = 2048

Field Value

uint

MF_STRING

Specifies that the menu item is a text string; the lpNewItem parameter is a pointer to the string.

public const uint MF_STRING = 0

Field Value

uint

MF_UNCHECKED

Does not place a check mark next to the item (the default). If your application supplies check-mark bitmaps (see the SetMenuItemBitmaps function), this flag displays a clear bitmap next to the menu item.

public const uint MF_UNCHECKED = 0

Field Value

uint

MIIM_BITMAP

Retrieves or sets the hbmpItem member.

public const uint MIIM_BITMAP = 128

Field Value

uint

MIIM_CHECKMARKS

Retrieves or sets the hbmpChecked and hbmpUnchecked members.

public const uint MIIM_CHECKMARKS = 8

Field Value

uint

MIIM_DATA

Retrieves or sets the dwItemData member.

public const uint MIIM_DATA = 32

Field Value

uint

MIIM_FTYPE

Retrieves or sets the fType member.

public const uint MIIM_FTYPE = 256

Field Value

uint

MIIM_ID

Retrieves or sets the wID member.

public const uint MIIM_ID = 2

Field Value

uint

MIIM_STATE

Retrieves or sets the fState member.

public const uint MIIM_STATE = 1

Field Value

uint

MIIM_STRING

Retrieves or sets the dwTypeData member.

public const uint MIIM_STRING = 64

Field Value

uint

MIIM_SUBMENU

Retrieves or sets the hSubMenu member.

public const uint MIIM_SUBMENU = 4

Field Value

uint

MIIM_TYPE

Retrieves or sets the fType and dwTypeData members.

public const uint MIIM_TYPE = 16

Field Value

uint

NULL

public static readonly IntPtr NULL

Field Value

IntPtr

SIZE_MAXHIDE

public const int SIZE_MAXHIDE = 4

Field Value

int

SIZE_MAXIMIZED

public const int SIZE_MAXIMIZED = 2

Field Value

int

SIZE_MAXSHOW

public const int SIZE_MAXSHOW = 3

Field Value

int

SIZE_MINIMIZED

public const int SIZE_MINIMIZED = 1

Field Value

int

SIZE_RESTORED

public const int SIZE_RESTORED = 0

Field Value

int

TRUE

public static readonly NativeBool TRUE

Field Value

NativeBool

WM_ACTIVATE

public const uint WM_ACTIVATE = 6

Field Value

uint

WM_ACTIVATEAPP

public const uint WM_ACTIVATEAPP = 28

Field Value

uint

WM_CLOSE

public const uint WM_CLOSE = 16

Field Value

uint

WM_CREATE

public const uint WM_CREATE = 1

Field Value

uint

WM_CTLCOLOR

public const uint WM_CTLCOLOR = 25

Field Value

uint

WM_DESTROY

public const uint WM_DESTROY = 2

Field Value

uint

WM_DEVMODECHANGE

public const uint WM_DEVMODECHANGE = 27

Field Value

uint

WM_DRAWITEM

Sent to the parent window of an owner-drawn button, combo box, list box, or menu when a visual aspect of the button, combo box, list box, or menu has changed. See https://learn.microsoft.com/windows/win32/controls/wm-drawitem

public const uint WM_DRAWITEM = 43

Field Value

uint

WM_ENABLE

public const uint WM_ENABLE = 10

Field Value

uint

WM_ENDSESSION

public const uint WM_ENDSESSION = 22

Field Value

uint

WM_ERASEBKGND

public const uint WM_ERASEBKGND = 20

Field Value

uint

WM_GETTEXT

public const uint WM_GETTEXT = 13

Field Value

uint

WM_GETTEXTLENGTH

public const uint WM_GETTEXTLENGTH = 14

Field Value

uint

WM_HELP

public const int WM_HELP = 83

Field Value

int

WM_KILLFOCUS

public const uint WM_KILLFOCUS = 8

Field Value

uint

WM_MEASUREITEM

Sent to the owner window of a combo box, list box, list-view control, or menu item when the control or menu is created. See https://learn.microsoft.com/windows/win32/controls/wm-measureitem

public const uint WM_MEASUREITEM = 44

Field Value

uint

WM_MOVE

public const uint WM_MOVE = 3

Field Value

uint

WM_NOTIFY

public const int WM_NOTIFY = 78

Field Value

int

WM_NULL

public const uint WM_NULL = 0

Field Value

uint

WM_PAINT

public const uint WM_PAINT = 15

Field Value

uint

WM_QUERYENDSESSION

public const uint WM_QUERYENDSESSION = 17

Field Value

uint

WM_QUERYOPEN

public const uint WM_QUERYOPEN = 19

Field Value

uint

WM_QUIT

public const uint WM_QUIT = 18

Field Value

uint

WM_SETFOCUS

public const uint WM_SETFOCUS = 7

Field Value

uint

WM_SETREDRAW

public const uint WM_SETREDRAW = 11

Field Value

uint

WM_SETTEXT

public const uint WM_SETTEXT = 12

Field Value

uint

WM_SHOWWINDOW

public const uint WM_SHOWWINDOW = 24

Field Value

uint

WM_SIZE

public const uint WM_SIZE = 5

Field Value

uint

WM_SYSCOLORCHANGE

public const uint WM_SYSCOLORCHANGE = 21

Field Value

uint

WM_WININICHANGE

public const uint WM_WININICHANGE = 26

Field Value

uint

WS_EX_ACCEPTFILES

public const long WS_EX_ACCEPTFILES = 16

Field Value

long

WS_EX_APPWINDOW

public const long WS_EX_APPWINDOW = 262144

Field Value

long

WS_EX_CLIENTEDGE

public const long WS_EX_CLIENTEDGE = 512

Field Value

long

WS_EX_COMPOSITED

public const long WS_EX_COMPOSITED = 33554432

Field Value

long

WS_EX_CONTEXTHELP

public const long WS_EX_CONTEXTHELP = 1024

Field Value

long

WS_EX_CONTROLPARENT

public const long WS_EX_CONTROLPARENT = 65536

Field Value

long

WS_EX_DLGMODALFRAME

public const long WS_EX_DLGMODALFRAME = 1

Field Value

long

WS_EX_LAYERED

public const long WS_EX_LAYERED = 524288

Field Value

long

WS_EX_LAYOUTRTL

public const long WS_EX_LAYOUTRTL = 4194304

Field Value

long

WS_EX_LEFT

public const long WS_EX_LEFT = 0

Field Value

long

WS_EX_LEFTSCROLLBAR

public const long WS_EX_LEFTSCROLLBAR = 16384

Field Value

long

WS_EX_LTRREADING

public const long WS_EX_LTRREADING = 0

Field Value

long

WS_EX_MDICHILD

public const long WS_EX_MDICHILD = 64

Field Value

long

WS_EX_NOACTIVATE

public const long WS_EX_NOACTIVATE = 134217728

Field Value

long

WS_EX_NOINHERITLAYOUT

public const long WS_EX_NOINHERITLAYOUT = 1048576

Field Value

long

WS_EX_NOPARENTNOTIFY

public const long WS_EX_NOPARENTNOTIFY = 4

Field Value

long

WS_EX_NOREDIRECTIONBITMAP

public const long WS_EX_NOREDIRECTIONBITMAP = 2097152

Field Value

long

WS_EX_OVERLAPPEDWINDOW

public const long WS_EX_OVERLAPPEDWINDOW = 768

Field Value

long

WS_EX_PALETTEWINDOW

public const long WS_EX_PALETTEWINDOW = 392

Field Value

long

WS_EX_RIGHT

public const long WS_EX_RIGHT = 4096

Field Value

long

WS_EX_RIGHTSCROLLBAR

public const long WS_EX_RIGHTSCROLLBAR = 0

Field Value

long

WS_EX_RTLREADING

public const long WS_EX_RTLREADING = 8192

Field Value

long

WS_EX_STATICEDGE

public const long WS_EX_STATICEDGE = 131072

Field Value

long

WS_EX_TOOLWINDOW

public const long WS_EX_TOOLWINDOW = 128

Field Value

long

WS_EX_TOPMOST

public const long WS_EX_TOPMOST = 8

Field Value

long

WS_EX_TRANSPARENT

public const long WS_EX_TRANSPARENT = 32

Field Value

long

WS_EX_WINDOWEDGE

public const long WS_EX_WINDOWEDGE = 256

Field Value

long

Methods

CheckMenuItem(IntPtr, int, uint)

public static extern uint CheckMenuItem(IntPtr hmenu, int uIDCheckItem, uint uCheck)

Parameters

hmenu IntPtr
uIDCheckItem int
uCheck uint

Returns

uint

DefWindowProc(IntPtr, uint, UIntPtr, IntPtr)

public static extern IntPtr DefWindowProc(IntPtr hWnd, uint Msg, UIntPtr wParam, IntPtr lParam)

Parameters

hWnd IntPtr
Msg uint
wParam UIntPtr
lParam IntPtr

Returns

IntPtr

EnableMenuItem(IntPtr, int, uint)

public static extern bool EnableMenuItem(IntPtr hMenu, int uIDEnableItem, uint uEnable)

Parameters

hMenu IntPtr
uIDEnableItem int
uEnable uint

Returns

bool

GetACP()

public static extern uint GetACP()

Returns

uint

GetMenu(IntPtr)

public static extern IntPtr GetMenu(IntPtr hWnd)

Parameters

hWnd IntPtr

Returns

IntPtr

GetMenuItemInfo(IntPtr, int, bool, ref MenuItemInfo)

public static extern bool GetMenuItemInfo(IntPtr hmenu, int item, bool fByPosition, ref Win32.MenuItemInfo lpmii)

Parameters

hmenu IntPtr
item int
fByPosition bool
lpmii Win32.MenuItemInfo

Returns

bool

GetPrivateProfileInt(string, string, int, string)

public static extern int GetPrivateProfileInt(string lpAppName, string lpKeyName, int nDefault, string lpFileName)

Parameters

lpAppName string
lpKeyName string
nDefault int
lpFileName string

Returns

int

GetPrivateProfileSection(string, byte[], int, string)

public static extern int GetPrivateProfileSection(string lpAppName, byte[] lpszReturnBuffer, int nSize, string lpFileName)

Parameters

lpAppName string
lpszReturnBuffer byte[]
nSize int
lpFileName string

Returns

int

GetScrollInfo(IntPtr, int, ref ScrollInfo)

public static extern bool GetScrollInfo(IntPtr hwnd, int nBar, ref Win32.ScrollInfo scrollInfo)

Parameters

hwnd IntPtr

Handle to a scroll bar control or a window with a standard scroll bar, depending on the value of the nBar parameter.

nBar int

See Win32.ScrollInfoBar

scrollInfo Win32.ScrollInfo

See Win32.ScrollInfo

Returns

bool

GetWindowLong(IntPtr, int)

public static extern IntPtr GetWindowLong(IntPtr hWnd, int nIndex)

Parameters

hWnd IntPtr
nIndex int

Returns

IntPtr

GetWindowLongPtr(IntPtr, int)

public static extern IntPtr GetWindowLongPtr(IntPtr hWnd, int nIndex)

Parameters

hWnd IntPtr
nIndex int

Returns

IntPtr

ModifyMenu(IntPtr, int, uint, UIntPtr, IntPtr)

public static extern bool ModifyMenu(IntPtr hMenu, int uPosition, uint uFlags, UIntPtr uIDNewItem, IntPtr lpNewItem = default)

Parameters

hMenu IntPtr
uPosition int
uFlags uint
uIDNewItem UIntPtr
lpNewItem IntPtr

Returns

bool

MsgBoxDialog(IntPtr, string, string, uint)

public static extern Win32.DlgResult MsgBoxDialog(IntPtr hWnd, string lpText, string lpCaption, uint uType)

Parameters

hWnd IntPtr
lpText string
lpCaption string
uType uint

Returns

Win32.DlgResult

OutputDebugString(string)

public static extern void OutputDebugString(string lpOutputString)

Parameters

lpOutputString string

SendMessage(IntPtr, SciMsg, uint, int)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, uint wParam, int lParam)

Parameters

hWnd IntPtr
Msg SciMsg
wParam uint
lParam int

Returns

IntPtr

SendMessage(IntPtr, SciMsg, uint, IntPtr)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, uint wParam, IntPtr lParam)

Parameters

hWnd IntPtr
Msg SciMsg
wParam uint
lParam IntPtr

Returns

IntPtr

SendMessage(IntPtr, SciMsg, uint, string)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, uint wParam, string lParam)

Parameters

hWnd IntPtr
Msg SciMsg
wParam uint
lParam string

Returns

IntPtr

SendMessage(IntPtr, SciMsg, uint, StringBuilder)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, uint wParam, StringBuilder lParam)

Parameters

hWnd IntPtr
Msg SciMsg
wParam uint
lParam StringBuilder

Returns

IntPtr

SendMessage(IntPtr, SciMsg, UIntPtr, int)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, UIntPtr wParam, int lParam)

Parameters

hWnd IntPtr
Msg SciMsg
wParam UIntPtr
lParam int

Returns

IntPtr

SendMessage(IntPtr, SciMsg, UIntPtr, IntPtr)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, SciMsg Msg, UIntPtr wParam, IntPtr lParam)

Parameters

hWnd IntPtr
Msg SciMsg
wParam UIntPtr
lParam IntPtr

Returns

IntPtr

SendMessage(IntPtr, uint)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg)

Parameters

hWnd IntPtr
Msg uint

Returns

IntPtr

SendMessage(IntPtr, uint, uint)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam)

Parameters

hWnd IntPtr
Msg uint
wParam uint

Returns

IntPtr

SendMessage(IntPtr, uint, uint, ref LangType)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, ref LangType lParam)

Parameters

hWnd IntPtr
Msg uint
wParam uint
lParam LangType

Returns

IntPtr

SendMessage(IntPtr, uint, uint, MenuCmdId)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, MenuCmdId lParam)

Parameters

hWnd IntPtr
Msg uint
wParam uint
lParam MenuCmdId

Returns

IntPtr

SendMessage(IntPtr, uint, uint, int)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, int lParam)

Parameters

hWnd IntPtr
Msg uint
wParam uint
lParam int

Returns

IntPtr

SendMessage(IntPtr, uint, uint, out int)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, out int lParam)

Parameters

hWnd IntPtr
Msg uint
wParam uint
lParam int

Returns

IntPtr

SendMessage(IntPtr, uint, uint, IntPtr)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, IntPtr lParam)

Parameters

hWnd IntPtr
Msg uint
wParam uint
lParam IntPtr

Returns

IntPtr

SendMessage(IntPtr, uint, uint, string)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, string lParam)

Parameters

hWnd IntPtr
Msg uint
wParam uint
lParam string

Returns

IntPtr

SendMessage(IntPtr, uint, uint, StringBuilder)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, uint wParam, StringBuilder lParam)

Parameters

hWnd IntPtr
Msg uint
wParam uint
lParam StringBuilder

Returns

IntPtr

SendMessage(IntPtr, uint, UIntPtr, int)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static IntPtr SendMessage(IntPtr hWnd, uint Msg, UIntPtr wParam, int lParam)

Parameters

hWnd IntPtr
Msg uint
wParam UIntPtr
lParam int

Returns

IntPtr

SendMessage(IntPtr, uint, UIntPtr, IntPtr)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, UIntPtr wParam, IntPtr lParam)

Parameters

hWnd IntPtr
Msg uint
wParam UIntPtr
lParam IntPtr

Returns

IntPtr

SendMessage(IntPtr, uint, UIntPtr, out IntPtr)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, UIntPtr wParam, out IntPtr lParam)

Parameters

hWnd IntPtr
Msg uint
wParam UIntPtr
lParam IntPtr

Returns

IntPtr

SendMessage(IntPtr, uint, UIntPtr, string)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam)

Parameters

hWnd IntPtr
Msg uint
wParam UIntPtr
lParam string

Returns

IntPtr

SendMessage(IntPtr, uint, UIntPtr, StringBuilder)

You should try to avoid calling this method in your plugin code. Rather use one of the gateways such as ScintillaGateway or NotepadPPGateway.

public static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, UIntPtr wParam, StringBuilder lParam)

Parameters

hWnd IntPtr
Msg uint
wParam UIntPtr
lParam StringBuilder

Returns

IntPtr

SetMenuItemInfo(IntPtr, int, bool, MenuItemInfo)

public static extern bool SetMenuItemInfo(IntPtr hmenu, int item, bool fByPosition, Win32.MenuItemInfo lpmii)

Parameters

hmenu IntPtr
item int
fByPosition bool
lpmii Win32.MenuItemInfo

Returns

bool

SetWindowLong(IntPtr, int, IntPtr)

public static extern IntPtr SetWindowLong(IntPtr hWnd, int nIndex, IntPtr dwNewLong)

Parameters

hWnd IntPtr
nIndex int
dwNewLong IntPtr

Returns

IntPtr

SetWindowLongPtr(IntPtr, int, IntPtr)

public static extern IntPtr SetWindowLongPtr(IntPtr hWnd, int nIndex, IntPtr dwNewLong)

Parameters

hWnd IntPtr
nIndex int
dwNewLong IntPtr

Returns

IntPtr

WritePrivateProfileSection(string, string, string)

public static extern long WritePrivateProfileSection(string section, string val, string filePath)

Parameters

section string
val string
filePath string

Returns

long

WritePrivateProfileString(string, string, string, string)

public static extern bool WritePrivateProfileString(string lpAppName, string lpKeyName, string lpString, string lpFileName)

Parameters

lpAppName string
lpKeyName string
lpString string
lpFileName string

Returns

bool