Win32 API Function List 2 (a bit messy format)

zhaozj2021-02-16  123

Xu Zhaoyuan, Xi'an University of Posts and Telecommunications

301 EnddeferWindowPOS Update Window The Location and Size Function: This function updates the location and size of one or more windows simultaneously in a single screen refresh cycle.

Function prototype: BOOL EnddeferWindowPos (HWND HWINPOSIINFO);

parameter;

HWLNPOSLNFO: Points the handle of the multi-window positioning structure that includes one or more windows of size and positioning information. This internal structure is returned by the BegindeferWindowPos function or is returned by the DEFERWINDOWPOS function last call.

Return value: If the function is successful, the return value is non-zero: if the function fails, the return value is zero. To get more error messages, call the getLastError function.

Remarks; EnddeferWindowPos functions sends WM_WindowPosChangeing and WM_WindowPosChanged messages to each window specified by the internal structure.

Quick check: Windows NT: 3.1 or above; Windows: 95 or above; Windows CE: Does not support: header file: Winuser.h; library file: user32.lib.

"YES YES YES302 EndDialog Hide Dialog" function function: This function clears a modal dialog and causes the system to abort any processing of the dialog.

Function prototype: BOOL EndDialog (HWND HDLG, INT NRESULT);

parameter:

HDLG: Indicates the dialog window to be cleared.

NResult: Specifies the value that returns from the creation dialog function to the application.

Return value: If the function call is successful, the return value is a non-zero value; if the function call fails, the return value is zero. If you want to get an error message, please call the getLastError function.

Note: Dialog Boxes created by Dialogbox, DialogBoxParam, DialogboxlndirectParam Functions must be cleared with the EndDialog function. The application is called from the dialog application to call the EndDialog function, which cannot be used for other purposes. The dialog application can call the EndDialog function at any time; even during the WM_INITDIALOG message processing. If the application calls this function during the WM_INTDIALOG message processing, the dialog is cleared before the display and input focus are set. The EndDialog function does not immediately clear the dialog. Instead, set a flag and allow the dialog application to return the control back to the system. The system detects the logo before trying to search the next message from the application queue. If the flag has been set, the system abort message loop, clear the dialog, and use the value in the NRESULT as the value returned from the creation dialog.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windowsce: 1.0 and above; header file: winuser.h; library file: user32.lib.

"Yes Yes Yes303 EndDoc the end of the print job Yes Yes Yes304 EndDocPrinter the end of the print job No Yes Yes305 EndPage the end of a Yes Yes Yes306 EndPagePrinter the end of the printed page No Yes Yes307 EndPaint in the specified picture window closing tag end symbol Yes Yes Yes308 EndPath path No Yes Yes309 EndUpdateresource ends the resource update in the executable: This function terminates the resource update in the executable. Function prototype: BOOL endupdateresource (Handle Hupdate, Bool Fdiscard);

parameter:

HUPDATE: Handle used for resource updates. This handle returns through the BeginUpdateresource function.

FDISCARD: Used to explain whether to write to the resource update content to the executable. If this parameter is true, there is no change in the executable; if this parameter is false, it is written in the executable.

Return Value: If the function is running success, and by calling the constant resource correction content specified by the Updateresource function, the return value is non-zero. If the function is running, its return value is zero. If you want to get more error messages, call the getLastError function.

Quick check: Windows NT 3.1 or above, header file: WinBase.h; library file: kernel32.lib, unicode: UNICODE and ANSL are implemented on Windows NT.

"No Yes Yes310 EnterCriticalSection added critical part No Yes Yes311 EnumCalendarInfo No Yes Yes312 EnumChildWindows sub-window handle passed to the callback function returns No Yes Yes313 EnumClipboardFormats CLIPBOARD format Yes Yes Yes314 EnumDateFormats local enumeration data format specified No Yes Yes315 EnumDependentServices enumerated device dependent the service No Yes Yes316 EnumDesktopWindows No Yes Yes317 EnumDesktops No Yes Yes318 EnumEnhMetaFile with enhanced metafile return GDI calls No Yes Yes319 EnumFontFamilies returns the specified font family No Yes Yes320 EnumFontFamiliesEx returns the specified font family No Yes Yes321 EnumFonts enumeration specifies on the device No Yes Yes322 EnumForms font enumeration of supported printers form No Yes Yes323 EnumICMProfiles enumeration of available color distribution No Yes Yes324 EnumJobs acquire the print job information No Yes Yes325 EnumMetaFile return GDI calls No Yes Yes326 EnumMonitors with WINDOWS metafile enumeration available No Yes Yes327 EnumObjects enumerated monitor device context in the pen and brush No Yes Yes328 EnumPorts enumerate available printers ports No Yes Yes329 EnumPrintProcessorDatatypes enumerated data types supported by the printer No Yes Yes330 EnumPrintProcessors enumerate installed printer processor No YES YES331 EnumprinterDrivers Enumeration Setup Printer Driver No Yes Yes332 EnumprinterPropertySheets No Yes Yes333 Enumprinters No Yes Yes333 ES334 Enumps Return Window Properties Table Columns Function: This function enumerates all items in the window properties table, transfer to the specified callback function, or the callback function returns false. Function prototype: int enumprops (hwnd hwnd, proPenumproc lpenumfunc);

parameter:

HWnd: Points to the window to list the contents of the property table.

LpenumFunc: Pointer to the callback function. For more information on the callback function, refer to the ProPenumProc function.

Return Value: The return value specifies the last value returned by the callback function. If the function does not find the attribute to be listed, then it returns -1.

Remarks: The application can only delete those properties they increase. It cannot delete other applications to add or the properties of the system itself.

Speed: Windows NT: 3.1 above: Windows: 95 or above; Window CE: Does not support; header file: winuser.h; library file: user32.lib; unicode: In the Windows NT environment, Unicode and ANSI version are implemented.

"No Yes Yes335 Enumpsex Return Window Properties" function: This function enumerates all items in the window attribute table, sequentially transmits the specified callback function until the last item is listed, or the callback function returns false. Function prototype: int enumpropsex (hwnd hwnd, propenumprocex lpenumfunc, lparam iParam);

parameter:

HWnd: Points to the window to list the contents of the property table.

LpenumFunc: Pointer to the callback function. More information about the target function, refer to the PropenumProcex function.

IParam: Contains data defined by the application, data to be transmitted to the callback function.

Return Value: The return value specifies the last value returned by the callback function. If the function does not find the properties to be listed, then it returns -1.

Remarks: The application can only delete those properties they increase. It cannot delete other applications to add or systematically have properties.

Quick check: Windows NT: 3.1 or above; Windows: 95 or above; Windows CE: No support: Header file: WinSer.h; library file: user32.lib: Uric0d6: In the Windows NT environment Unicode and ANSI version.

"No Yes Yes336 EnumResource" Lists Language Resources "function function: This function is the resource search module for each specified type and name, and passes the search to each resource language to the defined callback function.

Function prototype; BOOL ENUMRESOURCELANGUAGES (HModule Hmodule, LPCTSTSTR LPTYPE, LPCTSTSTHNGPROC LPENUMFUNC, Long LPARAM);

parameter:

HModule: Processing modules that contain executables that are listed in the language resource. If this parameter is null, the function will list the language resources that create the current process in the module.

LPTYPE: Points to strings with null as the end of the character, which specifies the type of language resource listed. As a standard type, this parameter has the meaning of ENUMRESLANGPROC / LPTYPE.

LPNAME: Points to strings with null as the end of the end, which specifies the listed language resource name.

LpenumFunc: Points to the response function for each listed language resource. For more information, see

ENUMRESLANGPROC.

LPARAM: Specifies a request definition parameter value to pass to the response function, this parameter can be used to check.

Return Value: If the function is running successfully, return a non-zero value; if the function is running fails, the zero value is returned. To get more error messages, call the getLastError function.

Note: The EnumResourceLanguages ​​function will continue to list the language resources until the response function returns a FALSE value or all language resources are listed.

Speed ​​check: Windows NT 3.1, Windows 95 or more, header file: winbase.h; library file: kernel32.lib; Unicode: Different versions of Unicode and ANSI are implemented on Windows and WinAows NT.

"No Yes Yes337 EnumResourceNames Lists Resource Name" function: This function is a resource search module for each specified type and passes each finding resource name to the callback function. Function prototype: Bool EnumResourceNames (Hinstance Hmodue, LPCTSTSTR LPSZTYPE, ENUMRESNAMEPROC LPENUMFUNC, Long LPARAM)

parameter:

HModule: Processing modules that contain executables that are listed in the name of the resource name. If this parameter is null, the function will list the resource name of the current process in the module.

LPSZTYPE: Points to strings with null as ending, which specifies the name of the resource type listed. As a standard type, this parameter has the meaning of ENUMRESLANGPROC / LPSZTYPE.

LpenumFunc: Points to the response function of the resource name that you need. For more information, see EnumResNameProc.

LPARAM: Specifies a request definition parameter value to pass to the response function, this parameter can be used to check.

Return Value: If the function is running successfully, return a non-zero value; if the function is running, the zero value is retracted. If you want to get more error messages, call the getLastError function.

Note: The function will continue to list the resource name until the response function returns a FALSE value or all resource names are listed.

Speed ​​check: Windows NT3.1, Windows 95 or more, header file: winbase.h; library file: kernel32.lib; unicode: Double version of Unicode and ANSI on Windows and Windows NT.

"No Yes Yes338 EnumResourceTypes List Resource Type" function feature: This function is the resource search module and passed to each resource type it finds to the user-defined callback function.

Function prototype: BOOL EnumResourceTypes (HModule HModule, EnumrestyProc LpenumFunc, Long LPARAM);

parameter:

HModule: Processing modules that contain executables that are listed in the resource type. If this parameter is null, the function will list the resource type of creating the current process in the module.

LpenumFunc: Point response functions for the required resource types that you need. For more information, see

EhumResNameProc.

LPARAM: Specifies the application definition value to the response function.

Return Value: If the function is running successfully, return a non-zero value; if the function is running fails, the zero value is returned. If you want to get more error messages, call the getLastError function.

Note: The function will continue to list the resource name until the response function returns a FALSE value or all resource names are listed.

Quick check: Windows NT 3.1, Windows 95 or more, header file: winbase.h; library file: kernel32.lib; Unicode: Different versions of Unicode and ANSI on Windows and Windows NT.

"Service No Yes Yes340 EnumSystemCodePages enumeration No Yes Yes339 EnumServicesStatus enumerate SC Manager database of available installed system code page No Yes Yes341 EnumSystemLocales enumerate the installed system locally No Yes Yes342 EnumThreadWindows return clues window" Function: The The function enumerates all non-sub-windows associated with a thread. The way is to pass the handle to each window and then transfer to the application defined callback function. The EnumThreadWindows function continues until all window enumerations or the callback function returns false. To enumerate all sub-windows of a particular window; use the EnumChildWindows function. "No Yes Yes343 EnumTimeFormats enumeration local time format specified No Yes Yes344 EnumWindowStations No Yes Yes345 EqualPrefixSid check SLD two prefixes are equal No Yes Yes346 EqualRect waiting to determine whether two-phase rectangular Yes Yes Yes347 EqualRgn comparing two regions are equal Yes Yes Yes348 EqualSid inspection two SLD security ID for equality No Yes Yes349 EraseTape delete tape specified segment No Yes Yes350 Escape to allow access to the device Yes Yes Yes351 EscapeCommFunction send extended COMM function Yes Yes Yes352 ExcludeClipRect change cropping area Yes Yes Yes353 ExcludeUpdateRgn exclusion update region Yes Yes from the cut area Yes354 ExitProcess to exit the current process No Yes Yes355 ExitThread exit the current trail No Yes Yes356 ExitWindows closed WINDOWS Yes Yes Yes357 ExitWindowsEx closed WINDOWS No Yes Yes358 ExpandEnvironmentStrings expanded environment variable string No Yes Yes359 ExtCreatePen establish a logical brush No Yes Yes360 ExtCreateRegion from the establishment of a regional data No Yes Yes361 ExtEscape region allowing access to the private equipment No Yes Yes362 ExtFloodFill region filled with the current brush Yes Yes Yes363 ExtSelectClipRgn select an area as a trimming area No Yes Yes364 ExtTextOut output string Yes Yes Yes365 ExtractAssociatedIcon a rectangular area from the EXE file or an associated Get the icon handle "function function; the function returns the index icon existing in the file or the icon handle exists in the associated executable.

