From: Steinar H. Gunderson Date: Mon, 13 Jul 2009 14:22:31 +0000 (+0200) Subject: Register as a printing provider as well, for the benefit of Vista users. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=f595655353d04ea4902857f3a8caf7b9c28b71e6 Register as a printing provider as well, for the benefit of Vista users. --- diff --git a/perl/Sesse/pr0n/Registry.pm b/perl/Sesse/pr0n/Registry.pm index 14b5b14..4ebd4f7 100644 --- a/perl/Sesse/pr0n/Registry.pm +++ b/perl/Sesse/pr0n/Registry.pm @@ -22,6 +22,12 @@ sub handler { $r->print("\"DisplayName\"=\"$vhost\"\r\n"); $r->print("\"Description\"=\"$desc\"\r\n"); $r->print("\"HREF\"=\"http://$vhost/wizard\"\r\n"); + $r->print(""); + $r->print("[HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Currentversion\\Explorer\\PublishingWizard\\InternetPhotoPrinting\\Providers\\$vhost]\r\n"); + $r->print("\"Icon\"=\"http://$vhost/pr0n.ico\"\r\n"); + $r->print("\"DisplayName\"=\"$vhost\"\r\n"); + $r->print("\"Description\"=\"$desc\"\r\n"); + $r->print("\"HREF\"=\"http://$vhost/wizard\"\r\n"); return Apache2::Const::OK; }