怎样禁止在控制面板修改系统时间?
请问怎样才能禁止在控制面板修改系统时间?一位朋友给我 Delphi的程序代码如下,
procedure tForm1.Timer1Timer( sender : tObject ) ;
var
h : HWND ;
begin
h := FindWindow( 'Date/Time Properties' ) ;
if( h > 0 ) then
SendMessage( h, WM_CLOSE, 0, 0 ) ;
end ;
可是无法通过编译,为什么呢?
我是第一次来的菜鸟,只给10分好吗?拜托!