Function prototype: HiCon Extractassociated (Hinstance Hinst, LPTSTSTSTSTSTSTSTSTSTSTS); Parameters:

Hinst: Specifies the example of the application that calls the function.

LPICONPATH: The full name path of the icon file and the file name of the file name, the function extracts the icon handle from the file or the executable of the executable associated with the file. If the target handle is obtained from the executable, the function stores the full name path of the executable file to the string specified by LPiconPath.

LPIICON: Specifies the word pointer to the index of the target handle to be acquired; if the icon handle is obtained from the executable, the function stores the icon identifier to the word specified by the LPIICON.

Return Value: If the function is successful, the return value is a valid icon handle. If the icon comes from the associated executable, the function stores its full name path and file name into the string specified by LPiconPath and stores the figure identifier in the word specified by LPIicon. If the function failure return value is NULL. Remarks: The extractassociated, first lookup index icon specified by LPICONPATH, if the function does not get the icon handle from the file, and the file has an associated executable, it searches for icons from the executable. The associated file-based extension is stored in the registry of each user and can be defined by the associated commands in the Explorer.

Speed: Windows NT: 3.5 and above; Windows: 95 and above; Windows CE: Does not support: header file: shellaoi.h; library file: shell32.lib; unicode: Unicode and ANSI on Windows NT Specimen.

"No Yes Yes366 Extractic" Returns the icon "function function from the executable" function: This function restores the icon handle from a limited executable, dynamic link library (DLL); or icon file. Use the extractlconex function to recover large or small icon handles.

Function prototype: Hicon Extracticon (Hinstance Hinst, LPCTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSZEXEFILENAME, UINT NICONDEX);

parameter:

HinST: Call the exemplary handle of the application of the function.

LPSZEXEFILENAME: The empty end string pointer representing the file name of the executable file, the DLL, or the icon file.

NICONINDEX: Specifies the resume icon to generate zero-based index. For example, if the value is 0, the function returns the handle of the first icon in a defined file, such as the value is the O function returns the total number of icons in the defined file; if the file is the number of executable file or DLL return value is RT_GROUP_ICON resource: If The file is a .ico file, the return value is 1; in Windows 95, WindowsNT4.0, and later, if the value is not equal to the negative number to -L, the function returns a defined file icon handle, the resource identifier of the file is equal to NICONINDEX Absolute value. For example, use -3 to acquire an icon of the resource identifier 3. For the icon for obtaining the resource identifier, the ExtracticOnex function can be used.

Return Value: The return value is an icon handle. If the qualified file is not executable, the DLL, or the icon file is returned to be 1; if there is no icon in the file, the return value is NULL.

Note: You must call the Destroyicon function to clear the icon handle returned by the extracticon function.

Quick check: Windows NT: 3.1 and above; Windows: 95 and above; Windows CE: does not support; header file: shellapi.h; library file: shell32.lib; unicode: Uneicode and ANSIs are implemented on Windows NT Specimen.

"NO YES YES367 Extracticone" Returns the icon "function function from the executable" function: This function generates a setup executable; Dynamic Library (DLL), or the icon file generated in the icon file. Function prototype: Uint Extracticohex (LPCTSTSTR LPSZFILE, INT NICONINDEX, HICON FAR * PhiconLarge, Hicon Far * Phiconsmall, uint nicons);

parameter:

LPSZFILE: Defines an empty end string pointer to the executable file, DLL, or icon file of the icon.

NiconIndex: Specifies the first icon based on zero-based index; for example, if the value is zero; the function extracts the first icon in a defined file; if this value is C1 and the phiconlarge and the phiconsmall parameters are null, the function returns limited The total number of icons in the file; if the file is an executable file or DLL; the return value is the number of RT_GROUP_ICON resources; if the file is an ICO file, the return value is 1; in Windows95, WindowsNT4.0, and later, if the value For negative numbers and phiconlarge and phiconsmall are NULL, the function starts from the acquisition icon, the resource identifier of the icon is equal to the NICONIndex absolute value. For example, use -3 to acquire an icon of the resource identifier 3.

PhiconLarge: Pointer to the array of icon handles, which receives the handle of the large icon obtained from the file. If this parameter is NULL, there is no large icon from the file.

Phiconsmall: Pointer to the array of icon handles, which receives the small icon handle from the file. If the parameter is NULL, the small icon is not extracted from the file.

Nicons: Specify the number of icons to extract from the file.

Return Value: If the niconIndex parameter is -1, the phiconlarge and phiconsmall parameters are null, the return value is the number of icons included in the specified file; otherwise, the return value is successfully acquired from the file number.

Note: You must call the Destroyicon function to clear the icon returned by the ExtracticOnex function. To recover the size icon size, you can use SM_CXICON, SM_CYICON, SM_CXSMICON, SM_CYSMICON tag to call the GetSystemMetrics function.

Windows CE: NICONIndex parameter must be zero or CN (n is the specified resource identifier); the NICONS parameter must be 1.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above version; Windows Ce: 1.0 and above version; header file: shellspi.h; library file: shell32.lib; unicodg: Unicode and ANSIs are implemented on Windows NT Specimen.

"No Yes Yes368 FatalAppExit end application No Yes Yes369 FatalExit return control Yes Yes to the debugger Yes370 FileTimeToDosDateTime to convert the file time for MS-DOS date No Yes Yes371 FileTimeToLocalFileTime the UTC file time into a local file time No Yes Yes372 FileTimeToSystemTime 64 the median time to the system time conversion No Yes Yes373 FillConsoleOutputAttribute attribute written to the screen buffer No Yes Yes374 FillConsoleOutputCharacter characters written to the screen buffer fill No Yes Yes375 FillPath No Yes Yes376 FillRect current path with the specified brush fills a rectangular area with Yes Yes Yes377 FillRgn brush fill area Yes Yes Yes378 FindAtom returns a string from the local atomic Yes Yes atoms lookup table Yes379 FindClose Close file description table No Yes Yes380 FindCloseChangeNotification light closing modify files or directories wait No Yes Yes381 FindClosePrinterChangeNotification No Yes Yes382 FindEnvironmentString No Yes Yes383 FindExecutable returns executable file name and handle No Yes Yes384 FindFirstChangeNotification settings file or directory modification wait No Yes Yes385 FindFirstFile to find the first matching file No Yes Yes386 FindFirstFreeAce returns a pointer to the first free byte pointer ACL No Yes Yes387 FindFirstPrinterChangeNotification No Yes Yes388 FindNextChangeNotification request for Notification of the next file or directory change No Yes Yes389 FindNextFile looks for the next match file No Yes YES390 FINDNEXTPRINTERCHANGENOTIFICATION NO YES YES391 FindResource Finding Resources in Modules: This function determines where the specified type and name of the specified type and name are located. Function prototype: HRSRC FindResource (HModule Hmodule, LPCTSTR LPNAME, LPCTSTSTR LPTYPE);

parameter:

HModule: Processes the module of the executable of the resource. NULL values ​​The specified module handle points to the operating system to create a related bitmap file for the recent process.

LPNAME: Specifies the name of the resource. For more information, see the Note section.

LPTYPE: Specifies the resource type. For more information, see the Note section. As a standard resource type. The meaning of this parameter is with EnumreslangProc / LPTYPE.

Return Value: If the function is running success, the return value is the handle pointing to the specified resource information block. In order to obtain these resources, pass this handle to the loadResource function. If the function is running, the return value is NULL. To get more error messages, call the getLastError function.

Note: If the high byte of the parameter LPTYPE or LPNAME is O, the type or name identity of the resource given in the low byte will be described. In addition, these parameters points to a string of null as a terminator. The first character of the string is #, the following characters indicate the decimal number to indicate the integer identifier of the source type or name. E.g. String "# 258" indicates an integer identifier 258. If you submit a resource with an integer identifier, you will reduce the required memory capacity.

When using the accelerator table, bitmap, cursor, icon, or menu, you can release memory by calling the functions listed in the following table. Accelerator table: DestroyAcceleratorTable; Bitmap: deleteObject; cursor: destroycursor; icon: destroylcon; menu destroymenu.

When the process creates a resource termination, the system will automatically delete these resources. However, by calling the appropriate function, the memory can be retained, and the space required to be required during the process is reduced.

Applications can use the FindResource function to find any kind of resources, but this function is only used when the application is sent and sent to the LOADLIBRAY and LOCKResource functions.

If you want to use a resource immediately, the application will use a function in the list of detailed resource functions to find the load required for the required resources, formatmessage: Machilization and formatted information table interface: loadaccclerators: load accelerator table; loadbltmap: Load bitmap Resources; loadcursor: loading cursor resources; loadlcon: Load icon resources;

LoadMenu: Load menu resource; loadstring: Load string table resources.

For example, an application can load an icon using the loadlcon function to display on the screen. However, if it is loaded with an icon to copy its data to another application, then this application should use the FindResource and LoadResource functions.

String resources are stored in a certain area consisting of several parts, with 16 strings per part. Each part of the string is stored in an orderly team arranged in a unified count.

The TheloadString function will pick string resources from the corresponding area.

Parameters hmodule cannot be a NULL handle.

The parameter lpname does not support the resources of IDs, which cannot work as expected by expectations, that is, FindResource (H, O, T).

It is impossible to pass the RT_anicursor or RT_anllcon value in the iptype parameter.

Speed ​​check: WindowsNT3.1, Windows95, Windowsce 1.0 or above, header file: winbase.h; library file: kerne132.lib; unicode; UNICODE and ANSI version are implemented on Windows and Windows.

"Yes Yes Yes392 FindResourceEx is looking for resources" function function in module: This function determines that the specified type, name, and language resource in the specified module are located.

Function prototype: HRSRC FindResourceex (HXodule HModule, LPCTSTSTR LPTYPE, LPCTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTSTST WLANGUAGE);

parameter:

HModule: Processes the module of the executable of the resource. If the parameter value is null, the function searches the module of the nearest process you have created. LPTYPE: Point to a string with null as the end of the character, which specifies the list of resource types being listed. To learn more, see the Note section. As a standard type, this parameter takes the value with EnumreslangProc / LPTYPE.

LPNAME: Point to the description resource file name and a string of NULL is end. To learn more, see the Note section.

