回答編集履歴

3

回答編集:コード中に変なの「"aPerceivedType"="image"」が残ってたので削除m\(__\)m

2017/02/22 08:59

投稿

Y.H.
Y.H.

スコア7914

test CHANGED
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  .jpgに関するレジストリから以下をコピーし`.jpg`を`.myjpg`に置き換えて登録すれば`*.myjpg`でサムネイル表示がされました。
4
2
 
5
3
  HKCR\.myjpg\shell\open\command の値は起動するプログラムを指定ください。
@@ -9,6 +7,18 @@
9
7
 
10
8
 
11
9
  regist-myjpg.reg
10
+
11
+
12
+
13
+ Windows7で動作確認しましたので、もしかするとWindows10では以下のGUID値(CLASSID)が変更になってるかもしれません。(変更はされてないとは思いますがねんのため)
14
+
15
+ 変更になってたら`HKEY_CLASSES_ROOT\SystemFileAssociations\.jpg\ShellEx\`を参照し.jpgのものをコピーしてください。
16
+
17
+ > [HKEY_CLASSES_ROOT\SystemFileAssociations\.myjpg\ShellEx\{e357fccd-a995-4576-b01f-234630154e96}]
18
+
19
+ > @="{C7657C4A-9F68-40fa-A4DF-96BC08EB3551}"
20
+
21
+
12
22
 
13
23
 
14
24
 
@@ -23,8 +33,6 @@
23
33
  "Content Type"="image/jpeg"
24
34
 
25
35
  @="myjpg"
26
-
27
- "aPerceivedType"="image"
28
36
 
29
37
 
30
38
 

2

回答編集:サムネイル表示のレジストリ登録を追加

2017/02/22 08:59

投稿

Y.H.
Y.H.

スコア7914

test CHANGED
@@ -1,3 +1,85 @@
1
+
2
+
3
+ .jpgに関するレジストリから以下をコピーし`.jpg`を`.myjpg`に置き換えて登録すれば`*.myjpg`でサムネイル表示がされました。
4
+
5
+ HKCR\.myjpg\shell\open\command の値は起動するプログラムを指定ください。
6
+
7
+ 以下では`"%ProgramFiles%\Windows NT\Accessories\WORDPAD.EXE" "%1"`としています。
8
+
9
+
10
+
11
+ regist-myjpg.reg
12
+
13
+
14
+
15
+ ```
16
+
17
+ Windows Registry Editor Version 5.00
18
+
19
+
20
+
21
+ [HKEY_CLASSES_ROOT\.myjpg]
22
+
23
+ "Content Type"="image/jpeg"
24
+
25
+ @="myjpg"
26
+
27
+ "aPerceivedType"="image"
28
+
29
+
30
+
31
+ [HKEY_CLASSES_ROOT\.myjpg\shell\open\command]
32
+
33
+ @=hex(2):22,00,25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,\
34
+
35
+ 00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,\
36
+
37
+ 4e,00,54,00,5c,00,41,00,63,00,63,00,65,00,73,00,73,00,6f,00,72,00,69,00,65,\
38
+
39
+ 00,73,00,5c,00,57,00,4f,00,52,00,44,00,50,00,41,00,44,00,2e,00,45,00,58,00,\
40
+
41
+ 45,00,22,00,20,00,22,00,25,00,31,00,22,00,00,00
42
+
43
+
44
+
45
+ [HKEY_CLASSES_ROOT\SystemFileAssociations\.myjpg]
46
+
47
+ "PreviewDetails"="prop:System.Photo.DateTaken;System.Keywords;*System.Photo.PeopleNames;System.Rating;*System.Image.Dimensions;*System.Size;System.Title;System.Author;System.Comment;*System.OfflineAvailability;*System.OfflineStatus;System.Photo.CameraManufacturer;System.Photo.CameraModel;System.Subject;*System.Photo.FNumber;*System.Photo.ExposureTime;*System.Photo.ISOSpeed;*System.Photo.ExposureBias;*System.Photo.FocalLength;*System.Photo.MaxAperture;*System.Photo.MeteringMode;*System.Photo.SubjectDistance;*System.Photo.Flash;*System.Photo.FlashEnergy;*System.Photo.FocalLengthInFilm;*System.DateCreated;*System.DateModified;*System.SharedWith"
48
+
49
+ "FullDetails"="prop:System.PropGroup.Description;System.Title;System.Subject;System.Rating;System.Keywords;*System.Photo.PeopleNames;System.Comment;System.PropGroup.Origin;System.Author;System.Photo.DateTaken;System.ApplicationName;System.DateAcquired;System.Copyright;System.PropGroup.Image;System.Image.ImageID;System.Image.Dimensions;System.Image.HorizontalSize;System.Image.VerticalSize;System.Image.HorizontalResolution;System.Image.VerticalResolution;System.Image.BitDepth;System.Image.Compression;System.Image.ResolutionUnit;System.Image.ColorSpace;System.Image.CompressedBitsPerPixel;System.PropGroup.Camera;System.Photo.CameraManufacturer;System.Photo.CameraModel;System.Photo.FNumber;System.Photo.ExposureTime;System.Photo.ISOSpeed;System.Photo.ExposureBias;System.Photo.FocalLength;System.Photo.MaxAperture;System.Photo.MeteringMode;System.Photo.SubjectDistance;System.Photo.Flash;System.Photo.FlashEnergy;System.Photo.FocalLengthInFilm;System.PropGroup.PhotoAdvanced;System.Photo.LensManufacturer;System.Photo.LensModel;System.Photo.FlashManufacturer;System.Photo.FlashModel;System.Photo.CameraSerialNumber;System.Photo.Contrast;System.Photo.Brightness;System.Photo.LightSource;System.Photo.ExposureProgram;System.Photo.Saturation;System.Photo.Sharpness;System.Photo.WhiteBalance;System.Photo.PhotometricInterpretation;System.Photo.DigitalZoom;System.Photo.EXIFVersion;System.PropGroup.GPS;*System.GPS.Latitude;*System.GPS.Longitude;*System.GPS.Altitude;System.PropGroup.FileSystem;System.ItemNameDisplay;System.ItemType;System.ItemFolderPathDisplay;System.DateCreated;System.DateModified;System.Size;System.FileAttributes;System.OfflineAvailability;System.OfflineStatus;System.SharedWith;System.FileOwner;System.ComputerName"
50
+
51
+ "InfoTip"="prop:System.ItemType;System.Photo.DateTaken;System.Keywords;*System.Photo.PeopleNames;System.Rating;*System.Image.Dimensions;*System.Size;System.Title"
52
+
53
+ "ExtendedTileInfo"="prop:System.ItemType;System.Photo.DateTaken;*System.Image.Dimensions"
54
+
55
+ "SetDefaultsFor"="prop:System.Author;System.Document.DateCreated;System.Photo.DateTaken"
56
+
57
+ "ImageOptionFlags"=dword:00000001
58
+
59
+
60
+
61
+ [HKEY_CLASSES_ROOT\SystemFileAssociations\.myjpg\ShellEx]
62
+
63
+
64
+
65
+ [HKEY_CLASSES_ROOT\SystemFileAssociations\.myjpg\ShellEx\{e357fccd-a995-4576-b01f-234630154e96}]
66
+
67
+ @="{C7657C4A-9F68-40fa-A4DF-96BC08EB3551}"
68
+
69
+
70
+
71
+ ```
72
+
73
+
74
+
75
+
76
+
77
+ ----
78
+
79
+
80
+
81
+
82
+
1
83
  shell拡張(Shell Extensions)を作成します。
2
84
 
3
85
  Explorerの拡張モジュールを作成する形になります。

1

回答追記

2017/02/22 08:30

投稿

Y.H.
Y.H.

スコア7914

test CHANGED
@@ -16,7 +16,9 @@
16
16
 
17
17
 
18
18
 
19
- 検索ワードとしては「Windows10 ShellExtention IExtractIcon IExtractImage」こんなところですかね。
19
+ 検索ワードとしては「Windows ShellExtention IExtractIcon IExtractImage」こんなところですかね。
20
+
21
+ 基本的に日本語の情報は少ないです。また、.NETでの実装を説明しているものは極々少数です。
20
22
 
21
23
 
22
24