Using Win32 functions in Visual FoxPro Image Gallery
Window Station and Desktop
..msdn
CloseDesktop
CreateDesktop
GetThreadDesktop
OpenDesktop
OpenInputDesktop
SetThreadDesktop
SwitchDesktop
Code examples:
How to prevent users from accessing the Windows Desktop and from switching to other applications
How to start the screen saver and how to find whether the screen saver is active
CloseDesktop
..msdn    Add comment     W32 Constants      Translate this page
Closes an open handle to a desktop object.
Code examples:
How to prevent users from accessing the Windows Desktop and from switching to other applications
How to start the screen saver and how to find whether the screen saver is active
Declaration:
BOOL CloseDesktop(
    HDESK hDesktop
);

FoxPro declaration:
DECLARE INTEGER CloseDesktop IN user32;
    INTEGER hDesktop
Parameters:
hDesktop
[in] Handle to the desktop to be closed. This can be a handle returned by the CreateDesktop, OpenDesktop, or OpenInputDesktop functions.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
Do not specify the handle returned by the GetThreadDesktop function.

The CloseDesktop function will fail if any thread in the calling process is using the specified desktop handle or if the handle refers to the initial desktop of the calling process.

See also: CreateDesktop, OpenDesktop, OpenInputDesktop.
Word Index links for the CloseDesktop :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-09-04 16:10:52
Modified: 2005-09-04 16:24:32
Visited in last 7 days: 14
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.203.76)
6 sec.Function: 'InitiateShutdown'
12 sec.Function: 'NetGroupEnum'
19 sec.Function: 'ReplaceFile'
26 sec.
Function group: 'Coordinate Space and Transformation'
33 sec.Function: 'recvfrom'
38 sec.Example: 'GDI+: custom Clock Control'
47 sec.Function: 'sndPlaySound'
53 sec.Function: 'GetRTTAndHopCount'
1.02 min.Function: 'CeRapiFreeBuffer'
1.13 min.Function: 'WinHttpCloseHandle'
Google
Advertise here!