Windows Socket API usage experienceThis article is some of my experiences in MS-windows and HP-UNIX network programming. It is for your reference only. If the socket function mentioned in this article is not specifically described, it refers to the Windows Socket API.1. wsas
Okay, I have encountered a windows api bug...
In the beginning, the program uses CInternetSession to open a Session, and then uses OpenUrl to open a CHttpFile file. This program has been working very well and can be downloaded as long as ie can access the Internet. If a proxy server is used, you only need to set it in ie. If the proxy server requires a password, you only need to first access the page in ie
The Windows API function library is too large for people who lack basic Windows development knowledge, so they cannot get started. In fact, you only need to know about its basic module functions. Specific instances can be used to refer to the development documentation, so as to gradually accumulate.Three common modules are user32.dll, kernel32.dll, and gdi32.dll.
In Windows API, the string corresponds to the pchar (pansichar) of Delphi. In API, the string of Delphi is flexible.
Assign values first:
// Assignment Method 1: Give begin setwindowtext (handle, 'newtitle'); end;
// Assignment Method 2: define the type var P: pchar; begin P: = 'newtitle'; setwindowtext (handle, P); end;
// Value assignment meth
Introduction:
API Interception is not a new technology. Many commercial software use this technology. There are two methods to intercept Windows API functions. The first one is Mr. jeffrey Richter's module input section for modifying the EXE file. This method is safe, but complicated. In addition, some EXE files do not have a list of DLL input symbols, blocking
# Include # Include # Include # Include /*Author: Yuan WenTime: 2007-12-28E-mail: wenwen227@126.comDebugging environment: Windows XP + Dev-C ++Function: common Windows API learning practices1. Folder selection dialog box2. Implementation of folder Traversal3. How to display large filesBrief Introduction:Traverse all files and folders in a specified folderIf no fo
Library specifies the library file to be linked when the program is linked. You can set the project or use # pragma comment (Lib, "XXX. lib ") pre-compiled commands to implement links to the library files.
Microsoft has also improved GDI and provided a class-based Application Programming Interface (GDI. This interface is intended for C/C ++ users.
1. Precautions for calling windowsapi
As mentioned above, windowsapi is implemented through the dynamic link library output function, when an applica
Windows API function getprocaddress is widely used to obtain the function pointer address. For example:
Typedef bool (winapi * pfngetproductinfo) (DWORD, pdword );
Pgpi = (pfngetproductinfo) getprocaddress (getmodulehandlew (L "kernel32.dll"), "getproductinfo ");
Note that the function defines the winapi in typedef, which specifies the function call protocol. This part is very necessary and critical. Pay
This article is some of my experiences in MS-windows and HP-UNIX network programming. It is for your reference only. If the socket function mentioned in this article is not specifically described, it refers to the Windows Socket API. 1. The wsastartup function int wsastartup (word wversionrequested, lpwsadata); the socket program must call the wsastartup function
C # windows api call example,
Here is the running result:
Using System; using System. runtime. interopServices; using System. windows. forms; namespace HoverTreeWinForm {public partial class FormHewenqi: form {//
Reprinted from: http://hovertree.com/h/bjaf/psjdasa2.htm
Source code download: http://pan.baidu.com/s/1bnPPgL5
Http://roucheng.cnblogs.com/
In the prec
Package Preparationnlpir/ictclas2014 Word breaker Download packageDev-c++Operating system windowsAfter unpacking the word breaker download package seeWhat is needed here in Windows is data, NLPIR.h in include, Win32 NLPIR.libNLPIR.dll in LIB, and how to use the file for later.Create a new project in Dev C + +Copy the above data, NLPIR.h, NLPIR.lib, NLPIR.dll to the project Nlpir working directory,Right-click Nlpir-> Project PropertiesIn the "Parameter
This article mainly introduces the Windows API on the operation of the Registry experience and summary, this article explains the reading of the registry commonly used functions and a registry operation instance, the need for friends can refer to the
Reading functions commonly used in the registry
RegOpenKeyEx is used to open a key
RegSetValueEx is used to set the key value of a key
RegQueryValueEx the
In the previous article I highlighted the basic structure of the Windows API32 program, do you want to complete your first Windows program? Don't be busy. Let me first introduce you to the API window function, which you can program only if you understand it.
What is a window function? What does it define? The window function defines the response of the applicati
In fact, if you have studied C language, use stdio.h directly.The middle function is the simplest, that is, the use of fopen ("Xxxx.xxx", "RB"); and then call Fread/fwrite; Call Fclose when you close it.If you use CreateFile in the Windows Native API, you do not need to differentiate what binary is not binary, as long as the return value of this function is not invalid_handle_value, you can continue to use
Original address:http://blog.163.com/cumt_xl/blog/static/19071504420136911838683/Q:What is a top-level window?a: a top-level window is a window, which is not child, i.e. it had not ws_child style set.Notes
Unlike the child Windows, a top-level window can be displayed anywhere on the screen;
Many definitions state, a top-level window is "A window This has no parent";That's correct but can leads in a confusion:many people think the every wind
Windows API one-day training (93) getsavefilename Function
The previous section describes how to open the Select File Read dialog box. When the software you design requires users to choose to save the file, they need to select their desired file name to save it. Then you need to use the save file dialog box, that is, the API function getsavefilename. The followi
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.