|
|
|
|
- Properties associated with the COMObjet type
- Functions that use COMObject variables
COMObject (Type of variable) In french: COMObjet
The COMObject type is used to represent an interface of a COM object. This type of variable is initialized by COMCreateInstance. Then, the methods of this interface can be called by COMCallMethod. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable // 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
Remarks Properties associated with the COMObjet type The following properties can be used to handle a COMObject variable: | | | Name | Type used | Effect |
---|
Address | System int | Address in memory of the interface pointer of the COM object. Remark: This property is intended for an advanced use only. We do not advise you to handle it directly. |
Functions that use COMObject variables
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|