ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous Windows functions
  • The GUIDs
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Instantiates a COM object (Component Object Model). A specific interface of the object is retrieved so that it can be used with COMCallMethod.
Example
WINDEVWindows
// Initialize the COM calls
API("ole32", "CoInitialize", 0)
 
// Initialize a Unicode string containing 260 characters
WallPaper is UNICODE string
WallPaper = AnsiToUnicode(RepeatString(" ", 260))
 
// Declare a COMObject variable
ActiveDesktop is COMObject
 
// Retrieve the interface for handling the desktop
ActiveDesktop = COMCreateInstance("75048700-EF1F-11D0-9888-006097DEACF9", ...
"F490EB00-1240-11D1-9888-006097DEACF9")
IF ErrorOccurred = False THEN
// Retrieve the image of the desktop wallpaper
COMCallMethod(ActiveDesktop, 4, &WallPaper, 260, 1)
 
Info("The image of the desktop is: " + UnicodeToAnsi(WallPaper))
END
Syntax
<Result> = COMCreateInstance(<Class Identifier> , <Interface Identifier>)
<Result>: COMObject variable
COMObject variable corresponding to the interface that will be used by COMCallMethod.
<Class Identifier>: Character string
GUID (globally unique identifier) of the class of the COM object to instantiate.
<Interface Identifier>: Character string
GUID (globally unique identifier) of interface of object to retrieve.
Remarks

The GUIDs

The GUIDs are strings composed of 32 hexadecimal characters separated (or not) by dashes (for example: 265EBF50-D4A0-448D-ADC6-EAD971CFB537). The case has no importance.
Component: wd290vm.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help