Thread Alle installierten Schriftarten in array schreiben (Win32) (17 answers)
Opened by Kean at 2011-05-23 10:58

GwenDragon
 2011-05-23 11:12
#149027 #149027
User since
2005-01-17
14761 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings;
$|=1;
use Win32API::Registry qw( :ALL );
my ($key, $uIndex, $name, $nameLength, $type, $data, $dataLength );
my $ok=RegOpenKeyEx( HKEY_LOCAL_MACHINE , "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts", 0, KEY_READ, $key );
if($key){
        my $uIndex=0;
        do{
                RegEnumValue ( $key, $uIndex, $name, $nameLength, [], $type, $data, $dataLength );
                print "$name=$data\r\n";
                $uIndex++;
                }
        while(!regLastError());
        }
RegCloseKey( $key );

Quelle: http://www.perlmonks.org/index.pl?node_id=663912
Last edited: 2011-05-23 11:40:47 +0200 (CEST)

View full thread Alle installierten Schriftarten in array schreiben (Win32)