Kbase 17594: How to Call WIN32 API Function: GetDesktopWindow
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
How to Call WIN32 API Function: GetDesktopWindow
DISCLAIMER:
===========
The code example in this knowledgebase is for informational purposes
only. If you have specific questions about which API calls would be
best suited to your design goals, please consult your Microsoft
documentation.
INTRODUCTION:
=============
The following sample code shows how to call the Win32 API function
called GetDesktopWindow. This function returns the handle of the
desktop window. The desktop window covers the entire screen. All
icons and other windows are painted on the desktop window. Special
purpose programs, such as screen savers and desktop applications need
to paint on the desktop.
This code has been tested on Windows NT 4.0 Workstation only.
DEFINE VARIABLE intDesktopHandle AS INTEGER NO-UNDO.
PROCEDURE GetDesktopWindow EXTERNAL "USER32.DLL":
DEFINE RETURN PARAMETER intDesktopHandle AS LONG.
END PROCEDURE.
RUN GetDesktopWindow(OUTPUT intDesktopHandle).
MESSAGE "Desktop Handle is " intDesktopHandle VIEW-AS ALERT-BOX.
Progress Software Technical Support Note # 17594