|
|
|
|
|
Miscellaneous Windows functions
The miscellaneous Windows functions are as follows:
| | API | Runs a function found in an external DLL. | APIConfigure | Modifies the options for calling API and CallDLL32. | BitcoinValidAddress | Checks whether a Bitcoin wallet address is valid. | CallDLL32 | Runs a function found in an external DLL. | CallInterface | Runs a method of an interface of an object implemented in a DLL external to the WINDEV framework. | COMCallMethod | Runs a method of an interface of a COM object instantiated by COMCreateInstance. | COMCreateInstance | Instantiates a COM object (Component Object Model). | COMQueryInterface | Calls the QueryInterface method of the specified COM object to get a specific interface of this object so that it can be used with COMCallMethod. | CreateShortcut | Creates a shortcut on the Windows desktop, in the "Start" menu of Windows or in a specific directory. | DeleteShortcut | Deletes a shortcut previously created by CreateShortcut from the Windows desktop, from the "Start" menu of Windows or from a specific directory. | FreeDLL | Frees the 32-bit library (DLL) that was loaded in memory by LoadDLL. | HiWord | Returns the two high bytes of an integer. | IBANValid | Checks the validity of an International Bank Acount Number (IBAN). | IconInstall | Creates an icon (associated with a program) in a group of Windows programs, with the associated command line. | Instance | Returns the "system handle" (HINSTANCE) of the current program. | KeyPressed | Checks which key is pressed. | LoadDLL | Loads the specified library (DLL) in memory. | LoWord | Returns the two low bytes of an integer. | MakeInteger | Builds a 4-byte integer from two 2-byte integers. | OpenSSLCheck | Checks, via a public key, that the signature of data performed with the OpenSSL library is correct. | Ping | Checks whether a network address can be reached by using the ICMP protocol (similar to the PING network utility). | sComputeCrc16 | Checks a character string before and after transmission between WINDEV applications and WEBDEVsites. | sComputeCrc32 | Calculates the Cyclical Redundancy Check (CRC) of buffer. | SendKey | Simulates the keystrokes and the mouse actions. | Transfer | Copies a block of bytes or a fixed-length string from a memory address into another one. | WindowsVersion | Returns the runtime mode of Windows. |
You also have the ability to use the following types of variables:
| | API description | An API Description variable is used to describe an API, its parameters, its return value and its calling options by programming. |
Related Examples:
|
Unit examples (WINDEV): Strings with APIs
[ + ] Using strings with APIs. The following functions are used: - StringRetrieve - Transfer
|
|
Training (WINDEV): WD SystemAPIs
[ + ] This example presents the use of the Windows APIs. Several WLanguage functions are used to perform the following operations: - Hide the system buttons of an MDI child window - Enumerate the opened windows - Retrieve/Modify the time of a double click - Retrieve the idle time on the computer - Empty the recycle bin (by using or not an "API descriptor" variable) - Change the screen background - Modify the caret (input cursor) of an edit control - Share a directory - Delete a share These functions use the Windows APIs. See the help window for more details.
|
|
Training (WINDEV): WD Screen Saver
[ + ] This example illustrates the creation of a screen saver with the WLanguage functions. The following topics are presented in this example: 1/ the periodic call to a procedure ("timers") 2/ the management of Windows events 3/ the system functions (call to Windows APIs) To use the screen saver: - Rename the executable (.EXE) to.SCR - Copy the file to the directory of Windows (Ex: C:\WINDOWS) - Open the window for the display properties of the desktop - Choose the "Screen Saver" tab - Select the screen saver generated by WINDEV
|
|
Training (WINDEV): WD DirectX
[ + ] DirectX is a set of libraries (or APIs) intended for programming multimedia applications. This example includes an internal component allowing you to use DirectX 9.0 in your WINDEV applications. All the APIs and interfaces of DirectX 9 have been implemented.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|