You can invoke Microsoft Windows SDK functions from a user exit. Invoking Microsoft Windows SDK functions is similar to invoking user-defined foreign functions from a user exit on Microsoft Windows. Instead of including the object code files of your user-defined foreign function when building a dynamic link library, you must include the source files of the Microsoft Windows SDK function.
Parameter values for Microsoft Windows SDK functions can be passed to or received from Oracle Forms like other foreign functions. For Microsoft Windows SDK functions that require a window handle parameter, you can obtain the window handle from Oracle Forms using the GET_ITEM_PROPERTY function to examine the Window_Handle property. A window handle is a unique internal character constant that is used to refer to objects.
There are many reasons for accessing the Microsoft Windows SDK. For example, by obtaining a window handle from Oracle Forms, you can invoke Microsoft Windows SDK functions to externally modify the properties of objects in your Oracle Forms applications. The following is an example of calling the Microsoft Windows SDK function GetWindowRect from a Oracle Forms trigger or user-defined subprogram:
:block1.item_handle := get_item_property('block1.item1',Window_Handle);