Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi CreateDesktop - ab welcher Windows Version?? (https://www.delphipraxis.net/11160-createdesktop-ab-welcher-windows-version.html)

SirThornberry 1. Nov 2003 10:02


CreateDesktop - ab welcher Windows Version??
 
Ab welcher Windowsversion funktioniert CreateDesktop?? Unter Windows95 und unter Windows98 bekomme ich immer 0 als Handle zurück, also gescheitert.

Delphi-Quellcode:
var desk : hDesk;
    dmode: TDeviceMode;
begin
  desk := CreateDesktop('desktop2', nil, @dmode, 0, DESKTOP_CREATEWINDOW or DESKTOP_SWITCHDESKTOP, nil);
wenn ich anstelle von "@dmode", "nil" einsetze gehts auch nicht.

Mirilin 1. Nov 2003 10:08

Re: CreateDesktop - ab welcher Windows Version??
 
:hi:

KLICK
Zitat:

Requirements :
Client: Included in Windows**XP, Windows**2000 Professional, and Windows**NT Workstation 3.51 and later. ...
Code:
HDESK CreateDesktop(
  LPCTSTR lpszDesktop,
LPCTSTR lpszDevice,
LPDEVMODE pDevmode,
DWORD dwFlags,
ACCESS_MASK dwDesiredAccess,
LPSECURITY_ATTRIBUTES lpsa
);
Zitat:

Parameters
lpszDesktop
[in] Pointer to a null-terminated string specifying the name of the desktop to be created. Desktop names are case-insensitive and may not contain backslash characters (\).
lpszDevice
Reserved; must be NULL.
pDevmode
Reserved; must be NULL.
dwFlags
[in] This parameter can be zero or the following value. Value
Meaning
DF_ALLOWOTHERACCOUNTHOOK
Enables processes running in other accounts on the desktop to set hooks in this process.
dwDesiredAccess
[in] Access to the desktop. For a list of values, see Desktop Security and Access Rights. This parameter must include the DESKTOP_CREATEWINDOW access right, because internally CreateDesktop uses the handle to create a window.
lpsa
[in] Pointer to a SECURITY_ATTRIBUTES structure that determines whether the returned handle can be inherited by child processes. If lpsa is NULL, the handle cannot be inherited. The lpSecurityDescriptor member of the structure specifies a security descriptor for the new desktop. If this parameter is NULL, the desktop inherits its security descriptor from the parent window station.

SirThornberry 1. Nov 2003 10:12

Re: CreateDesktop - ab welcher Windows Version??
 
thx.. :cry: weiß jemand wo ich Windows2000 Terminalserver kostenlos runterladen kann??

Phoenix 11. Dez 2003 08:31

Re: CreateDesktop - ab welcher Windows Version??
 
Ja: gar nicht. Zumindest nicht legal. :-o

Als alternative empfehle ich da immer: Linux-X-Server und einen X-Client auf Deiner Windows-Kiste. Liefert auch nen Terminal-Server, nur halt umsonst.

SirThornberry 11. Dez 2003 18:35

Re: CreateDesktop - ab welcher Windows Version??
 
naja, von linux bin ich inzwischen wieder weg, das war nicht so das wahre, gibts zu wenig progs dafür und kylix hab ich auch nicht...


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:51 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz