Using Win32 functions in Visual FoxPro Image Gallery
Window Station and Desktop
Code examples:
How to start the screen saver and how to find whether the screen saver is active
..msdn    Add comment     W32 Constants      Translate this page
The OpenDesktop function opens the specified desktop object.
Code examples:
How to start the screen saver and how to find whether the screen saver is active
HDESK OpenDesktop(
  LPTSTR lpszDesktop,
  DWORD dwFlags,
  BOOL fInherit,
  ACCESS_MASK dwDesiredAccess

FoxPro declaration:
DECLARE INTEGER OpenDesktop IN user32;
    STRING  lpszDesktop,;
    LONG    dwFlags,;
    INTEGER fInherit,;
    INTEGER dwDesiredAccess

[in] Pointer to null-terminated string specifying the name of the desktop to be opened.
[in] This parameter can be zero or the following value.

[in] If this value is TRUE, new processes inherit the handle. Otherwise, this handle is not inherited.

[in] Access to the desktop.
Return value:
If the function succeeds, the return value is a handle to the opened desktop.
My comment:
Desktop names are case-insensitive. This desktop must belong to the current window station.

When you are finished using the handle, call the CloseDesktop function to close it.
Word Index links for the OpenDesktop :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2005-11-09 19:45:02
Modified: 2005-11-09 19:47:48
Visited in last 7 days: 30
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
22 sec.Function: 'WritePrivateProfileString'
43 sec.Function: 'GdipFillPieI'
1.05 min.Function: 'CM_Request_Device_Eject_Ex'
1.37 min.Function: 'ToAscii'
1.85 min.Function: 'GetFileTime'
2.15 min.Function: 'ExitWindowsEx'
2.48 min.Function: 'WriteProcessMemory'
2.8 min.Function: 'MessageBox'
3.12 min.Function: 'IsValidSid'
3.42 min.
Function group: 'Window Class'
Advertise here!