Private const int sw_hide = 0;1. Add API function namespaceUsing system. runtime. interopservices;
2. Statement
Private const int sw_shownormal = 1;Private const int sw_showminimized = 2;Private const int sw_showmaximized = 3;Private const int
Provides various official and user-released code samples for reference. You are welcome to exchange and learn * dynamic instantiation Class Libraries
* Original $ page = new \ Common \ Api \ Page ('A', 'B ');
* Now you only need $ page = Api
1. network functions of ApisWNetAddConnection creates a permanent connection to the same network resourceWNetAddConnection2 create a connection to the same network resourceWNetAddConnection3 create a connection to the same network
We can use the CreateProcess API function to create the corresponding process. The prototype of this function is as follows:
CreateProcess (
Lpcwstr lpszimagename, // pointer to an executable module
Lpcwstr lpszcmdline, // pointer to the executable
Common APIs and functions of LinuxC programming-General Linux technology-Linux programming and kernel information. for details, refer to the following section. Linux C Programming
1-character testing
2 String conversion
3. memory control
4. date
Closehandle
Closes a kernel object. This includes file, file ing, process, thread, security, and synchronization objects.
Comparefiletime
Compare the time of two files
Copyfile
Copy a file
Combinergn
Combine two regions into a new region
Combinetransform
Drive World conversion. It is equivalent to two conversions in order
Createcompatibledc
Create a memory device scenario consistent with a
6. menu functions of ApisAppendMenu adds a menu item to the specified menuCheckMenuItemCheckMenuRadioItemCreateMenu create a menuCreatePopupMenu: Create an empty pop-up menuDeleteMenu: delete a specified menu entryDestroyMenuDrawMenuBar is used to
There are two ways to invoke the API: the first is to use declare API calls,
Declare Function publicname Lib "Libname" [alias "Alias"]
[[[[ByVal] variable [as type]
[, [ByVal] Variab Le [as type]] ...] As TypeA function indicates a return value, or
Function
To set a shortcut key, you must use the two methods below user32.dll.BOOL RegisterHotKey (//Registration system Hotkey API functionHWND hwnd,int ID,UINT Fsmodifiers,UINT VK);BOOL Unregisterhotkey (//removal of System Hotkey API functionHWND
HTML5 provides some very powerful JavaScript and HTML APIs to help developers build wonderful desktop and mobile applications. This article will introduce five new types of APIS, hoping to help your development work.
1. Full Screen API)
This API
C # No category for playing audio files such as MP3. You need to compile audio files such as MP3 for playing. Program Third-party controls or classes must be used. This article uses the API function mcisendstring to compile a class for playing audio
10. Hardware and system functions of ApisActivateKeyboardLayoutActivate a new keyboard layout. The keyboard layout defines the position and meaning of keys on a physical keyboard.
Beep is used to generate simple soundCharToOem converts a string from
BSTR sysallocstring (olechar far *
SZ
);Allocate BSTR from olechar. To avoid unexpected results, do not use BSTR as the sz parameter unless you are sure it does not contain the embedded null characters.
BSTR sysallocstringbytelen (char far
1. Add
IntCombobox_addstring (
Hwnd hwndctl, // window handle
Lpctstr lpsz // content to be added
);
The difference between the two lies in the second parameter: one can add content to the specified position, and the other cannot.
2. Determine the
Using system;Using system. runtime. interopservices;
Namespace consoleapplication1{/// /// Summary of class1./// Class class1{/// /// Main entry point of the application./// ///[Dllimport ("user32.dll")]Public static extern int MessageBox (int h,
Recently, I encountered a simple problem: how to use the. Net program to pop up the optical drive?One search on the Internet is an answer:Mcisendstring ("set cdaudio door open wait", null, 0, null );What is MCI? Is a media control interface. So this
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.