C # common APIs for creating plug-ins

Source: Internet
Author: User

Using System;
Using System. Collections. Generic;
Using System. Text;
Using System. Runtime. InteropServices; // This Must Be

Namespace WindowsApplication1
{
Class win32API
{
Public const int OPEN_PROCESS_ALL = 2035711;
Public const int PAGE_READWRITE = 4;
Public const int PROCESS_CREATE_THREAD = 2;
Public const int PROCESS_HEAP_ENTRY_BUSY = 4;
Public const int PROCESS_VM_OPERATION = 8;
Public const int PROCESS_VM_READ = 256;
Public const int PROCESS_VM_WRITE = 32;

Private const int PAGE_EXECUTE_READWRITE = 0x4;
Private const int MEM_COMMIT = 4096;
Private const int MEM_RELEASE = 0x8000;
Private const int MEM_DECOMMIT = 0x4000;
Private const int PROCESS_ALL_ACCESS = 0x1F0FFF;




// Find the form
[DllImport ("User32.dll", EntryPoint = "FindWindow")]
Public extern static IntPtr FindWindow (
String lpCla

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.