read/write registry and screen class

hi,

just considering using php-gtk for a windows app, but it is a requirement that we use a couple of screens and read/write to the registry. i found the screen class in the gnome toolkit - is this accessible from php-gtk and will it give the info i need to run different windows on different screens?

i haven't been able to find any examples or reading/writing to the registry - is this possible?

thanks,

b

you can use COM with WScript.Shell or the REG command in Windows

<?php
$a
= new COM('WScript.Shell');
var_dump($a);
var_dump($a->RegRead("HKCR\.txt\\"));
//$a->RegWrite($key, $val, $type);
?>
OR
<?php
var_dump
(exec("REG query HKCR\.txt"));
?>
You can find more info on Google. Regards

win32std is not php-gtk

This is another way to build rich UIs with PHP on Windows, but it AIUI it basically exposes the native Win32 APIs (or at least a subset of these) in a PHP extension; this is completely different from PHP-GTK, which exposes a GLib / GTK API on top of, not Win32 itself.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.