>here is the code i use to set the DisableTaskMgr value in the registry.
>this code with chr(1) as value doesn't creat a dword type.
>But when i put the value directly in the registry it works well.
>So why this code doen't give a dword type but a string type ?
>
>oReg.SetRegKey("DisableTaskMgr",chr(1),;
>"Software\Microsoft\Windows\CurrentVersion\Policies\System",;
>HKEY_CURRENT_USER,.t.)
The registry class that comes with VFP only allows you to store strings.
George
Ubi caritas et amor, deus ibi est