WLANGUAGE: Indicates language resources. If this parameter is MAKELANGID (LANG_NEUTRAL, SUBLANG_Neutral, you can use macros to create this parameter to specify a language. For more information, see MakelangID.

Return Value: If the function is running success, its return value is a handle of a specified resource information block. In order to obtain resources, the handle is passed to the loadResource function. If the function is running, the return value is empty. If you want to get more error messages, call the getLastError function.

Quick check: Windows NT 3.1, Windows 95 or more, header file: winbase.h; library file: kernel32.lib; Unicode: Different versions of Unicode and ANSI are implemented on Windows and Windows NT.

"No Yes Yes393 FindText Establishs Finding Text Dialog" function: This function creates a system-defined-free Find dialog that specifies a string to find text within text for the user.

Function prototype: hWnd FindText (LPFINDREPLACE LPFR);

parameter:

IPFR: Points to a FindReplace structure that contains information for initial dialogs. The dialog box uses this structure to transfer the information entered by the user to the application. For more information, see the section below.

Return Value: If the function call is successful, the return value is the window handle of the dialog. You can use the window handle to contact or close it; if the function call fails, the return value is NULL. To get more error messages, call the CommdlGextendedError function. Its return value is as follows:

CDERR_FINDRESFAILURE; CDERR_MEMLOCKFAILURE; CDERR_INITIALIZATION

CDERR_NOHINSTANCE; CDERR_LOCKRESFAILURE; CDERR_NOHOOK

CDERR_LOADRESFAILURE; CDERR_NOTEMPLATE; CDERR_LOADSTRFAILURURE

CDERR_STRUCTSIZE; CDERR_MEMALLOCFAILURE; FRERR_BUFFERLENGTHZERO

Note: The FindText function does not perform a lookup operation. In contrast, the dialog box provides information on the FindMsgString to the dialog window window function. The HWndcwner member identity window in the FindReplace structure is created when the dialog box is created.

Before calling the Find text function, you must call the RegisterWindowMessage function to obtain the identifier of the FindMsgString information, and the dialog function is transmitted using this identifier when the user clicks the FindNext button or the dialog is turned off. The iParam parameter of the FindMsgstring information contains a pointer to the FINDREPLACE structure, and the FLAGS member of this structure displays the event of open information.

Other members displays the user's input.

To create a dialog, you must use the ISDIALOGMESSAGE function in the primary information chain of the application to ensure that the dialog box inputs, such as Tabs and ESC keys. IsDialogMessage Return Value Displays whether the Find dialog handles information.

You can provide a hook function FRhookProc for the Find dialog box. The hook function can handle information sent to the dialog. In order to enable the hook function, the FR_ENABLEHOOK flag of the FLAGS member of the HNDREPLACE structure can be set, and the address of the hook function is specified in the IPFNHOK member.

Speed ​​check: Windows NT: 3.1 and above; Windows: 95 and above version; Windows CE: does not support; header file: command: comMMDLG.H; library file: comdlg32.lib; unicode: Unicode and ANSI in the Windows NT environment Two versions.

"NO YES YES394 FindWindow Returns a Window Handle" function function with the class and window name: This function gets a handle of a top window, the class name and window name of the window matches the given string. This function does not look for the sub-window. Not case sensitive when looking up.

Function: hwnd findwindow (lpctstr lpclassname, lpctstr lpwindownload;

parameter:

LPClassName: Points to a null end string specified by the class name, or a pointer to a member identified by a class string. If this parameter is a member, it must be a global member that is previously called the GlobafadDatom function. The member is 16 bits and must be located at the low of IPClassName, and the high position must be 0.

LpWindowname: Points an empty end string specified by a window name (window title). If this parameter is empty, you all match all windows.

Return Value: If the function is successful, the return value is a window handle with the specified class name and window name; if the function fails, the return value is null.

To get more error messages, call the getLastError function.

Note: Windows CE: If the class name is a member, it must be a member returned from RegisterClass.

Quick check: Windows NT: 3.1 or above; Windows: 95 or above; Windows CE: 1.0 or above; header file: winuser.h; library file: user32.lib; unicode: Uneicode and ANSI on Windows NT version.

"Yes Yes Yes395 FindWindowEx Returns a Window Handle" function feature associated with the class and window name: This function gets a handle of a window, the class name and window name match the given string. This function looks for the sub-window, starting from the next sub-window behind a given sub-window. Not case sensitive when looking up.

Function prototype: HWnd FindWindow (HWND HWNDPARENT, HWND HWNDCHILDAFTER, LPCTSTSTSTSTSTSTSZZCLASS, LPCTSTSTSTSTSTSTSZZWINDOW);

parameter:

HWndParent: To find the parent window handle of the child window.

If hwnjparent is NULL, the function is used as the parent window at the desktop window, and looks for all sub-windows of the desktop window.

Windows NT5.0 and later: If hwndparent is hwnd_message, the function only looks for all message windows. HWNDCHILDAFTER: Sub window handle. Find starting from the next sub-window in the z-order. The sub-window must be a direct sub-window of the HWndParert window instead of the post-generation window. If hwndchildafter is NULL, look up starting from the first sub-window from HWNDPART. If hwndparent and hwndchildafter are simultaneously NULL, the function looks for all top-level windows and message windows.

LPSZCLASS: Points to a null end string specified by the class name, or a pointer to a member identifying a class string. If this parameter is a member, it must be a global member generated by the THEGLOBAIADDATOM function before. The member is 16 bits and must be 16 bits of LPClassName, and the high position must be 0.

LPSZWindow: Points an empty end string specified by the window name (window title). If this parameter is null, all windows are all matched. Return Value: If the function is successful, the return value is a window handle with the specified class name and window name. If the function fails, the return value is NULL.

To get more error messages, call the getLastError function.

Quick check: WindowsNT: 4.0 pairs or above; Windows: 95 or above; Windows Ce: Does not support; header file: winuser.h; library file: USER32. LIB; Unicode: Different from both Windows NT to Unicode and ANSI versions.

"No Yes Yes396 FixBrushOrgEx No Yes Yes397 FlashWindow the window to blink once Yes Yes Yes398 FlattenPath arcs into linearly No Yes Yes399 FloodFill region filled with the current brush clear the console input buffer Yes Yes No Yes Yes401 FlushFileBuffers clear file Yes400 FlushConsoleInputBuffer No buffer Yes Yes402 FlushInstructionCache instruction buffer fill No Yes Yes403 FlushViewOfFile view filled with the image file converted character string No Yes Yes404 FoldString No Yes Yes405 FormatMessage formatted message string No Yes Yes406 frameRect with the specified brush painting a window border in a region No Yes Yes407 FrameRgn four weeks to draw a border Yes Yes Yes408 FreeConsole release console No Yes Yes409 FreeDDElParam release DDE messages IPARAM No Yes Yes410 FreeEnvironmentStrings No Yes Yes411 FreeLibrary unload library module Yes Yes Yes412 FreeLibraryAndExitThread No Yes Yes413 FreeResource release with LoadResource function to load resources "function: this function Obtained. It provides a simple port for 16-bit WIN32-based applications. For Win32 applications (32 bits), there is no need to release resources with loadResource functions. The resources obtained by LoadResource are automatically released as the uninstallation of the load module is automatically released. However, in order to retain the size of the program work settings, the space size of the program must be called by calling the functions in the following table to release the memory resources occupied by the accelerator table, bitmap, cursor, icon, and menus. Accelerator table: DestroyAcceleratorTable; Bitm: deleteObject; cursor: destroycursor;

Icon: Destroylcon; menu: destroymenu.

"No Yes Yes414 FreeSid release SID No Yes Yes415 GdiComment added comments No Yes Yes416 GdiFlush to an enhanced metafile that the current GDI scintillation No Yes Yes417 GdiGetBatchLimit returns the number of buffer GDI function No Yes Yes418 GdiSetBatchLimit set the number of buffer GDI function No Yes Yes419 GenerateConsoleCtrlEvent send a signal to the console process group No Yes Yes420 GetACP acquisition system ANSI code page No Yes Yes421 GetAce returns a pointer to the ACL ACE pointers No Yes Yes422 GetAclInformation return access control table information No Yes Yes423 GetActiveWindow return to the active window handle Yes Yes Yes424 GetArcDirection return Painting Direction of Arc and Rectangular NO YES YES425 GetaspectRatiofilterex Returns the status "function function of the current Aspect-Ratio filter YES YES YES426 getasynckeyState" function "function function: This function is used to determine the function called, the corresponding button is in the prescription, or is in a bomb Status; and press this button to call the getasynckeystate function.

Function prototype: Short getaynckeyState (int vkey); parameter:

Vkey: Defines virtual keys (if there are 256 virtual keys). For more information, see Virtual_Key Codes. In Windows NT, you can use the left and right keys to define some keys. For more information, refer to the Remark section.

Return Value: If the function call is successful, the return value gives the last call getasyncKeyStat. Since, whether the specified key is in a statement, and it is determined that the key is currently pressing or being bounted. If the highest bit is set to 1, the key is taken below: If the lowest bit is set to 1, the key is in the next state in the previous calling GetAsyncKeyState. If another process or the window in the thread has a keyboard focus,

The return value is zero.

Windows 95: Windows 95 does not support left-right key distinction, if you call the getasyncKeyState function with these constants, the return value is zero.

Remarks: This function supports the mouse button, but it is not a status of the logic button mapped to the physical button, and the status of the actual physical button. For example, the function call getasynckeyState (vk_lbutton) always returns the state of the physical mouse left button, regardless of the button map to logically left buttons, you can call GetSystemMetrics to determine the corresponding physical mouse button and the logical mouse button corresponding to the system. Relationship, when the mouse button is swapped left and right, the function returns True.

You can use the virtual key code constant VD_SHIFT, VK_CONTROL, VK_MENU as the value of the Vkey parameter, which gives the SHIFT CTRL, the AIT key, and does not distinguish the left button or the right button.

Windows NT: You can use the following virtual key code constants as the value of Vkey to distinguish the left right key:

VK_LSHIFT VK_RSHIFT; VW_LCONTROL VK_RCONTROL; VK_LMENU VK_RMENU

These distinguishable left and right constants are only available when the GetKeyboardState, SetKeyboardState, GetSyncKeyState, GetKeyState, and MapViruaiKey functions are available.

Windows CE: The getasynckeyState function supports left and right virtual key constants, so the definition is pressed or right. These constants are VKLSHIFT, VK_RSHIFT, VK_LCONTROL, VK_RCONTROL, VK_LMENU, and VK_RMENU.

The lowest bit of the return value in Windowsce is invalid and should be ignored.

GetasyncKeyState will return the status of the current key, even if another process or the window in the thread has a keyboard focus.

You can use the VK_LBUTTON virtual keycase constant to determine the state of the tip of the touch screen (press / bounce up).

Speed: WindowsNT: 3.1 and above: Windows: 95 and above: Windowsce: 1.o and above version; header file: winuser.h; library file: user32.lib.

"Yes Yes Yes427 GetAtomName returns the local atomic string Yes Yes Yes428 GetBinaryType binary executable file type is determined No Yes Yes429 GetBitmapBits Copy the bitmap to the buffer returns No Yes Yes430 GetBitmapDimensionEx bitmap width and height No Yes Yes431 GetBkColor current background color returns No Yes Yes432 GetBkMode return to background mode No Yes Yes433 GetBoundsRect return rectangle No Yes Yes434 GetBrushOrgEx No Yes Yes435 GetCPInfo adjacent to the current code page to obtain information No Yes Yes436 GetCapture get a handle mouse capture window "function: this function is made to capture the mouse The handle of the window (if present). At the same time, only one window can capture the mouse; at this time, the window receives the input of the mouse, regardless of whether the cursor is within its range. Function prototype: hWnd getcapture (void);

Parameters: None.

Return Value: The return value is the handle of the capture window associated with the current thread. Returns NULL if there is no window to capture the mouse in the current thread.

Note: Returning NULL does not mean that there is no other process or thread in the system to capture the mouse, only means that the current thread is not captured to the mouse.

Quick check: WindowsNT: 4.0 and above; Wiodows: 95 and above; Windowsce: 1.0 and above; header file: Winuser.h; Enter the library: user32.lib.

"NO YES YES437 getCareTblinkTime Returns the Dramatic Blinking Time" function function: This function returns a common time, unit is millisecond. This time is the time required to convert pixels inserted into the marked. Users can use the control panel to set this value.

Function prototype: uint getcaretblinktime (VOLD);

Parameters: None.

Return Value: If the function is successful, the return value is flashing time, the unit is in milliseconds; if the function failed, the return value is zero. To get more error messages, call the getLastError function.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windowsce: 1.0 and above; header file: winuser.h; library file: user32.lib.

"No Yes Yes438 getCareTPOS Returns the current Drafted Location" function function: This function is copied into the specified Point structure inserted into the specified Point structure.

Function prototype: BOOL getCareTPOS (LPP0INT LPPOINT);

parameter:

LPPOINT: Pointer to the Point structure. This structure receives customer coordinate information inserted into the mark.

Return Value: If the function is successful, the return value is non-zero; if the function is executed, the return value is zero. To get more error messages, call the getLastError function.

Remarks: Inserting tag locations are usually given in the form of customer coordinates that contain the inserted tag.

Quick check: WindowsNT: 3.1 and above; Windows: 95 and above; Windows: 1.0 and above version; header file: winuser.h; file: user32.lib. "No Yes Yes439 GetCharABCWidths return character width No Yes Yes440 GetCharABCWidthsFloat return character width No Yes Yes441 GetCharWidth return character width No Yes Yes442 GetCharWidth32 returns No Yes Yes443 GetCharWidthFloat character width portion of the character width returns No Yes Yes444 GetCharacterPlacement string attribute data acquisition No Yes Yes445 GetClassInfo Return window information No yes yes446 getClasslong Return Window Class Data Function: This function returns a 32-bit value of the WNDCLASSEX structure associated with the specified window.

Function prototype: DWORD getClasslong (hwnd hwnd, int nindex);

parameter:

HWND: The class belongs to the window to which the window handle is given.

NINDEX: Specifies the 32-bit value to recover. Recovered a 32-bit value from the additional type storage space, the specified one of the offset of the recovered value equal to 0. Valid values ​​are starting from 0 to an additional class storage spatial byte number 4. For example, if a 12-bit or more than 12 additional type storage space is specified, the index position 8 of the third 32-bit integer should be set. To recover any value from the WndClassex structure, you need to specify one of the following values:

GCSW Atom: Get an atom value of a unique identifier window, which is the same as the return value of the RegisterClassex function.

GCL_CBWndextra: Get the byte size of the memory space in the additional window related to each window in the class, please refer to getWindWolong.

GCL_HBRBACKGROUND: The handle of the background brush related to the class.

GCL_HCURSOR: Gets the handle of the cursor associated with the class.

GCL_HICON: Get the handle of the icon related to the class.

GCL_HICONSM: Gets the handle of small icons related to the class.

GCL_HMOUDLE: Get the handle of the module that registers the class.

GCL_MENUNAME: Get the address of the menu name string, which identifies the menu resource related to the class.

GCL_Style: Get the style of the window class.

GCL_WNDRPOC: Get the address of the window process related to the class.

Return Value: If the function is successful, the return value is the 32-bit value required; if the function fails, the return value is 0. To get more error messages, call the getLastError function.

Remarks: By using the function RegisterClassex to specify the CBCISextra unit in WNDCLASSEX as a non-O value to retain the storage space of the extra class. Windows CE: NLndex parameter is a byte offset, but must be a multiple of 4. Unaligned Access is not supported by Windows CE. Only GCL_HICON and GCL_STYLE are set in the NLndex parameter. If the LCONSURS component of Windows CE is used, the component supports the mouse on the appropriate target platform, or GCL_HCURSOR can also be used in NLndex. Note that the WINDOWS CE version that supports the mouse contains Iconcurs and Mcursor instead of ICON and Cursor components.

Quick Check: WiODOWS NT: 3.1 Contour: Windows: 95 or Up: Windows CE: 1.0 or above: Header file: Winuser.h; library file: user32.lib: unicode: Uneicode and ANSIs are implemented on Windows NT version. "NO YES YES447 GetClassName Return Window Class Name" function: This function gets the class name of the class belonging to the specified window. Function prototype: int GetClassName (HWND HWND, LPTSTSTSTST); parameter:

HWND: The handle of the window and the class belonging to the indirect window.

LPClassName: Pointer to the buffer of the received window class string.

Nmaxcount: Specifies the number of bytes of the buffer indicated by the parameter lpClassName. If the class string is greater than the length of the buffer, the plurality of parts are truncated.

Return Value: If the function is successful, the return value is copied to the number of characters in the specified buffer: if the function fails, the return value is 0. To get more error messages, call the getLastError function.

Speed: Windows NT: 3.1 above: Windows: 95 or above; Windows CE1.0 or above; header file: Winuser.H library file: user32.lib; unicode: Double version of Unicode and ANSI on Windows NT .

"NO YES YES448 GetClassWord Return Window Class" function function: This function acquires 16-bit values ​​of the window class of the specified window in the additional storage space of the window class. Unlike GCW_ atoms and GCW_HICONSM, the GCW_VALUE supported by 16-bit Windows must use the function getClasslong to get the window value.

Function prototype: Word getCassword (HWND HWND, INT NINDEX);

parameter:.

HWND: Window handle and indirectly given the class belonging.

NINDEX: Specifies the offset equal to 0 bytes of the value to be obtained. The effective value is from 0 to the additional class storage spatial byte number one 2.

For example, if a 10-bit or more additional storage space is specified, the index position 8 of the 5th 16-bit integer should be set. Allowed additional effective values:

GCW_ Atom: Restore a unique identity window class, which is the same as the return value of the RegiterClassex function.

GCW_HICONSM: Restores the handle of small icons related to the window.

Return Value: If the function is successful, the return value is the 16-bit value required; if the function fails, the return value is zero. To get more error messages, call the getLastError function.

Note: By using the function RegisterClassex, set the CBCLSEXTRA unit in Structure WNDCLASSEX to a non-0 value to keep additional storage space.

"No Yes Yes449 GetClientRect Return Window Customer Area Coordinate" function: This function gets the coordinates of the window client area. Customer area coordinate specifies the upper left corner and lower right corner of the client area. Since the customer area coordinates are in the upper left corner of the relative sub-window client area, the upper left corner coordinate is (0,0)

Function prototype: BOOL getClientRect (HWND HWND, LPRECT LPRECT); parameter:

GetLastError function.

Note: Windows CE: Commands are included in the client area.

Speed: Windows NT: 3.1 above: Windows: 95 or above: Windows CE: 1.0 or above: Header file: Winuser.h; library file: user32.lib

"NO YES YES450 GetClipbox Take the Crash" NO YES YES451 GetClipCursor Returns the Coordinate Coordinate "function function" function function "function function: This function detects the screen coordinates of a rectangular area, and the cursor is limited to the rectangular area.

Function prototype: BOOL getClipCursor (LPRECT LPRECT);

parameter:

LPRECT: a pointer for a RECT structure; receives a screen coordinate that restricts a rectangle. If the cursor is not limited to a rectangular area, the RECT structure receives the size of the screen.

Return Value: If successful, return non-zero; if it fails, the return value is zero, if you want to get more error messages, call the getLastError function.

Note: This cursor is a shared cursor, if an application uses the ClipCursor function to limit the cursor, then you must use ClipCursor to release the cursor before it waives the control to another application, the calling process must have Winsta_ReadAttributes access to the window station. Permission.

Quickudes: Windows NT: 3.1 and Undext; Windows: 95 and above; Windows CE: Does not support; header file: winusre.h; library file: user32. LIB.

"No Yes Yes452 GetClipRgn return clipboard format name No Yes Yes455 GetClipboardOwner current clip Domain No Yes Yes453 GetClipboardData return clipboard data handle No Yes Yes454 GetClipboardFormatName return to the login window handle return the clipboard owner No Yes Yes456 GetClipboardViewer return the first clip plate browser window handle No Yes Yes457 GetColorAdjustment Get device Descriptor table adjustment value No Yes Yes458 getColorSpace gets the specified color space No Yes Yes459 GetCommConfig No Yes Yes460 GetCommMask return COMM event mask No Yes Yes461 GetCommModemStatus return modem control log value No Yes Yes462 GetCommProperties return COMM device properties No Yes Yes463 GetCommState COMM return device control block returns No Yes Yes464 GetCommTimeouts COMM apparatus timeout feature value No Yes Yes465 GetCommandLine pointer returns a pointer to the command line No Yes Yes466 GetCompressedFileSize No Yes Yes467 GetComputerName computer retrieves the current name for the console No Yes Yes468 GetConsoleCP enter the get Code page No Yes Yes469 GetConsoleCursorInfo return cursor size No Yes Yes470 GetConsoleMode return to the console input and output mode No Yes Yes471 GetConsoleOutputCP get the code for the console output page No Yes Yes472 GetConsoleScreenBufferInfo return to the screen buffer information No Yes Yes473 GetConsoleTitle return to the console window title No Yes Yes474 getcurrencyformat no yes yes475 getcurrentdirector y Returns the current directory No Yes Yes476 GetCurrentObject returns the current object No Yes Yes477 GetCurrentPositionEx returns the logical cell position No Yes Yes478 GetCurrentProcess current process handle No Yes Yes479 GetCurrentProcessId returns the current process ID No Yes Yes480 GetCurrentThread returns the current cue handle No Yes Yes481 GetCurrentThreadId Returns the current clue ID value NO YES YES482 getCursor Returns the current cursor's handle "function function: This function checks the handle of the current cursor. Function prototype: hcursor getcursor (void);

Parameters: None.

Return Value: The return value is the handle of the current cursor. If there is no cursor, the return value is null.

Quick check: Windows NT: 3.1 and above; WJHDOWS: 95 and above version; Windows CE: does not support; header file: winuser.h; library file: user32.lib.

"NO YES YES483 getCursorpos Returns the position" function function of the current cursor: This function detects the position of the cursor to represent the screen coordinate.

Function prototype: BOOL getCursorpos (LPPOINT LPPOINT);

Parameters: LPPOINT: Point structure pointer, the structure receives the screen coordinates of the cursor.

Return Value: If successful, return value is non-zero; if it fails, the return value is zero. To get more error messages, call the getLastError function.

Remarks: The position of the cursor is usually given in the form of a screen coordinates, which is not affected by the mapping mode of the window containing the cursor. This calling process must have a Winsta_ReadAttributes access to the window station.

Speed: Windows NT: 3.1 and above: Windows: 95 and above version; Windows CE: does not support; header file: winuser.h; library file: user32.lib.

"No Yes Yes484 GetDC description window handle returns No Yes Yes485 GetDCEx handle returns to display the description returns No Yes Yes486 GetDCOrgEx transition source device context No Yes Yes487 GetDIBColorTable No Yes Yes488 GetDIBits be copied into the buffer DIB bits No Yes Yes489 GetDateFormat Gets a local date format No Yes Yes490 getDefaultcommconfig no yes yes491 getDesktopWindow Return Desktop Handle "Function: This function returns the handle of the desktop window. The desktop window covers the entire screen. The desktop window is an area where you want to draw all the icons and other windows thereon.

Function prototype: hwnd getdesktopwindow (void);

Parameters: None.

Return Value: The function returns the handle of the desktop window.

Speed ​​check: Windows NT: 3.1 or above; Windows: 95 or above: Windows CE: Does not support; header file: winuser.h; library file: user32.lib.

"NO YES YES492 GETDEVICECAPS Return Device Performance No Yes YES493 GetDeviceGamMARAMP Gets Glycy Coefficient No Yes Yes494 GetDialogbaseUnits Return Dial Basics" Function: This function returns the basic unit of the system's dialog, the basic unit is the average width of the system font character and height. For dialogs that use system fonts, you can use these values ​​between dialog templates, such as between dialog templates and pixels. For dialogs that do not use the system font, from the dialog template unit to the pixel conversion to be determined according to the font used in the dialog. One type of the dialog is easy to perform conversion with the MapDialogRect function, MapDialogRect considers the font and corrects a rectangular template unit to this pixel.

Function prototype: Long getDialogbaseunits (void);

Parameters: None.

Return Value: The return value is a value of a 32-bit containing a dialogature unit. The low word of the return value contains the basic unit of the horizontal dialog, and the high low level contains the basic unit of the vertical dialog.

Remarks: The horizontal basic unit returned by the getDialogbaseunits function is equal to the average width of the system font. The vertical base unit is equal to the average height of the character in the system font; for a dialog box without using the system font; The basic unit is equal to the average width and average height of the pixel. These values ​​can be calculated using the GetTextMetrics and GetTextExtentPoint32 functions to be used as a selected font. However, if the calculation results are different from those performed through the system, then the MapDialogRect function can be used to avoid possible errors. Each horizontal basic unit is equal to four horizontal dialog template units; each vertical base unit is equal to eight vertical dialog template units. So use the following formula to convert the dialog template unit into pixels: piselx = (TemptateUnitX * BaseUnitX) / 4; piseiy = (TemplateUnity * BaseUnity) / 8

Similarly. Use the following formula to convert pixel to dialog box template unit: templateunitX = (Pixelx * 4) / baseUnitX; templateunity = (PLXELY * 8) / BaseUnity

Windows CE: Windows CE does not support any extension error value of this function.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windows: 1.0 and above version; header file: winuser.h; library file: user32.lib

"NO YES YES495 GETDISKFREESPACE Returns Air Disk Space NO YES YES496 GETDLGCTRLID Returns the Identifier" function function "function: This function returns the identifier of the specified control.

Function prototype: int getdlgctrlid (HWND HWNDCTL);

parameter:

HWNDCTL: Identifies the handle of the control.

Return Value: If the function call is successful, the return value is the identifier of the control, and if the function call fails, the return value is zero. For example, an invalid value of the HWndCTL parameter will result in failure of the function. To get more error messages, call the getLastError function.

Note: getDLGCTRLD Function Receives the control handle in the sub-window handle and dialog. When the application calls the CREATEWINDOW or CREATEWINDOWEX function, the application sets the identifier for the window handle by setting the value of the identifier to the HMENU parameter. If the HWndCtrl identifies a top window, although getdlgctrLL can return a value, the top window cannot have an identifier and such a return value is from not effective. Windows CE: The identifier is only valid for the child window. The identifier is called to set by passing the identifier in the HWndCtrl parameter to the CREATEWINDOWEX function, which can also be set and retrieved by calling the setWindowlong and getWindowlong functions with NLndex parameters set to GWL_ID.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windowsce: 1.0 and above; header file: winuser.h; library file: user32.lib.

"NO YES YES497 Getdlgitem Return dialog control handle" function: This function retrieves the control handle in the specified dialog.

Function prototype: hWnd getdlgitem (hwnd hdlg, int niddlgitem); parameter:

HDLG: Identify a dialog containing control.

Niddlgitem: Specifies the control identifier that will be retrieved.

Return value: If the function call is successful, the value is returned to the window handle for a given control. If the function call fails, the return value is NULL, which is expressed as an invalid dialog handler or a non-existing control. To get more error messages, call the getLastError function.

Note: You can use the getDlgitem function by using any parent-child window, but not only the dialog box. As long as the HDLG parameter specifies a parent window, and the sub-window has a separate identifier (as specified by the createWindowEx specified by the HMENU parameter in CREATEWINDOW), getdlgitem returns a valid handle to the sub-window. Windows CE: Getdlgitem functions are only directly on the dialog, it does not search by nested dialog boxes.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windowsce: 1.0 and above; header file: winuser.h; library file: user32.lib.

"No Yes Yes498 getdlgitemint converts dialog box text to integer" function function: This function transforms the text specified in the dialog to a integer value.

Function prototype: uint getdlgitemint (HWND HDLG, INT Niddlgitem, Bool * LPTRANSLATED, BOOL BSIGNED);

parameter:

HDLG: Points the handle of the dialog containing interest control.

Nlddlgitem: Specifies the conversation item identifier for the control of the text that will be transformed.

IPTranslated: Pointer to a Boolean variable. This variable saves the function of success / failure. TRUE said successfully, False said failed. This parameter is optional. It can be NULL. In this case, the function does not return information on success and failure.

BSigned: Specifies that the function is at the beginning of a minimum message to detect text, and if a message integer value is found, it returns it. True Specifies that it should do this, False specifies that it should not do this.

Return Value: If the function call is successful, the variable pointed to by iptranslated is set to true, and the return value is the transition value of the control text.

If the function call fails, the variable pointed to by iptranslated is set to false, and the return value is zero. Note Because zero is a variable value, the returned zero value cannot be expressed by itself. If iptranslated is null, the indicator function does not return information on success and failure. If the BSIGNed parameter is true, specifying the value of the checked value as a symbol integer value, set the return value to a integer type. For detailed error messages, call GetLastError.

Remarks: The getDlgitemint function retrieves the text of the given control by sending a WM_GETTEXT control message. The function converts the text to retrieve through the extra space starting with any text, and then converts to numerical data. When the function reaches the end of the text or when a non-numerical character is encountered, the function stops the transition. If the BSIGNED parameter is true, the getDlgitemint function detects the symbol "" C "C and transforms the text into symbol integer values. Otherwise, the function creates a non-symbol integer value. If the value of the transition is greater than IN_TMAX (for the number of symbols) or UINT_MAX (for no sign), the getDlgitemint function returns zero value. Windows CE: For text strings that are greater than 48 characters cannot be transformed. Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windows: 1.0 and above version: Header file: winuser.h; library file: user32.lib

"No Yes Yes499 GetdlgitemText Return Dialog Control Text" function: This function obtains text or title in the dialog box.

Function prototype: uint getdlgitemtext (hwnd hdlg, int niddlgitem, lptstr lpstring int nmazcount);

parameter:

HDLG: Points the handle of the dialog containing the control.

Nlddlgitem: Specifies the identifier of the control of the title or text to be retrieved.

LPSTRING: Pointer to get the buffer that gets the title or text.

Nmaxcount: Specifies the maximum length of the string of the buffer to be copied to the LPString parameter. If the character string is the maximum length exceeds the range, the string is truncated.

Return Value: If the function call is successful, the return value represents the length of the string of the copied buffer, does not include a string ending with NULL. If the function call fails, the return value is zero. To get more error messages, call the getLastError function.

Note: The getDlgitemtext function sends a WM_GETTEXT message to the control.

Speed: Windows NT: 3.1 and above; Windows: 95 and above version; Windows Ce: 1.0 and above version: Header file: winuser.h; library file: user32.lib; unicode: Unicode and ANSI on Windows NT Two versions.

"NO YES YES500 GETDOUBLICKTIME Return Mouse Double Time" function function: This function gets the current double-click time of the mouse. One double-click refers to the two combo of the mouse button, and the first keystrokes can take the second time in the specified time. Double-click time refers to the maximum milliseconds between the first hit and the second keystroke.

Function prototype: uint getDoubleClicktime (void);

Parameters: None.

Return Value: Returns to be the current double-click time, calculate according to milliseconds.

Speed: WindowsNT: 4.0 and above; Windows: 95 and above; Windowsce: 1.0 and above; header file: Winuser.h; Enter the library: user32.lib. "No Yes Yes501 GetDriveType Returns drive type No Yes Yes502 GetDriverModuleHandle return driver module Examples handle No Yes Yes503 GetEnhMetaFile establish enhanced metafile No Yes Yes504 GetEnhMetaFileBits the enhanced metafile copies the value to the buffer No Yes Yes505 GetEnhMetaFileDescription returns enhanced metafile and the title of the document creator returns No Yes Yes506 GetEnhMetaFileHeader enhanced metafile header returns No Yes Yes507 GetEnhMetaFilePaletteEntries enhanced metafile palette entry No Yes Yes508 GetEnvironmentStrings pointer returns a pointer to the environment block returns No Yes Yes509 GetEnvironmentVariable process environment variables No Yes Yes510 GetExitCodeProcess return process interrupt code No Yes Yes511 GetExitCodeThread return clues interrupt code No Yes Yes512 GetExpandedName take the compressed file the original file name Yes Yes Yes513 GetFileAttributes returns the file attributes No Yes Yes514 GetFileInformationByHandle return file information No Yes Yes515 GetFileSecurity get the file or directory security information No Yes Yes516 GetFileSize Returns the specified file size No yes yes517 getFiletime Returns file 64-bit time no yes yes518 getFileTitle Return file name "function function: This function returns the file name identified by the LPSZFILE parameter. Function prototype: Short GetFileTitle (LPCTSTSTR LPSZFILE, LPTSTSTSTSZZTILE, WORD CBBUF);

parameter:

LPSZFILE: Points to a file name or file location.

Lpsztitle: Points a buffer that replicates the file name in this buffer.

Chbuf: Specifies the buffer byte length to which the IPSZTITLE function is directed.

Return Value: If the function call is successful, the return value is zero; if the file name is invalid, the return value is a negative value. If the buffer pointed to by the ipsztitle parameter is too small, the return value is a positive integer, and its value specifies the size of the desired buffer. The size of the desired buffer also includes the end of NULL characters.

Note: If the buffer pointed to by the LPSZFile parameter contains any of the following members, the getFileTitle function returns an error message value.

An empty string; a string containing an asterisk (), knot bracket ([), closed brackets (]), a string ending with a colon (:), slash (/) or inverted slash; one length exceeds String of the buffer length; an invalid character (eg, a space or a unspeakable letter): To obtain the size of the buffer required by the file name, use the LPSZTITLE set to NULL and the CBBUF call function set to zero. The function will return the required size.

The GetFileTitle function returns a string, and the system applies this string to display the file name for the user. This means that if the return string application does not accurately identify files in the call system function. If the LPSZTITE buffer is too small, the size returned by getFile Title needs to contain the display name. There is no license between the required size and characters specified by the LPSZFile buffer.

Speed: Windows NT: 3.1 and above: Windows: 95 and above version: Windows CE: Does not support: header file: commdlg.h; library file: comdlg32.fib; unicode: Unicode and ANSI in the Windows NT environment Two versions.

"No Yes Yes519 GetFileType Returns the file type No Yes Yes520 GetFileVersionInfo returns the file version information No Yes Yes521 GetFileVersionInfoSize return to a usable version Information size No Yes Yes522 GetFocus Returns the current focus window handle" Function: This function gets associated with the calling thread message queue window The handle that has an input focus.

Function prototype: hWnd getfocus (void);

Parameters: None.

Return Value: To the window handle of the keyboard input focus, if the message queue of the thread is called, the return value is NULL if there is no associated window of the message queue.

To: Although getFocus returns NULL, the queue of another thread is related to a window with input focus. Use the GetForeyRoundWindow function to get the user currently work. You can use the attachthreadlnput function to associate the message queue of the thread with another thread.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windows: 1.0 and above version; header file: winuser.h; library file: user32.lib.

"YES YES YES523 GetFontData Returns Fonts YES YES YES524 GetFontlanguageInfo Get Font Display Description Table Information No Yes YES525 GetForeGroup Returns Foreground Window Handle" Function: This function returns the front window (the user currently working). The system is assigned to a thread that produces a front desk window a slightly higher priority.

Function prototype: hWnd getForegroundWindow (Void);

Parameters: None.

Return Value: The function returns the handle of the front window.

Quick check: Windows NT: 3.1 or above; Windows: 95 or above: Windows CE: 1.0 or above: Header file: winuser.h; library file: user32.lib.

"No Yes Yes526 GetForm Getting Printer window information No Yes Yes527 GetFullPathName return the file pathname No Yes Yes528 GetGlyphOutline retrieving profile data Yes Yes Yes529 GetGraphicsMode DC retrieve the specified graphics mode Yes Yes530 GetHandleInformation No Yes Yes531 GetICMProfile return to the scene of the color device No Image NO YES YES532 GeticonInfo Return Icon or Cursor Information "Function: This function restores the information of the qualified icon or cursor. Function prototype: Bool GetlConlnfo (Hicon Hicon, PiconInfo);

parameter:

NICON: Handle of icon or cursor; for recovery standard icon or cursor information.

PiconInfo: Points to the IconInfo structure. Members of the function fill the structure.

Return Value: If the function is successful, the return value is a member of the non-zero and the function fills the Limited IconInfo structure. If the function is invalid; the return value is zero. To get more error messages, call the getLastError function.

Note: GeticonInfo creates a bitmap for the IconInfo member HBmmask and HBMColor, and calling the application must manage these bitmaps and delete them when they are no longer needed.

Speed: Windows NT: 3.1 and above; Windows: 95 and above version; Windows CE: does not support: header file: Winuser.h; library file: user32.lib.

"No Yes Yes533 GetInputState determines the mouse, keyboard, timer status" function function: This function determines if there is a mouse button or keyboard message in the message queue called thread.

Function prototype: BOOL getLnputState (void);

Parameters: None.

Return Value: If the queue contains one or more new mouse keys or keyboard messages, returns a non-zero value. If there is no new mouse button or keyboard message in the queue, the return value is zero.

Speed: Windows NT: 3.1 and above; Windows: 95 and above; Windows CE: Do not support; header file: Winuser.h; Enter the library: user32.lib.

"YES YES YES534 getJob Get Print Job Information No Yes Yes Yes535 getkbcodePage Get OEM System Code Page" Function: This function is outdated. You can use the getOemcp function to check the system's OEM code page identifier. The getkbcodepage function returns the current code page.

Function prototype: uint getkbcodepage (void)

Parameters: None.

Return Value: Return Value OEM code page identifier, or if the registration value is not readable, the return value is the default. To view the OEM code page ID, you can refer to the getOemcp function.

"Yes YES YES536 GetkernelObjectSecurity Returns the kernel object SD no yes yes537 getkerningpairs Returns the current font core to the string" function function "function function" function "function" function "function" function "function" function "function that returns the name" function "function function: This function checks the string of the key name.

Function prototype: int GetKeyNameText (long LPARAM, LPTSTSTR LPSTRING, INT NSIZE); Parameters:

LPARAM: Specifies the second parameter of the processed keyboard message (such as WM_KeyDown). The function LPORAM parameter is as follows:

16-23: Scanning code; 24: Extended logo, used to distinguish some keys on the enhanced keyboard: 25: "" "" "bit, calling this function to set this bit to indicate that the function should not distinguish between Ctrl keys and SHIFT keys.

LPSTRING: Pointer to the buffer to accept the key name.

nsize: Specifies the maximum character length of the key name, including the empty end. (This parameter value should be equal to the size of the buffer specified by the LPString parameter).

Return Value: If the function call is successful, a specified buffer of the empty end-ended string will be copied, and the return value is the length (number of characters) of the string, and the null character is not terminated. If the function call fails, the return value is O. If you want more error messages, you can call the getLastError function.

Note: The format of the key name string depends on the current keyboard layout, the keyboard driver holds a key name of the string (each name length is greater than one character) and translates the key name based on the currently installed keyboard layout. The name of each character key is the character itself, the name of the key is completely spelled.

Speed: Windows NT: 3.1 and above; Windows: 95 and above version; Windows CE: does not support; header file: winuser.h; library file: user32.lib; unicode: Unicode and ANSIs are implemented on Windows NT Specimen.

"YES YES YES539 GetKeyState Returns the Status" function function: This function checks the status of the specified virtual key. This state specifies that this button is a UP state, and the DOWN state is still triggered (switches when the switch is pressed each time the key).

Function prototype: Short getKeyState (int nvirtkey);

function:

NVRTKey: Defines a virtual key. If the required virtual key is a letter or number (A ~ Z, A ~ Z or 0 ~ 9), NVIRTKEY must be set to the corresponding character ASCII code value, for other keys, NVIRTKEY must be a virtual key code. If a non-English keyboard layout is used, the value of the virtual key of ASCIIA to Z and 0 to 9 is used to define most of the character keys. For example, for the German keyboard format, the virtual key of the value ASCII0 (OX4F) refers to "" 0 "" button, and VK_OEM_1 refers to "" 0 key with vagado ""

Return Value: The return value gives a status of a given virtual key, and the status is as follows:

If the high sequence is 1, the key is in the DOWN state, otherwise it is a UP status.

If the low sequence is 1, the key is triggered. For example, the Caps Lock button is found, it will be triggered. If the low sequence position is 0, the key is turned off and is not triggered. The indicator of the trigger button on the keyboard, when the key is triggered, the key is not triggered when it is triggered.

Note: When a given thread reads the key message from its message queue, the key state returned by the function changes. This state well does not reflect the state of the interrupt level associated with the hardware. Use SetKeyboardState to get this information. To detect all virtual key status information, you can use the setkeyboardState function.

The application can use virtual keycase constants vk_shift, vk_control, and vk_menu as the value of the NVIRTKEY parameter. It gives the value of Shift, Ctrl or Alt key, without distinguishing between the left and right keys, the application can also use the following virtual key code constant as the value of the NVIRTKEY to distinguish the left button, right-click.

VK_LSHIFT, VK_RSHIFT; VK_LCONTROL, VK_RCONTROL; VK_LMENU, VK_RMENU

These distinguishes are only available for constants that are not available when the application calls getKeyboardSlate, SetKeyboardState, GetAsyncKeyState; GetKeyState, and MapVirtualKey functions.

Windows CE: The getKeyState function can only be used to check the Down status of the following virtual key.

VK_Lshift, vkrshift, vk_lcontrol; vk_rcontrol; vk_lmenu, vk_rmenu

The GetKeyState function can only be used to check the trigger status of the VK_Capital virtual key.

Quick check: Windows NT: 3.1 and above; Windows: 95 and above; Windows CE: 1.i and above; header file: winuser.h; library file: user32.lib.

"YES YES YES540 GetKeyboardLayout gets the active keyboard layout" function function of the specified thread: This function can get the active keyboard layout of the specified thread. If the dwlayout parameter is zero, the keyboard layout of the active thread will be returned.

Function prototype: HKL getKeyboardLayout (DWORD DWLAYOUT);

parameter:

DWLAYOUT: The thread identifier that is identified by the desired query, the current thread identifier is 0.

Return Value: Return the value of the keyboard layout handle for the specified thread. The low word of the return value contains the language identifier of the input language, and the high word contains the handle of the keyboard physical layout.

Quick check; Windows NT: 4.0 and above; Windows: 95 and above; Windows CE; not supported; header file: Winuser.h; library file: user32.lib.

"No Yes Yes541 getKeyboardLayoutList Gets the keyboard layout handle" function function corresponding to the current set of the input point in the system: This function can obtain the keyboard layout handle corresponding to the current set of the input point in the system. This function copies the handle into the specified buffer.

Function prototype: uint getKeyboardLayoutList (int NBUFF, HKL FAR * LPLIST);

parameter:

NBUFF: Specifies the number of maximum handles that can be stored in the buffer.

LPLIST: The buffer pointer, the buffer is stored in the keyboard layout handle array.

Return Value: If the function call is successful, the return value is the number of keyboard layout handles to the buffer, or if nbuff is 0, then the value is to accept the size of all current keyboard layout (in array members) Unit). If the function call fails, the return value is 0. To get more error messages, you can call the getLastError function. Speed: Windows NT: 4.0 and above; Windows: 95 and above version; Windows CE: Does not support; header file: Winuser.h: library file: user32.lib.

"No Yes Yes542 getKeyboardLayOutName Return Activity Keyboard version" function: This function can get the name of the active keyboard layout.

Function prototype: BOOL getKeyboardLayoutName (LPTSTSTSTSTSZZKLID);

function:

PWSZKLID: Buffer pointer, buffer in the buffer to receive the name of the keyboard layout with at least KL_NAMELENGTH characters (including the empty end character). This parameter value will be a copy of the string provided to the LoadKeyboardLayout function, unless the keyboard layout is replaced.

Function Value: If the function call is successful, it returns a non-0 value. If the function call fails, the return value is 0. To get more error messages, you can call the getLastError function.

Remarks: Windows NT: getKeyboardLayoutname Receive the name of the active keyboard layout of the system.

Windows 95: getKeyboardLayoutName Accepts the name of the active keyboard layout of the calling thread.

Speed: Windows NT: 3.1 and above; Windows: 95 and above version; Windows CE: does not support; header file: winuser.h; library file: user32.lib; unicode: Unicode and ANSIs are implemented on Windows NT Specimen.

"NO YES YES543 GetKeyboardState Returns Virtual Keyboard Status" function: This function copies the status of 256 virtual keys to the specified buffer.

Function prototype: BOOL getKeyboardState (pbyte lpkeystate);

parameter:

LPKEYSTATE: Points to a 256-byte array that is used to receive the status of each virtual key.

Return Value: If the function call is successful, the 0 value is returned. If the function call is unsuccessful, the return value is 0. To get more error messages, you can call the getLastError function.

Note: The application can call this function to check the current status of all virtual keys. When the keyboard message is removed from the message queue of the thread, the state of the virtual key changes. When the keyboard message is sent to the message queue of the thread, or when the keyboard message is sent to the message queue of the other thread or the status of the virtual key does not change when it is detected from the message queue from other threads. (Exception: Sharing the same keyboard status through the thread connected to AttachThreadInput.) When the function returns, each array member points to each array member points to each array member is included in the status data of a virtual key. If the highest bit is set to 1, the key is in the DOWN state; otherwise, the key is in the UP state. If the lowest bit is set to 1, the button is triggered. When a button is opened, it is called triggered, such as a CapSlock key. If the minimum bit is set to 0, the key is turned off and is not triggered. A trigger key is also the indicator (if any) on the keyboard (if any) is lit when the button is triggered, and it is destroyed when it is not triggered. To check the status information of a single virtual key, you can call the getKeyState function. To check the current state of a virtual key, regardless of whether the corresponding keyboard message is expected to be detected from the message queue, you can use the getasynckevState function. The application can use virtual keycase constants vk_shift, vk_control, and vk_menu as the subscript of the array pointed to by LPKEYSTATE. The state of the SHIFT, CTRL, and Alt keys thus given are not distinguished. The application can also be used as virtual key codes constant as left and right above the key distinction bond index: VK_LSHIFT, VK_RSHIFT, VK_LCONTROL, VK_RCONTROL; VW_LMENU, VW_RMENU only when the application calls the GetKeyboardState; when SetKeyboardState, GetAsycKeystate, GetKeyState and MapVirtualKey function, Use these constants that can distinguish between left and right keys.

Quick check: Windows NT: 3.1 and above; Windows: 95 and above; Windows CE: does not support; header file: winuser.h; library file: user32.lib.

"Yes Yes Yes544 GetKeyboardType return keyboard information Yes Yes Yes545 GetLargestConsoleWindowSize return to the window size of the maximum likelihood No Yes Yes546 GetLastActivePopup determine the closest active pop-up window" Function: This function determines which of the specified window is a pop-up window recent activity window.

Function prototype: hwnd getLastactivePopup (HWND HWND);

parameter:

HWND: Owner window handle.

Return Value: The return value identifies the handle of the recent active pop-up window. Return the value and parameter hWnd if one of the following conditions is met

Same: The window specified by hwnd is the most recent activity: The window specified by hwnd does not have any pop-up window; the window specified by the hwnd is not a top window or it belongs to another window.

Quick check: Windows: 3.1 or above; Windows: 95 or above: Windows CE: Do not support; header file: winuser.h;

Library file: user32.lib.

"Yes Yes Yes547 GetLastError returns expansion error code No Yes Yes548 GetLengthSid return SID length No Yes Yes549 GetLocalTime returns the local time and date No Yes Yes550 GetLocaleInfo Access to the local information No Yes Yes551 GetLogColorSpace acquisition logic of the color space information No Yes Yes552 GetLogicalDriveStrings from the record return legally drive string No Yes Yes553 GetLogicalDrives specified legitimate drive No Yes Yes554 GetMailslotInfo return mail information No Yes Yes555 GetMapMode return to image mode Yes Yes Yes556 GetMenu return to the menu handler for the specified window "function: this function is achieved assigned to the specified window menu Handle. Function prototype: HMENU GetMenu (HWND HWND);

parameter:

HWND: The handle of the window obtained by its menu handle.

Return Value: The return value is the handle of the menu. Returns NULL if the given window does not have a menu. If the window is a sub-window, the return value is not defined.

Speed: Windows NT: 3.1 and above; Windows: 95 and above; Windows CE: Do not support; header file: Winuser.h; Enter the library: user32.lib.

"Yes Yes Yes557 GetMenucheckMarkDimensions Returns the default check tag bitmap size" function function: Returns the size of the default pick tag bitmap. This bitmap is displayed next to the selected menu item. Call SETMENULTEMBITMAPS To place the Menu Item Before the pick-up marker is a map, the application must call GetMenuCheckMarkDimensions to determine the appropriate bitmap size.

Function prototype: Long getMenucheckMarkDimensions;

Parameters: None.

Return Value: The return value specifies the height and width of the default pick tag (according to pixels). The high level contains a height and the low word contains the width.

"YES YES YES555 GetMenuContextHelpid No Yes YES559 GetMenudefaultItem" Determines the Default Item "function function on the specified menu: This function determines the default item on the specified menu.

Function prototype: uint getmenudefaultItem (Hmeny Hmenu, Uint Fbypos, Uint Gmdiflags);

parameter:

HMENU: Get the handle of the menu of the default.

FBYPOS: Used to determine the identifier of the menu item or the value of the location. If this parameter value is false, return the identifier, otherwise return the position.

GMDIFLAGS: Specifies how functions look up menu items. This parameter can pick up or multiple of the following values:

GMDI_GOINTOPOPUPS: If the default item opens the submenu, this function recursively lookscated in the corresponding submenu. If the submenu does not have a default, the return value indicates the item that opens the submenu. By default, the function returns the first default item of the specified menu, regardless of whether it opens a submenu.

GMDI_USEDISABLED: The specified function returns a default, even if the item is invalid. By default, the function skips an entry that is invalid or beat.

Return Value: If the function call is successful, the return value is the identifier or position of the menu item; if the function call fails, the return value is C1. If you want to get more error messages, call the getLastError function. Speed: Windows: 4.0 and above; Windows: 95 and above version: Windows CE: Do not support; header file: Winuser.h; Enter the library: user32.lib.

"No Yes Yes560 GetMenuItemcount Return Menu Item" function: This function determines the number of menu items in the specified menu.

Function prototype: int GetMenultemcount (HMenu Hmenu);

parameter:

HMENU: Handle of the menu checked.

Return Value: If the function call is successful, the return value is the number of menu items specified in the menu; if the function call fails, the return value is C1. If you want more error messages, call the function getLastError function.

Speed: Windows NT: 3.1 and above; Windows: 95 and above version; Windows CE: does not support; header file: winuser.h; enter the library: user32.fib.

"YES YES YES561 GetMenuItemID Return Menu" Item Yes Yes562 GetMenuItemInfo acquired a menu item information "function function" function function "function function" This function gets information about a menu item.

Function prototype: Bool getMenuiteminfo (HMENU HMENU, UINT UITEM, BOOL FBYPOSION, LPMENUITEMINFO LPMII);

parameter:

HMENU: The handle containing the menu of the specified menu item.

UItem: The identifier or position of the menu item of the information will be taken. The meaning of this parameter depends on the value of the parameter fbyposition.

FbyPosition: This value is used to specify the meaning of the parameter UIITEM. If this parameter is false, UITEM represents the identifier of the menu item. Otherwise, indicate the location of the menu item.

LPMII: Pointer to the architecture of the structure MenuItemInfo; this structure specifies the information to be acquired and receives information of the menu item.

Return Value: If the function call is successful, return a non-zero value: If the function call fails, the return value is zero. If you want to get more error messages, call the getLastError function.

Note: In the Windows CE environment, the Fmask member of the Menuiteminfo structure pointed to by the parameter lpmii cannot take the MIM_CHECKMARKS flag.

Speed: WindowsNT: 4.0 and above; Windows: 95 and above; Windows: 1.0 and above version; header file: winuser.h; enter the library: user32.lib unicode: In the Windows NT environment, it is implemented in Unicode and ANSI. .

"No Yes Yes563 GetMenuItemRect" Boundary Rectangle "function function for specifying menu items: This function gets the boundary rectangle of the specified menu item.

Function prototype: Bool getMenuItemRect (HWND HWND, HMENU HMENU, UINT UIITEM, LPRECT LPRCITEM); parameter:

HWnd: The handle of the window with the specified menu.

In the Windows NT and Windows 98 environments, this function will find the menu window if this value is null and HMenu represents a pop-up menu.

UItem: Menu item relative to zero position.

Lpritem: Pointer to the structure RECT, which receives the boundary rectangle of the specified menu item (press the screen coordinate).

Return Value: If the function call is successful, return a non-zero value; if the function call fails, the return value is zero. If you want to get more error messages, call the getLastError function.

Speed: WindowsNT: 4.0 and above; Windows: 95 and above; Windowsce: 1.0 and above; header file: Winuser.h; Enter the library: user32.lib.

"NO YES YES564 GetMenustate Returns the menu tag" function function for specifying menu items: This function gets the menu flag associated with the specified menu item. If the menu item opens a submenu, the function returns the number of menu items in the submenu.

Function prototype: uint getmenustate (HMENU HMENU, UINT UID, UINT UFLAGS)

parameter:

HMENU: The flag containing its menu item will be given the handle of the menu.

UID: The menu item that it will be acquired, this parameter mean is determined by the parameter uflags.

UFLAGS: The value used to specify the meaning of the parameter ULD. This parameter can remove one of the following:

MF_BYCOMMAND: Indicates the identifier of the parameter UID to the menu item. If MF_BYCOMMAND and MF_BYPOSITION are not specified, MF_BYCOMMAND is the default.

MF_BYPOSITION: Indicates that the parameter UID gives the menu item relative to zero.

Return Value: If the specified item does not exist, the return value is oxfffffffff; if the menu item opens a submenu, the low position of the return value contains the menu flag associated with the menu, the high number contains the number of items with the submenu. Otherwise, the return value is a mask (Boolean or) of the Level Sign.

The menu logo related to the menu item is listed below.

MF_CHECKED: Place the selected tagging from the menu item (only for the drop-down menu, submenu, or shortcut menu).

MF_DISABLED: Enables the menu item to be invalid. MF_GRAYED: Enables the menu item to be invalid and empty. MF_HILITE: Highlight menu items.

MF_MENUBARBREAK: Take the drop-down menu, submenu, and shortcut menu, new column and old columns separated by vertical lines, and the rest functions are with the MF_Menubreak flag.

MF_MENUBREAK: Place the menu item in a new row (for the menu bar) or the unique column (for the drop-down menu, submenu or shortcut menu).

MF_SEPArator: Create a horizontal separation line (only for drop-down menus, submenu, or shortcuts).

"YES YES YES565 GetMenustring" Menu item string copy into buffer "function function: This function copies the text string of the specified menu item to the specified buffer.

Function prototype: int Getmenustring (HMenu Hmenu, Uint UidItem, LPTSTR LPSTRING, INT NMAXCOUNT, UINT UFLAG); Parameters:

Hwenu: Menu handle.

UidItem: Specifies the menu item that will be modified, and its meaning is determined by the parameter uflag.

LPSTRING: Pointer to the buffer, the buffer accepts a string ended with `/ 0 '. If this parameter is NULL, the function returns the length of the menu string.

nmaxcount: Specifies the maximum number of characters that will be copied. If the string length is larger than the maximum value specified by this parameter, the excess character is cut off. If this parameter is 0, the function returns the length of the menu string.

UFLAG: Specify how the parameter uiditem is explained. This parameter can remove one of the following:

MF_BYCOMMAND: indicates the identifier of the parameter uiditem to the menu item. If MF_BYCOMMAND and MF_BYPOSITION are not specified, MF_BYCOMMAND is the default.

MF_BYPOSITION: Indicates that the parameter uiditem gives the menu item relative to zero.

Return Value: If the function call is successful, the return value is the number of characters copied to the buffer, does not include the end '/ 0' ending: If the function call fails, the return value is zero.

Note: The value of the parameter nmaxcount must be larger than the length of the text string to accommodate the '/ 0' end of the end. If the value of the parameter nmaxcount is zero, the function returns the length of the menu string.

"YES YES YES566 GetMessage Returns a message from the clue message queue" function function: This function takes a message from the message queue called the thread and puts it in the specified structure. This function can obtain a message to contact with the specified window and thread messages sent by PostthReadMesSge. This function receives a range of message values. GetMessage does not receive messages belonging to other threads or applications.

Function prototype: BOOL getMessage (lpmsg lpmsg, hwnd hwnd, uint wmsgfiltermin, uint wmsgfiltemax);

parameter:

LPMSG: Pointer to the MSG structure, which receives message information from the message queue of the thread.

HWnd: The handle of the window of the message is obtained. This is a value (NULL) having a special meaning. GetMessage retrieves messages for any window that belongs to the call thread, and the thread message is sent to the calling thread via PostthReadMessage.

WMSGFILTERMIN: Specifies the integer of the minimum message value of the retrieved.

WMSGFiltermax: Specifies the integer of the most logical message value being retrieved.

Return Value: If the function gets a non-zero value. If the function gets a WM_QUIT message, the return value is zero. If an error occurs, the return value is _1. For example, when HWnd is an invalid window handle or LPMSG is an invalid pointer. If you want to get more error messages, call the getLastError function.

Note: The application usually uses the return value to determine if the main message loop is looped and exits the program.

GetMessSge only receives messages associated with the window or sub-window identified by the parameter HWnd, and the sub-window is determined by the function ischild, and the range of message values ​​is given by the parameter WMSGFILTERMAX. If hwnd is NULL, getMessage receives a message belonging to the window of the calling thread, and the thread message is sent by the function postthreadMessage to the calling thread. GetMessage does not receive a message that belongs to another thread or other thread, even if hwnd is NULL. The thread message sent by PostthreadMessage whose message hwnd value is NULL. If WMSGFILTERMIN and WMSGFILTERMAX are zero, getMessage returns all available messages (ie, no range filtering). Constant WM_KEYFIRST and WM_KEYAST can be used as filter values ​​all messages related to keyboard input: constant WM_MOUSEFIRST and WM_MOUSELST can be used to receive all mouse messages. If WMSGFILTERMIN and WMSGFILTERMAX are zero, getMessage returns all available messages (ie, no range filtering).

GetMessage does not clear the WM.PAINT message from Queue. The message will remain in the queue until the process is completed.

Note that the return value of this function is non-zero, zero or -1, and the following code should be avoided:

While (GetMsg, HWND, 0, 0) ...

-1 The possibility of return values ​​indicates that such code can cause fatal applications errors.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windows: 1.0 and above version: Header file: winuser.h; Enter the library: user32.Iib; unicode: in a Windows NT environment in Unicode and ANSI mode achieve.

"Yes Yes Yes567 GetMessageExtrainfo Information" function function "" function function "" This function acquires additional message information for the current thread. Additional message information is a 32-bit value associated with the message queue of the application or driver defined with the current thread. You can use SetMessageExtRalnfo to set additional message information for threads, which will remain before the next time call GetMessage or PeekMessage.

Function prototype: Long getMessageExtrainfo (Void);

Parameters: None.

Return Value: The return value is additional information. Additional information is a specific device.

Speed: Windows NT: 3.1 and above; Windows: 95 and above; Windows CE: Do not support; header file: Winuser.h; Enter the library: user32.lib.

"YES YES YES568 GetMessagePos Returns the Cursor Location" function function: This function returns a long and elevated value indicating the cursor position under the screen coordinates. This location indicates that the point occupied by the last message by getMessage.

Function prototype: DWORD GetMessagePos (Void);

Parameters: None.

Return Value: The return value gives the x, y coordinates of the cursor position. X coordinate at low integers, Y coordinate in high integers.

Remarks: As mentioned earlier, the X coordinate is in the low integersion of the return value, the Y coordinate is at high integers (both indicate a symbol value, because the negative value can be obtained in the system of the multi-display). If the return value is assigned to a variable, you can use the MakePoint macro to get the Point structure from the return value. You can also extract x, y coordinates with GET_X_LPARAM or GET_Y_LPARAM macro. To get the current position of the cursor rather than the position of the last message, call the function getcursorpos.

Important: Do not take the x, y coordinate of the mouse position with loword or hiword macro, because the incorrect result will be returned in the multi-display system. The negative x, y coordinates can be obtained in the system of multi-display, but Loword and HiWord use the coordinates as unsigned quantities.

Under Windows CE, the cursor position is when using a record pen instead of a mouse, the cursor position is when the information is obtained by getMessage, the position on the touch screen is recorded.

Quick check: WindowsNT: 3.1 and above; Windows: 95 and above; Windows Ce: 1.0 and above; header file: winuser.h; enter the library: user32.lib.

"YES YES YES569 GetMessageTime Returns the Time Position" function function: This function returns the message time of getting the previous message from the current thread queue from GetMessage. Time is a long integer, specifying the occupancy time (ie, putting a thread message queue) from the system (ie, placed in milliseconds).

Function prototype: long getMessageTime (void);

Parameters: None.

Return Value: The return value is the message time.

Note: The value returned by GetMessageTime is not necessarily growth, because the timer count exceeds the maximum value of the long integer, and then calculates from zero. To calculate the delay time between the message, you must verify that the second message is larger than the time of the first message, and then subtract the time of the first message with the second message.

Speed: Windows NT: 3.1 and above; Windows: 95 and above version; Windows CE: does not support; header file: Winuser.h Input Library: USER32, LIB.

"Yes Yes Yes570 GetMetaFile established WINDOWS metafile Yes Yes Yes571 GetMetaFileBitsEx WINDOWS metafile will be copied into the buffer No Yes Yes572 GetMetaRgn primitive returns the current region No Yes Yes573 GetMiterLimit returns the current length of the MITER-JOIN No Yes Yes574 GetModuleFileName Returns the specified module path Yes Yes Yes575 GetModuleHandle returns the module handle Yes Yes Yes576 GetNamedPipeHandleState return named pipe handle message No Yes Yes577 GetNamedPipeInfo return named pipe handle message No Yes Yes578 GetNearestColor return to the nearest available color Yes Yes Yes579 GetNearestPaletteIndex returned nearest matching color Yes Yes Yes580 GetNextDlgGroupItem Returns the handle of the previous or last set of controls "function function: This function retrieves the first control of the control group, which follows the control specified in the dialog. Function prototype: hwnd getnextdlgroupItem (HWND HDLG, HWND HCTL, BOOL BPREVIOUS);

parameter:

HDLG: Identify the dialog that is being searched.

HCTL: Specifies the control used as a search start point. If this parameter is empty, the function will start with the last point.

BPREVIOUS: Specify how the parameter searches, if this parameter is true, the function looks for control in the previous control group. If False, the function looks for the next control in the control group.

Return Value: If the getNextdlGroupLtem function call is successful, the return value is controlled in the control group. If the function call fails, the return value is zero. If you want to get more error messages, call the getLastError function.

Request: The getnextdlgroupItem function is looking for controls in the order (or opposite order) in the dialog template. The first control of the control group must have a WS_GROUP type; all other control groups are controlled must be created in order and must have a WS_GROUP type.

When looking for previous controls, the function returns to the first position and does not fail control. If there is a WS_GROUP type, the function is temporarily reversed to find the first control with the WS_GROUP type, then returns to the original direction to find, return visual, and unfair, the first control, Returns hwndctrl if no control is found.

When looking for the next control, the function returns visual control at the first position and does not have a WS_GROUP type. If you encounter a control with a WS_GROUP type, the function reverse looks for the first control with the WS_GROUP type, and this control is returned if this is controlled. Otherwise, the function returns to the original direction, returns to the first control of visual, and does not fail. If no control is found. Then return HCTL.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windowsce: 1.0 and above; header file: winuser.h; library file: user32.lib.

"YES YES YES581 GetNextdlgTabItem Returns" Function "function function: This function retrieves the first control handle of the WS_GROUP type, which controls the specified control. Function prototype: hWnd getnextdlgtabltem (HWND HDLG, HWND HCTL, BOOL BPREVIOUS);

parameter:

HDLG: Identify the dialog that will be searched.

HCTL: Specifies the control used as a search start point. If this parameter is NULL, the function is controlled in the last (or next) control as a search start point.

BPREVIOUS: Specify how functions look for dialogs. If this parameter is TRUE, the function looks for control in the previous dialog. If you are false, the function looks for control in the next dialog.

Return Value: If the getNextdlgTabItem function call is successful, the return value is the window handle that is controlled by the last (or next) control of the WS_GROUP type. If the function call fails, the return value is NULL. If you want to get more error messages, call the getLastError function.

Remarks: The getNextdlGTablTem function looks for control according to the order (or reverse order) created in the dialog template. The function returns to the first location and does not fail control, which has a WS_GROUP type. If this control does not exist, the function returns HCTL.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windowsce: 1.0 and above; header file: winuser.h; library file: user32.lib.

"YES YES YES582 GetNextWindow Returns" Function Function: This function returns the handle of the previous or latter window in the z order. The next window is below the specified window, the front window is above. If the specified window is the top window, the function returns the handle of the next (or the previous) top window. If the specified window is the top window, the function returns the handle of the next (or the previous) top window. If the function is a sub-window, the function searches the handle of the next or the previous sub-window.

Function prototype: hwnd getnextwindow (hwnd hwnd, unit wcmd);

parameter:

HWND: Handle of a window. The window handle is obtained based on the WCMD parameters relative to the handle of this window.

WCMD: Indicates that the window returns the handle of the previous window or the handle of the latter window. This parameter can be one of the following two values:

GW hwnnext: Returns the handle of the following window at a given window.

GW_HWNDPREV: Returns the handle of the above window at a given window.

Return Value: If the function is successful, the return value is the handle of the previous window (or the latter window). If the front and rear window does not exist, the return value is NULL. To get more error messages, call the getLastError function.

Note: When setting the GW_HWNDNEXT or GW_GETPREV flag, call the function is the same as that call the getWindow function.

Quick check: Windows NT: 3.1 or above; Windows: 95 or above: Windows CE: Does not support: header file: Winuer.h; library file: user32.lib.

"Yes Yes Yes583 GetNumberFormat No Yes Yes584 GetNumberOfConsoleInputEvents returned to the queue number of the event console No Yes Yes585 GetNumberOfConsoleMouseButtons return the number of mouse buttons No Yes Yes586 GetNumberOfEventLogRecords get the number of records in the event log No Yes Yes587 GetOEMCP acquisition system OEM code page No Yes Yes588 GetObject returns an object information Yes Yes Yes589 GetObjectType return object types No Yes Yes590 GetOldestEventLogRecord return the oldest record number No Yes Yes591 GetOpenClipboardWindow return CLIPBOARD open window handle Yes Yes Yes592 GetOpenFileName file name of the dialog "function: this function creates an open common dialog box that allows users Specify the drive, directory, and file name, or use the user to open the file. Function prototype: BOOL getopenFileName (LPopenFileName LPOFN);

parameter:

LPOFN: An OpenFileName structure that contains information that contains the initialization dialog. This structure contains information about user files when the OpenFileName function returns.

Return Value: If the user specifies a file name, click the OK button, the return value is non-zero. The buffer pointed to the LPSTRFILE member of the OpenFileName contains full path and user-specified file name. If the user cancels or off the Open dialog or error occurs, the return value is zero. To get more error messages, call the CommdlGextendedError function.

Note: Starting with Windows 95 and Windows NT 4.0, the default Open dialog provides user interface features similar to Windows Explorer. You can provide an OFNHOOKPROC hook function for a browser style Open dialog. Set the OFENFILFNAME structure of the Flags member of the OpenFilfname structure to indicate and specify the address of the hook function in the IPFNHOK member, allowing the hook function to take effect.

Windows 95 and Windows NT still support the old-style Open dialog to maintain a user interface consistent with a Windows 3.1 or Windows NT3.51 user interface. Enables the OFNHOOKPROCOLDSTYLE hook function and guarantee the Ofn_Explorer flags that are not set, you can display the old Open dialog.

To display a dialog box that allows users to select a directory instead of a file, call the shbrowseforfolder function.

Windows CE: is not a member of each OpenFileName structure to be defined in Windows CE. For more information on defining members, see the information topic of the OpenFileName structure.

Speed: WindowsNT: 3.1 and above; Windows: 95 and above; Windows Ce: 1.0 and above; header file: command: commdlg.h; library file: comdlg32.lib; unlcode: Unicode and ANSI in the Windows NT environment Two versions.

"No Yes Yes593 GetOutlineTextMetrics return TRUETYPE font metric type Yes Yes Yes594 GetOverlappedResult return the last of overlap results No Yes Yes595 GetPaletteEntries range palette entry returns Yes Yes Yes596 GetParent port handler returns the parent" Function: This function gets the parent of a child window specified Window handle. Function prototype: hwnd getparent (hwnd hwnd);

parameter:

HWND: Sub window handle, function To get the parent window handle of the sub-window.

Return Value: If the function is successful, the return value is the parent window handle. If the window is free of charge, the function returns NULL. To get more error messages, call the getLastError function.

Remarks: Windowsce: Windows CE1.0 version does not support the sub-window except the dialog box.

Speed: Windows NT: 3.1 or above; Windows: 95 or above; Windows CE: 1.0 or above: Header file: Winuser.h: library file: user32.lib.

"YES YES YES597 getPath All lines and curves in the path NO YES YES598 getPixel RG RGB Value RGB Value YES YES YES599 Getpixelformat no yes yes600 getPolyfillMode Returns the current polygon padding mode YES YES YES YES YES YES YES

转载请注明原文地址:https://www.9cbs.com/read-8949.html

New Post(0)