windows api book

Learn about windows api book, we have the largest and most updated windows api book information on alibabacloud.com

Delphi-getusernameex (Learn about exporting the Windows API, and the use of array char to act as a buffer, the subscript must start from zero)

(* * author:http://www.michael-puff.de * date:2006-03-29 * license:public DOMAIN *)functionGetUserNameEx (Nameformat:dword; lpnamebuffer:lpstr;varNsize:dword): Boolean;stdcall;External' Secur32.dll 'Name' Getusernameexa ';functionGetloggedonusernameex (Fformat:dword;varUsername:string): DWORD;ConstNameunknown =0;//Unknown name type. NAMEFULLYQUALIFIEDDN =1;//Fully qualified distinguished nameNamesamcompatible =2;//Windows nt®4.0 account nameNamedispla

Windows API learns to synchronize---threads with kernel objects

Boolean value to True, indicating that the object has been notified.If you are writing code that checks whether a process is still running, you only need to call a function to let the operating system check the Boolean value of the Process object, which is very simple. You may also want to tell the system to put the thread into a wait state, and then automatically wake the thread when the Boolean value is from False to true. In this way, you can write a code in which the thread in the parent pr

Windows API Settings window under control Enable property

Reference page:Http://www.yuanjiaocheng.net/entity/update-entity-graph.htmlHttp://www.yuanjiaocheng.net/ASPNET-CORE/first.htmlHttp://www.yuanjiaocheng.net/ASPNET-CORE/asp-net-core-overview.htmlHttp://www.yuanjiaocheng.net/ASPNET-CORE/asp.net-core-environment.htmlHttp://www.yuanjiaocheng.net/ASPNET-CORE/newproject.htmlRelated Interfaces C # interop marshaling [DllImport("user32.dll")] unsafe public static extern bool UpdateWindow(IntPtr hWnd);//更新窗口 [DllImport("user32.dll")] unsafe pu

Windows Socket API usage experience)

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. wsastartup Function IntWsastartup (word wversionrequested, lpwsadata ); Use SOCKETProgramBefore using socket, you must

One-day Windows API training (38) setwindowpos Function

One-day Windows API training (38) setwindowpos Function One day, the user suddenly said to me, can you put this window at the top, it is very inconvenient to operate and open the file. This function requires changing the properties of the window. For example, when you use QQ, there is a function that sets the QQ window to the top, no matter what window you choose, the QQ interface will always be at the top.

Windows API one-day training (90) getglyphoutline Function

Windows API one-day training (90) getglyphoutline Function Because of the differences between Chinese and western cultures, the processing in electronic information is also very different. In English, only 26 letters are needed to display all the articles, in Chinese, more than 2000 basic characters are required. For some characters to be displayed in embedded software, you have to manually construct all t

How to use Windows Api AlphaBlend

look at the Alpha Blend formula:Color = (SRCRGB * srcalpha) + (DESTRGB * (1-srcalpha))WHERE (SRCRGB * srcalpha) This step is in the rendering, or before loading can be calculated, the image re-refresh rendering, you can directly use the calculated pre-multiply alpha value, instead of calculating this step multiplication, The rendering speed is thus added. Therefore, an image that contains an alpha channel normally needs special processing to render to DC using AlphaBlend.How do you pre-multiply

Windows API Programming-----DLL Programming prohibit loading yourself

system space and is meaningless. A dynamic-link library is always loaded into an address in the process, which is the module handle of the dynamic-link library, which differs from the process instance handle, which is an offset from the process ingress address, and can only be addressed to various windows or other resources nested within the dynamic-link library through a module handle.The Ul_reason_for_call parameter indicates the condition under wh

List of new API functions for Windows XP

SetfileshortnameConvertfibertothreadCreatefiberexDuplicateencryptioninfofileEnumgeoinfoprocEnumsystemgeoidGetconsoledisplaymodeGetconsolefontsizeGetconsoleprocesslistGetconsoleselectioninfoGetcurrentconsolefontGetgeoinfoGetlayeredwindowattributesGetmodulehandleexGetnativesysteminfoGetnumaavailablememorynodeGetnumahighestnodenumberGetnumanodeprocessormaskGetnumaporcessornodeGetrawinputbufferGetrawinputdataGetrawinputdeviceinfoGetrawinputdevicelistGetregisteredrawinputdevicesGetsystemwow64director

Windows Path Operations API functions

