Using Win32 functions in Visual FoxPro Image Gallery
Window Station and Desktop
..msdn
CloseDesktop
CreateDesktop
GetThreadDesktop
OpenDesktop
OpenInputDesktop
SetThreadDesktop
SwitchDesktop
Code examples:
How to start the screen saver and how to find whether the screen saver is active
OpenDesktop
..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
Declaration:
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

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

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

dwDesiredAccess
[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  
FreeTranslation.com 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: 17
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.112.193)
19 sec.Function: 'GdipIsStyleAvailable'
36 sec.Function: 'midiOutGetNumDevs'
54 sec.Function: 'GetCurrentProcessId'
1.17 min.Function: 'PathIsDirectory'
1.47 min.Function: 'MQPathNameToFormatName'
1.73 min.Function: 'GetFileSizeEx'
2.03 min.Function: 'AVIStreamGetFrameOpen'
2.3 min.Function: 'SetParent'
2.58 min.Function: 'GetTimeZoneInformation'
2.83 min.Function: 'FtpCommand'
Google
Advertise here!