T
topsuper
Unregistered / Unconfirmed
GUEST, unregistred user!
下面这个程序运行时总是提示‘Class Eolesys error message '标记没有引用存储'’
请GS
program PR_param;
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Dialogs, StdCtrls,Registry,ComObj, ShlObj;
var
ADeskTop:IActiveDesktop;
wallpaperwideChar;
lph: HKEY;
X: DWORD;
begin
X:=1;
RegOpenKey(HKEY_CURRENT_USER, 'Software/Microsoft/Windows/CurrentVersion/Policies/Explorer', lph);
RegSetValueEx(lph, 'ForceActiveDesktopOn', 0, REG_DWORD, @X, SizeOf(DWORD));
ADeskTop:=CreateComObject(CLSID_ActiveDesktop) as IActiveDesktop;
ADeskTop.SetWallpaper(PWideChar(paramstr(1)),0);
ADeskTop.ApplyChanges(AD_APPLY_ALL)
end.
请GS
program PR_param;
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Dialogs, StdCtrls,Registry,ComObj, ShlObj;
var
ADeskTop:IActiveDesktop;
wallpaperwideChar;
lph: HKEY;
X: DWORD;
begin
X:=1;
RegOpenKey(HKEY_CURRENT_USER, 'Software/Microsoft/Windows/CurrentVersion/Policies/Explorer', lph);
RegSetValueEx(lph, 'ForceActiveDesktopOn', 0, REG_DWORD, @X, SizeOf(DWORD));
ADeskTop:=CreateComObject(CLSID_ActiveDesktop) as IActiveDesktop;
ADeskTop.SetWallpaper(PWideChar(paramstr(1)),0);
ADeskTop.ApplyChanges(AD_APPLY_ALL)
end.