network path.Pathisprefix Determines whether the path contains the specified prefixPathissameroot Determine if the path has the same root directoryPathisslow Determine if the path is a highly deferred network connectionPathissystemfolder Determine if the path has a system attribute (attributes can be set by itself)whether the Pathisunc path is a UNC format (network path)whether the Pathisuncserver path is a UNC serverWhether the PathIsUNCServerShare path is only a UNC shared path formatPathisur

Windows API Threads

1. Define the entry functionstatic void ThreadFunc (void);//Declare inside TestDlg.hvoid Ctestdlg::threadfunc (void)//defined in TestDlg.cpp{Sleep (1000);AfxMessageBox (_t ("ok!"));}2. Define the thread handle:HANDLE Hthread; Thread handle3. Get the thread handle:Function Prototypes:Static HANDLE CreateThread ( lpsecurity_attributes lpsa,//access level DWORD dwstacksize,//stack size Lpthread_start_     ROUTINE pfnthreadproc,//thread function void* pvparam,//function pass parameter DWOR

One-day Windows API training (9) windowproc and defwindowproc Functions

In Windows, when the window is displayed, it can receive a steady stream of messages from the system, and then the window needs to process these messages, therefore, a function is required to process these messages. The API defines a function as a callback function. When the system needs to send a message to the window, it calls the callback function windowproc provided by the window. If the windowproc func

Windows API one-day training (84) flushinstructioncache Function

Windows API one-day training (84) flushinstructioncache Function General programs are compiled before running, so there are few opportunities to modify commands, but there are a lot of use in the anti-validation solution of the software. After modifying the command, how can I let the CPU execute the new command? In this way, you need to use the flushinstructioncache function to overwrite the data in the ca

Function hooks for any process in Windows XP operating system-API hook

Shaoji (Machine of cahua Shusheng) 12:17:56 on VC/MFC/ Process/thread/DLLQuestion API hook cainiao: Windows XP operating system function hook -------------- Hook any function of any process Step 1: Prepare the tool 1. VC ++ development tools; 2. Microsoft Research detours package (version 1.5) includes detours. h and detours. Lib. Step 2: implementation 1. Inject the DLL to the target process. For example:

Ruby Study: watir error: uninitialized constant windows: API: Error

I installed a watir myself. When I tried the sample, the uninitialized constant windows: API: Error always appeared. This error is returned. Google, find someone and say it's okay to update Win32 utils gem. The specific cause is unknown. Solution: { This. style. display = 'none'; document. getelementbyid ('Code _ closed_text_213243 '). style. display = 'none'; document. getelementbyid ('Code _ open_im

One-day Windows API training (88) enumprocesses Function

One-day Windows API training (88) enumprocesses Function What if an error occurs when the software you developed runs on the user? Of course, you want to generate a report for the running environment information in case of an error, and then email it back to view it. Here we will introduce a function that can locate all the processes in the runtime environment and output the information of each process. Of

How to install MySQL and use its c API in Windows

This section describes how to install MySql in windows and some basic applications. It also describes how to use its Capi. 1. install and use MySQL. 1. Install MySQL and MySQL. 2. Start MySQL, enter C:/MySQL/bin, and click winmysqladmin. When you first enter MySQL, you must enter the user name and password to generate the my. ini file in the system directory. Therefore, you must search for my. ini and delete it when uninstalling MySQL, so that it will

* Proficient in Windows API 5.4.2 allocate and release readable and writable virtual memory pages

/**************************************《 Proficient in Windows API * Sample Code * virtual. C * 5.4.2 allocate and release readable and writable virtual memory pages **************************** * ******** // * header file */# include

C # Runtime mouse Move Control-Invoke Windows API (releasecapture)

[System.Runtime.InteropServices.DllImport ("user32.dll")] Public Static extern BOOLSendMessage (INTPTR hwnd,intWmsg,intWParam,intLParam); [System.Runtime.InteropServices.DllImport ("user32.dll")] Public Static extern BOOLreleasecapture (); Private voidMovecontrol (Control sender, MouseEventArgs e) {if(E.button = = MouseButtons.Left E.clicks = =1) {releasecapture (); SendMessage (sender. Handle,161,2,0); SendMessage (sender. Handle,0x0202,0,0); } Else {

Windows network Programming notes WinSocket API CSocket casyncsocket__ Programming

MFC's support for socket programming is quite sufficient, but its documentation is vague. So that most of the features written by VC slightlyComplex network programs, or using APIs. Therefore CAsyncSocket and csocket in fact become problematic, the masses more respectful distance. More thanGood people also, can not bear the waste of resources, specially for the annotation. Friends about blocking, non-blocking, and so on is not very credible. ====================================================

Total Pages: 12 1 .... 8 9 10 11 12 Go to: Go

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.