The bytes of an ItemID belong to the shell folder that made it. MS-SHLLINK does not describe them and Microsoft does not publish them. What follows comes from Joachim Metz’s reverse-engineered libfwsi documentation, and only covers the kinds this site’s viewer reads. Their layouts have changed between Windows versions.
What every item starts with
0Size the item’s size, in bytes22Class type indicator what kind of item this is13the item’s own datavaries
| Class type | Item |
|---|---|
0x1F | Root folder |
0x20–0x2F | Volume |
0x30–0x3F | File entry |
0x40–0x4F | Network location |
0x61 | URI |
0x71 | Control Panel item: a class ID at offset 14 |
| a fixed signature further in | Signature-based items: APPS, AugM, cabinet file, Control Panel category and file |
| ends in two class IDs | Delegate folder items |
| Others | Shown as bytes, labelled as an undocumented kind |
The class type byte is not a signature. Several kinds overlap it, so the viewer first checks the signature-based and delegate layouts (a fixed value at a fixed offset, or the delegate class ID at the offset the inner data size gives) and only then reads the class type.
Root folder (0x1F)
| Offset | Size | Name | Description |
|---|---|---|---|
| 0 | 2 | Size | The item’s size. |
| 2 | 1 | Class type | 0x1F. |
| 3 | 1 | Sort index | The folder’s position among its siblings. |
| 4 | 16 | Shell folder ID | A class ID, such as {20D04FE0-3AEA-1069-A2D8-08002B30309D} for Computer. |
| 20 | varies | Extension blocks | Optional: 0xBEEF0017 or 0xBEEF0026 have been seen. See Extension blocks. |
Sort indexes seen: 0x00 Internet Explorer, 0x42 Libraries,
0x44 Users, 0x48 My Documents, 0x50 My Computer,
0x58 Network, 0x60 Recycle Bin, 0x68 Internet Explorer,
0x80 Games. The shell folder IDs the viewer names are listed
below.
Volume (0x20–0x2F)
When bit 0 of the class type is set, the item holds a drive name:
| Offset | Size | Name | Description |
|---|---|---|---|
| 3 | 20 | Volume name | ASCII, filled with zeros, for example C:\. |
| 23 | 2 | Unknown | Its value differs from file to file (real shortcuts hold values such as 11 EE, 39 F4 and 00 00), so it looks like leftover memory. Purpose not known. |
| 25 | 16 | Shell folder ID | Optional class ID, present when the item is longer. |
| … | varies | Extension blocks | Optional: 0xBEEF0025, 0xBEEF0026 or 0xBEEF0027. |
Real shortcuts also hold the name in volume items whose class type does not have bit 0
set (for example 0x2A with K:\ at offset 3). The viewer takes a
drive letter, a colon and a backslash at offset 3 as a name too.
When bit 0 is clear, the item holds a class ID instead:
| Offset | Size | Name | Description |
|---|---|---|---|
| 3 | 1 | Flags | A flags byte. |
| 4 | 16 | Shell folder ID | A class ID for the volume. |
File entry (0x30–0x3F)
The class type’s low bits: 0x01 directory, 0x02 file, 0x04 the name is UTF-16. 0x80 means a class identifier follows.
| Offset | Size | Name | Description |
|---|---|---|---|
| 3 | 1 | Unknown | Usually zero. |
| 4 | 4 | File size | The size of the file in bytes. |
| 8 | 4 | Modified | A FAT date and time: the date in the low 16 bits, the time in the high 16 bits. UTC. |
| 12 | 2 | Attributes | The low 16 bits of the file attributes (see File attributes). Shortcuts saved by Windows 95 on FAT also set 0x8000. |
| 14 | varies | Primary name | Zero-terminated, ASCII unless flag 0x04 is set (then UTF-16). Before Windows XP it is the long name, when the file has one. On Windows XP and later it is usually the 8.3 short name, followed by one pad byte when needed to reach an even offset. |
| … | varies | Secondary name | Before Windows XP: the 8.3 short name directly after the primary name, with no padding; an empty string (one zero byte) when the primary name is itself short. The viewer calls this “SecondaryName”. |
| … | 16 | Class ID | Only when class flag 0x80 is set and no extension block is present: the shell folder class the item stands for. On Windows XP and later the same ID is in a 0xBEEF0003 block. |
| … | varies | Extension blocks | Windows XP and later. See Extension blocks. |
| last 2 | 2 | First extension offset | The offset, from the start of the item, of the first extension block. It is the last field of every block, so the last two bytes of the item. The viewer uses it to tell the two layouts apart: if it points at a block (size, then a 0xBEEFnnnn signature) the item has extension blocks, otherwise the next string is the secondary name. |
In a real Windows 95 shortcut the folder “Program Files” is stored as the primary name
Program Files followed by the secondary name PROGRA~1, and
Wordpad.exe as primary name with an empty secondary name.
Extension blocks
A file entry’s extra data is a run of blocks, each starting with the same three
fields. The signature’s high 16 bits are BEEF.
| Offset | Size | Name | Description |
|---|---|---|---|
| 0 | 2 | Size | The block’s size, these bytes included. |
| 2 | 2 | Version | Later fields depend on it. |
| 4 | 4 | Signature | 0xBEEF0004 is the file entry extension below. |
The 0xBEEF0004 block holds, after those eight bytes:
| Size | Present from | Name | Description |
|---|---|---|---|
| 4 | all | Created | A FAT date and time. |
| 4 | all | Accessed | A FAT date and time. |
| 2 | all | Long name offset | From the start of this block. |
| 2 | version 7 | Empty | Two empty bytes. |
| 8 | version 7 | File reference | The NTFS file reference: MFT entry and sequence number. |
| 8 | version 7 | Unknown | Purpose not known. |
| 2 | version 3 | Localised name offset | From the start of this block; zero if there is no localised name. |
| 4 | version 9 | Empty | Four empty bytes. |
| 4 | version 8 | Unknown | Purpose not known. |
| varies | version 3 | Long name | UTF-16, zero-terminated. |
| varies | version 3, if the localised name offset is not zero | Localised name (ANSI) | A resource reference such as @shell32.dll,-21781, zero-terminated, in the system code page. |
| varies | version 7, if the localised name offset is not zero | Localised name (UTF-16) | The same reference in UTF-16, zero-terminated. |
| 2 | version 3 | First extension offset | From the start of the shell item. |
Version 3 is Windows XP and 2003, 7 is Vista, 8 is 2008, 7 and 8.0, and 9 is 8.1 and 10. Every block, of any signature, ends with the two-byte first extension offset.
The other blocks, as libfwsi describes them. “Unknown” means libfwsi does not know the field either; the viewer shows those bytes labelled and does not guess.
| Signature | Name in the viewer | Data after the eight header bytes, before the first extension offset |
|---|---|---|
0xBEEF0000 | folder type | Either one unknown 32-bit value (14-byte block), or a folder type GUID and a second GUID (42-byte block). Related to shell libraries; the folder type is a key under Explorer\FolderTypes. |
0xBEEF0001 | URL stub | One unknown 32-bit value. |
0xBEEF0003 | class identifier | The shell folder class ID of the folders that follow (a GUID). |
0xBEEF0005 | find folder results | 16 unknown bytes (zero in every sample), then an embedded shell item list. |
0xBEEF0006 | user name | A UTF-16 user name, zero-terminated. |
0xBEEF0008 | Recycle Bin item | 8 unknown bytes, a FILETIME (probably the deletion time), a 520-byte UTF-16 field (probably the original path), then two UTF-16 strings (probably the Recycle Bin path and the file extension). libfwsi marks all of this as unverified. |
0xBEEF000A | merged folder source count | One 32-bit value, zero in samples. |
0xBEEF000E | sub shell item list | A 16-bit value (probably the count), then shell items. |
0xBEEF000B | executable names and times | Seen with cmd.exe, version 5: 8 empty bytes, a UTF-16 file name (%windir%\system32\cmd.exe), padding, a second name ({GUID}\cmd.exe), padding, two FILETIMEs of unknown meaning, an empty 32-bit value, the value 1, an empty value, and a third name; libfwsi cannot say whether the gaps are padding or empty arrays, so the viewer reads the gaps as zero runs. |
0xBEEF0010 | property set | Two unknown 32-bit values (the second probably the data size), then serialized property storage. See property store. |
0xBEEF0013 | search folder data | A 32-bit value, 24 zero bytes, one more unknown 32-bit value. |
0xBEEF0014 | URI class data | A class ID ({DF2FCE13-25EC-45BB-9D4C-CECD47C2430C} is CUri), then, for CUri, the class data: a size, 8 empty bytes, 0x00002B84, 8 empty bytes, a property count and for each property a 32-bit type, a 32-bit size and the data. The types are the Uri_PROPERTY_ values: 0 ABSOLUTE_URI, 1 AUTHORITY, 2 DISPLAY_URI, 3 DOMAIN, 4 EXTENSION, 5 FRAGMENT, 6 HOST, 7 PASSWORD, 8 PATH, 9 PATH_AND_QUERY, 10 QUERY, 11 RAW_URI, 12 SCHEME_NAME, 13 USER_INFO, 14 USER_NAME (UTF-16 strings), 15 HOST_TYPE (0 unknown, 1 DNS, 2 IPv4, 3 IPv6, 4 IDN), 16 PORT, 17 SCHEME (the URL_SCHEME_ value: 1 ftp, 2 http, 9 file, 11 https, 24 search-ms, 26 knownfolder and the rest of the 27 listed by libfwsi) and 18 ZONE (not implemented). The viewer decodes the table. |
0xBEEF0016 | unknown string block | A 16-bit value (seen: 2) and a short UTF-16 string. |
0xBEEF0017 | search home data | 74-byte block of 32-bit values and zeros, none of them understood. |
0xBEEF0019 | library folder type | A folder type GUID (for example the Documents library, {FBB3477E-C9E4-4B3B-A2BA-D3F5D3CD46F9}) and a second GUID. |
0xBEEF001A | document type with embedded items | A 16-bit value, a UTF-16 document type name (seen AcroExch.Document), then an embedded shell item list. |
0xBEEF0021 | property set | Serialized property storage. |
0xBEEF0025, 0xBEEF0026 | volume times | A 32-bit value (seen 0x11) and two (0025) or three (0026) FILETIMEs whose meaning is not known. |
0xBEEF0027 | property store | A 16-bit value, then serialized property storage. |
0xBEEF0029 | unknown 16-bit value | One unknown 16-bit value. |
Other signatures (libfwsi also notes 0xBEEF0002, 0009,
000C and BEBADB00, none seen in the wild with a known layout) are shown with the
block’s bytes under the label “Data”.
URI (0x61)
| Offset | Size | Name | Description |
|---|---|---|---|
| 3 | 1 | Flags | 0x80: strings are UTF-16. Bits 0x01 and 0x02 have been seen; their meaning is not known. |
| 4 | 2 | Data size | The size of the data that follows, not counting these two bytes; zero if none. |
| 6 | data size | Data | If the data size is not zero: two unknown 32-bit values, a FILETIME (for FTP, probably when the server was first reached), an unknown 32-bit value (0 or 0xFFFFFFFF), 12 zero bytes, one unknown 32-bit value, then three strings (FTP host, user name and password), each a 32-bit byte size and the string padded with zeros to a multiple of 4 bytes. |
| … | varies | URI | ASCII or UTF-16, zero-terminated. |
| … | 2 | Padding | Two zero bytes, then optionally a 0xBEEF0014 block (Windows Vista with Internet Explorer 7). |
Control Panel item (0x71)
| Offset | Size | Name | Description |
|---|---|---|---|
| 3 | 1 | Sort index | Seen: 0x80. |
| 4 | 10 | Empty | Zero. |
| 14 | 16 | Control Panel item ID | A GUID that says which Control Panel item this is. |
Signature-based items
These items have a four-byte signature at a fixed offset instead of a meaningful class type. The viewer recognises them by it.
| Kind | Signature and where | Layout |
|---|---|---|
Application (APPS) | 0x53505041 at offset 6 | Unknown 16-bit value, a data size (in a Windows 11 shortcut it is the item size minus 6, the signature and everything after it), the signature, three unknown 32-bit values (libfwsi’s sample holds 0x0008010A, 3, 1; a Windows 11 shortcut 0x0008057C, 3, 0), then serialized property storage and two empty bytes. Seen after the Applications folder root ({4234D49B-0245-4DF3-B780-3893943456E1}); checked on a real Windows 11 shortcut to an app (shell:AppsFolder). |
CD burning (AugM) | 0x4D677541 at offset 4 | Class byte (0 or 1), an empty byte, the signature, a count (2 or 4), an unknown 32-bit value, 0x00010000 when the count is 4, then sub shell items (seen in Windows XP after a volume item for the CD burning folder). |
| Cabinet file | 0x9E5A5871 at offset 8 | Two empty bytes, an unknown 32-bit value, the signature, an unknown 32-bit value (probably a size), then the UTF-16 name inside the cabinet. |
| Control Panel category | 0x39DE2184 at offset 4, item size 12 | Class byte (seen 1), an empty byte, the signature and a category number: 0 All items, 1 Appearance and Personalization, 2 Hardware and Sound, 3 Network and Internet, 4 Sounds, Speech and Audio Devices, 5 System and Security, 6 Clock, Language and Region, 7 Ease of Access, 8 Programs, 9 User Accounts, 10 Security Center, 11 Mobile PC. |
| Control Panel file | one of 0xFFFFEE79, 0xFFFFF444, 0xFFFFFF36 to 0xFFFFFF38, 0xFFFFFF9A, 0xFFFFFF9C, 0xFFFFFFFF at offset 4 with class byte 0 | Empty 32-bit, an unknown value (seen 0x6A00), another empty 32-bit, name and comment offsets in characters, then the UTF-16 path of the .cpl file, the name and the comments. |
Delegate folder items
A delegate folder keeps its own item layout. The item holds an inner data size, the inner
data and then two class IDs: the delegate class {5E591A74-DF96-48D3-8D67-1733BCEE28BA}
and the ID of the delegate folder; extension blocks (seen 0xBEEF0013 and
0xBEEF0019) can follow.
| Offset | Size | Name | Description |
|---|---|---|---|
| 2 | 1 | Class type | Varies by folder: 0x1F, 0x2E and 0x74 have been seen. |
| 3 | 1 | Unknown | Zero in every sample. |
| 4 | 2 | Inner data size | Not counting these two bytes. |
| 6 | inner size | Inner data | Private to the folder; layouts below. |
| … | 16 | Delegate class ID | Always {5E591A74-…-1733BCEE28BA}. |
| … | 16 | Delegate folder ID | Which folder: for example {DFFACDC5-679F-4156-8947-C5C76BC0B67F} user files, {F5FB2C77-0E2F-4A16-A381-3E560C68BC83} Removable Drives, {35786D3C-B075-49B9-88DD-029876E11C01} Portable Devices, {04731B67-D933-450A-90E6-4ACD2E9408FE} Search Folder. |
Inner data of the delegate folders
The viewer picks the layout by the delegate folder ID that ends the item. “Unknown” marks fields libfwsi does not explain. A nested item is an ordinary item without its own size field: its class byte comes first, and the 16-bit length before it counts the nested bytes only (as libfwsi describes it).
| Delegate folder | Inner data |
|---|---|
Search Folder {04731B67-D933-450A-90E6-4ACD2E9408FE} | Users property view data without its leading size: a signature, the property store size, the identifier size, the identifier, the property store and an empty 16-bit value. |
Portable Devices {35786D3C-B075-49B9-88DD-029876E11C01} | Six 32-bit values (seen 3 and 2 in two of them, zero in one), the character counts of two strings, a 16-bit value, the two UTF-16 strings, a 32-bit value (0x0D), the PortableDeviceValues class ID, a property count, the properties array and an empty 16-bit value. |
User files {59031A47-3F72-44A7-89C5-5595FE6B30EE} | A 32-bit value (0 or 2); when it is 2, a UTF-16 string that looks like a user name; then 8 empty bytes. |
Profile {DFFACDC5-679F-4156-8947-C5C76BC0B67F} | The signature CFSF, a 16-bit size and a nested file entry item; the item’s own extension blocks (0xBEEF0004) follow the folder ID. |
Removable Drives {F5FB2C77-0E2F-4A16-A381-3E560C68BC83} | The signature 0xF5A6B710, a 16-bit size and a nested volume item. |
The other delegate folders libfwsi lists (DLNA Media Servers, Recent Files, Frequent Places, Libraries, Portable Media Devices, Enhanced Storage, Previous Versions, Nethood, Wireless Devices, Common places, Printhood) have no layout in it. The viewer names them and shows their inner data as bytes.
Properties array
A count, then for each property: a GUID (the property set), a 32-bit property ID, a 32-bit VT type and the value. Delegate folder and MTP items hold them. The viewer decodes the value with the same types as the property store and names the property from the Windows property keys.
Game Folder (GFSI)
| Offset | Size | Name | Description |
|---|---|---|---|
| 2 | 1 | Class type | 0. |
| 3 | 1 | Empty | Zero. |
| 4 | 4 | Signature | GFSI (0x49534647). |
| 8 | 16 | Class ID | A GameExplorer GUID, {D1A7F7E0-D4E9-49E8-BF2C-CEAA01D2E670} seen. The item follows a root item for the Games folder {ED228FDF-9EA8-4870-83B1-96B02CFE0D52}. |
| 24 | 8 | Empty | Zero. The item is 32 bytes. |
Acronis True Image file (TIB)
| Offset | Size | Name | Description |
|---|---|---|---|
| 2 | 4 | Signature | 0xACB16752 (the bytes 52 67 B1 AC), directly after the size. |
| 6 | 4 | Unknown | Seen 1, 2, 3. |
| 10 | 8 | Empty | Zero. |
| 18 | 4 | Unknown | Seen 0x10, 0x11, 0x16. |
| 22 | 4 | Unknown | Possibly for higher precision time stamps. |
| 26 | 4 | Time | Unknown meaning; a FAT date and time (UTC), 0 if not set. |
| 30 | 4 | Unknown | Possibly for higher precision time stamps. |
| 34 | 4 | Time | Unknown meaning; a FAT date and time (UTC), 0 if not set. |
| 38 | 8 | Empty | Zero. |
| 46 | varies | Four strings | Each a 32-bit character count (terminator included; an empty string is 1) and a UTF-16 string. The third is the full path; the first looks like a file entry name; the second and fourth are unknown. |
Web Sites
Follows a root item for the Web Sites folder {B28AA736-876B-46DA-B3A8-84C5E30BA492}.
| Offset | Size | Name | Description |
|---|---|---|---|
| 2 | 2 | Empty | Zero. |
| 4 | 4 | Signature | 0xC001B000, meaning unknown. |
| 8 | 4 | Used data size | Probably the part of the item in use. |
| 12, 16 | 4, 4 | Unknown | Seen 4 or 5, and 7. |
| 20 | 4 | String 1 size | In bytes. |
| 24 | size | String 1 | UTF-16: the page title, or a copy of the URL. |
| … | 16 | Unknown | Four 32-bit values: seen 3, 4, 6 or 7, 0x0E. |
| … | 4 | String 2 size | In bytes. |
| … | size | String 2 | UTF-16: the URL. |
| … | 12 | Unknown | Two 32-bit values (seen 1 and 4) and two 16-bit values; then zeros up to the item size. |
Users property view
Follows a root item for Users Libraries {031E4825-7B94-4DC3-B131-E946B44C8DD5} or
Users {59031A47-3F72-44A7-89C5-5595FE6B30EE}. Class 0, then:
| Offset | Size | Name | Description |
|---|---|---|---|
| 3 | 1 | Empty | Zero. |
| 4 | 2 | Data size | The size of the data that follows, extension blocks not counted. |
| 6 | 4 | Data signature | 0x10141981 (32 bytes of data, unknown), 0x23A3DFD5 (4, unknown), 0x23FEBBEE (16: a known folder ID), 0x3B93AFBB (4, unknown), ARPI 0x49505241 (1060, unknown), 0xBEEBEE00 (4, unknown). |
| 10 | 2 | Property store size | 0 if none. |
| 12 | 2 | Identifier size | |
| 14 | identifier size | Identifier | The data of the signature’s row above. |
| … | store size | Property store | A serialized property store. |
| … | 2 | Empty | Zero. Extension blocks 0xBEEF0000 and 0xBEEF0019 can follow. |
Compressed folder (ZIP)
An item inside a ZIP archive that Windows shows as a folder. It has no class or signature of its own; it is recognised by the modification time written as text in the item.
Windows XP (text mm/dd/yy HH:MM at offset 24):
| Offset | Size | Name | Description |
|---|---|---|---|
| 2 | 2 | Unknown | Seen 0x08, 0x0B, 0x12. |
| 4 | 16 | Empty | Zero. |
| 20, 22 | 2, 2 | Unknown | Possibly the ZIP external file attributes and starting disk number. |
| 24 | 32 | Modified | UTF-16 text, for example 11/26/04 21:00. |
| 56, 58 | 2, 2 | Empty, unknown | Seen 0x08, 0x0B, 0x72 in the second. |
| 60, 64 | 4, 4 | Name length, string 2 length | In characters, terminator not counted. |
| 68 | varies | Name, string 2 | UTF-16, zero-terminated. |
Windows 10 (text mm/dd/yyyy HH:MM:SS or N/A at offset 36):
| Offset | Size | Name | Description |
|---|---|---|---|
| 2 | 6 | Unknown | Purpose not known. |
| 8, 16 | 8, 8 | Uncompressed size, compressed size | 64-bit. |
| 24 | 2 | Compression method | 0 stored, 8 DEFLATE. |
| 26 | 2 | Unknown | |
| 28 | 4 | CRC-32 | 0 if not available. |
| 32, 34 | 2, 2 | Unknown | Possibly the external file attributes, and a flag that selects the time format. |
| 36 | 42 | Modified | UTF-16 text. In the N/A form: the text, two zero 32-bit values around two unknown date and time values and two 1 values (to offset 78). |
| 78 | 6 | Empty, unknown, empty | Three 16-bit values; the middle one seen 0, 1, 4, 0x0C, 0xFFFF. |
| 84, 88 | 4, 4 | Name length, string 2 length | In characters, terminator not counted. |
| 92 | varies | Name, string 2 | UTF-16, zero-terminated; then an unknown 32-bit value. |
MTP storage device items
For a phone or camera. Class 0, a 16-bit data size, then a signature:
0x10312005 for the storage volume, 0x07192006 for a file entry.
Both then hold unknown values (a 32-bit value, four 16-bit values, another 32-bit value),
and end with a 32-bit 0x0D, the PortableDeviceValues class ID, a
properties array and an empty 16-bit value.
- Volume: 8 empty bytes, an unknown size, the character counts of the name, the identifier and the file system name, the number of GUID strings, those three UTF-16 strings and the GUID strings (78 bytes each, WPD event handler IDs).
- File entry: two FILETIMEs (probably modified and created), a GUID
(
WPD_CONTENT_TYPE_FOLDERfor a folder), an unknown size, three string lengths and the UTF-16 folder name, the folder name again and the folder identifier.
libfwsi marks this section TODO, so the field list is incomplete there too.
SolidWorks file entry
A file entry (class 0x32) whose name is UTF-16 although the class says otherwise,
seen after an item with the 0xBEEF0003 block of the SolidWorks Enterprise PDM
class {0BD8D793-D371-11D1-B0B5-0060972919D7}. After the name come a zero 16-bit
extension size, the seven ASCII bytes S.W.N.1, an entry type (1 directory, 2 file),
two unknown 32-bit values, an unknown 8-byte value (seen 2) and six empty bytes. The viewer
finds the form by that signature.
Items libfwsi lists as unknown
| Class | Seen | What the viewer reads |
|---|---|---|
0x01 | RealPlayer Cloud: “Shared By Me”, “My Collections” | Class, 0x26, a 32-bit value (0x0D, 0x0F), a byte, a 32-bit value (1), a byte (0x20, 0x08), then the UTF-16 name. |
0x00, 0x01, 0x02 | Hyper-V: a host name, a drive, a folder | Class 0: two zero values then a UTF-16 host name. Class 1: a drive name, then data, then the UTF-16 name at the end. Class 2: 15 bytes, a 32-bit value (0x11), three FILETIMEs, a zero value and the folder name. |
0x1F | A delegate folder item with a volume inside | Read as a delegate folder item. |
0x4C | After a Web Folders item (MSN web sites) | An unknown byte, a 32-bit value, 16 empty bytes, a 32-bit value (0x10), then two strings, each a 16-bit character count and UTF-16 text (a name and a URL). |
0x4E | A shell folder GUID after a flags byte | Flags byte, then the shell folder ID. |
0x67 | A GUID written as text | An unknown byte, a 32-bit value, then the UTF-16 string. |
0x76 | One sample | An empty byte, a 16-bit value, two 32-bit values (the second 0x90); the rest as bytes. |
0xFF | After the Network Connections item | An unknown byte, 32-bit values (one 0x30FE5EFF), two GUIDs, more unknown values, two UTF-16 strings (connection name, controller description), the second GUID again, a zero 32-bit value and 0xFFFF. |
The bits of the class type
For volume, file entry and network items the low bits of the class type are sub-types or
flags. The viewer decodes them in the Class field, from libfwsi:
| Items | Bit or value | Meaning |
|---|---|---|
Volume 0x20–0x2F (not 0x2E) | 0x01 | The item has a drive name (see Volume). |
0x02, 0x04 | Unknown. libfwsi saw them with 0x23 (C:), 0x25 (D:), 0x2A (J:) and 0x2F. | |
0x08 | Removable media, according to libfwsi (0x29 A:, 0x2A J:). The same bit is set in 0x2F items for the fixed drive C: in Windows 7 and 11 shortcuts, so it is not a reliable test. | |
File entry 0x30–0x3F | 0x01 | Directory. |
0x02 | File. | |
0x04 | The names are UTF-16. | |
0x08 | Unknown (possibly the common item dialog). | |
0x80 | The item has a class ID (junction related?). | |
Network 0x40–0x4F | low nibble | The sub-type: 1 domain or workgroup name, 2 server UNC path, 3 share UNC path, 6 Microsoft Windows Network, 7 entire network, 0x0D network places (generic or root), 0x0E network places (server). Values seen: 0x41, 0x42, 0x46, 0x47, 0x4C, 0xC3 (the last is a share in a Windows 11 shortcut). |
0x80 | Unknown. Set in 0xC3 share items. |
FTP URI and its sub items
A shortcut to an FTP address holds the root folder for Internet Explorer, a URI item with
flags 0x03 (ASCII strings) and then one sub item per path component. Checked
on shortcuts made by Windows 11 for ftp://ftp.example.com/pub/ and
ftp://user@ftp.example.com/dir/file.txt.
The URI item’s data (72 or 76 bytes) is: a 32-bit value (0x00000103 or
0x00002303 there), a 32-bit value (4), a FILETIME (when the server was first
reached), 0xFFFFFFFF or 0, 12 empty bytes, a 32-bit value (0x15), then three
strings each preceded by its size in bytes: the host name, the user name and the password,
each padded with zeros to a multiple of 4 bytes (an empty string is 4 zero bytes). The URI
string after the data is just the scheme, ftp.
| Offset | Size | Name | Description |
|---|---|---|---|
| 2 | 1 | Class type | 0 in these shortcuts; libfwsi saw 0x17, 0x30, 0x5B, 0xB5 to 0xBA, 0xC2, 0xC4 and 0xE6 elsewhere. |
| 3 | 1 | Unknown | Seen 0, 6, 9. |
| 4 | 2 | Unknown | If 0, probably no string padding. |
| 6 | 2 | Entry type | 5 for a directory and 9 for a file in these shortcuts. |
| 8 | 2 | Unknown | Seen 0 and 3. |
| 10 | 4 | Flags | 0x90 for a directory, 0x80 for a file. |
| 14, 18 | 4, 4 | Unknown | Purpose not known. |
| 22 | 8 | Time | A FILETIME: libfwsi guesses when the folder last changed on the server. |
| 30 | 4 | Unknown | Seen 0x0755 (it looks like Unix permission bits). |
| 34 | 4 | Unknown | 1 in these shortcuts. |
| 38 | varies | Name (ANSI) | Zero-terminated, the field padded with zeros to a multiple of 4 bytes (file.txt takes 12 bytes). |
| … | varies | Name (UTF-16) | Zero-terminated, followed by trailing zero bytes. |
The URI item (class 0x61) also differs from libfwsi’s table in Windows 11
shortcuts to web addresses: after a data size of 0 come two more empty bytes before the
UTF-16 URI. The viewer accepts both forms.
Shell folder IDs the viewer names
Root folder items, 0xBEEF0003 blocks and volume items carry a class ID. The
viewer shows a name for the ones it knows: Computer {20D04FE0-3AEA-1069-A2D8-08002B30309D},
My Documents {450D8FBA-AD25-11D0-98A8-0800361B1103}, Internet Explorer
{871C5380-42A0-1069-A2EA-08002B30309D}, Recycle Bin {645FF040-5081-101B-9F08-00AA002F954E},
My Network Places {208D2C60-3AEA-1069-A2D7-08002B30309D}, Network
{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}, Control Panel {21EC2020-3AEA-1069-A2DD-08002B30309D},
Printers {2227A280-3AEA-1069-A2DE-08002B30309D}, Dial-Up Networking
{992CFFA0-F557-101A-88EC-00DD010CCC48}, Libraries {031E4825-7B94-4DC3-B131-E946B44C8DD5},
Games {ED228FDF-9EA8-4870-83B1-96B02CFE0D52} and more. The viewer’s list is the
Windows Shell knowledge base (winshl-kb, the list libfwsi points to for every shell folder
identifier field): it lists 226 shell folder GUIDs, and the 187 that have a name on their
page are named here, together with the known folder GUIDs of Microsoft’s KNOWNFOLDERID page
(124 GUIDs). Two more are named from real shortcuts: {A8CDFF1C-4878-43BE-B5FD-F8091C1C60D0}
and {D3162B92-9365-467A-956B-92703ACA08AF} are both the Documents folder of
This PC (their LinkInfo path is the user’s Documents folder); winshl-kb gives them no name.
The 38 GUIDs winshl-kb lists without a name show as a GUID. The data is in
shellids.txt beside the plugin.
The Control Panel item item (0x71) names its item from winshl-kb’s list of
77 Control Panel item GUIDs, of which 65 have a module name there (System, Network and
Sharing Center, Programs and Features, Device Center and so on); the 12 without a name show
as a GUID.
Named items of Windows 95 folders (class 0x00)
Inside a folder such as Dial-Up Networking a Windows 95 shortcut holds an item of class
0x00: 13 bytes (mostly zero) and then a zero-terminated ASCII name, such as the
name of a dial-up connection. The viewer reads the name and keeps the 13 bytes labelled as
not known.
Network location (0x40–0x4F)
| Offset | Size | Name | Description |
|---|---|---|---|
| 3 | 1 | Unknown | Purpose not known. |
| 4 | 1 | Flags | 0x80: a description follows the location. 0x40: comments follow. |
| 5 | varies | Location | ASCII, zero-terminated: a server, share or domain. |
| … | varies | Description | If flagged. ASCII, zero-terminated. |
| … | varies | Comments | If flagged. ASCII, zero-terminated. |