forked from fdorg/flashdevelop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWinAPI.cs
More file actions
23 lines (17 loc) · 718 Bytes
/
Copy pathWinAPI.cs
File metadata and controls
23 lines (17 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Runtime.InteropServices;
using ScintillaNet.Enums;
namespace ScintillaNet
{
public class WinAPI
{
[DllImport("kernel32.dll")]
public extern static IntPtr LoadLibrary(string lpLibFileName);
[DllImport ("user32.dll")]
public static extern IntPtr CreateWindowEx(uint dwExStyle, string lpClassName, string lpWindowName, uint dwStyle, int x, int y, int width, int height, IntPtr hWndParent, int hMenu, IntPtr hInstance, string lpParam);
[DllImport("kernel32.dll", EntryPoint = "SendMessage")]
public static extern int SendMessageStr(IntPtr hWnd, int message, int data, string s);
[DllImport("user32.dll")]
public static extern IntPtr SetFocus(IntPtr hwnd);
}
}