Comprehensive List of Dirids for Windows XP Pro 1 SourceDrive:\pathname (the directory from which the INF file was installed) 10 Windows directory. This is equivalent to %windir%. 11 System directory. This is equivalent to %windir%\system32 for NT-based systems, and to %windir%\system for Windows 9x/Me. 12 Drivers directory. This is equivalent to %windir%\system32\drivers for NT-based platforms, and to %windir%\system\IoSubsys on Windows 9x/Me platforms. 17 INF file directory 18 Help directory 20 Fonts directory 21 Viewers directory 23 Color directory (ICM) (not used for installing printer drivers) 24 Root directory of the system disk. This is the root directory of the disk on which Windows files are installed. For example, if dirid 10 is "C:\winnt", then dirid 24 is "C:\". 25 Shared directory (C:\WINDOWS) 30 Root directory of the boot disk, also known as "ARC system partition," for NT-based systems. (This might or might not be the same directory as the one represented by dirid 24.) 50 System directory for NT-based operating systems. This is equivalent to %windir%\system (NT-based systems only). 51 Spool directory (not used for installing printer drivers) 52 Spool drivers directory (not used for installing printer drivers) 53 User profile directory 54 Directory where ntldr.exe and osloader.exe are located (NT-based systems only) 55 Print processors directory (not used for installing printer drivers) -1 Absolute Path 16384 Current User\Desktop 16386 Current User\Start Menu\Programs 16389 Current User\My Documents 16390 Current User\Favorites 16391 Current User\Start Menu\Programs\Startup 16392 Current User\Recent 16393 Current User\SendTo 16395 Current User\Start Menu 16397 Current User\My Documents\My Music 16398 Current User\My Documents\My Videos 16400 Current User\Desktop 16403 Current User\NetHood 16404 C:\WINDOWS\Fonts 16405 Current User\Templates 16406 All Users\Start Menu 16407 All Users\Start Menu\Programs 16408 All Users\Start Menu\Programs\Startup 16409 All Users\Desktop 16410 Current User\Application Data 16411 Current User\PrintHood 16412 Current User\Local Settings\Application Data 16415 All Users\Favorites 16416 Current User\Local Settings\Temporary Internet Files 16417 Current User\Cookies 16418 Current User\Local Settings\History 16419 All Users\Application Data 16420 System Root (C:\WINDOWS) 16421 C:\WINDOWS\System32 16422 Program Files 16423 Current User\My Documents\My Pictures 16424 Current User 16425 C:\WINDOWS\System32 16427 C:\Program Files\Common Files 16429 All Users\Templates 16430 All Users\Documents 16431 All Users\Start Menu\Programs\Administrative Tools 16432 Current User\Start Menu\Programs\Administrative Tools 16437 All Users\Documents\My Music 16438 All Users\Documents\My Pictures 16439 All Users\Documents\My Videos 16440 C:\WINDOWS\resources 16441 C:\WINDOWS\resources409 16443 Current User\Local Settings\Application Data\Microsoft\CD Burning
If you are aware of any not listed here (or any which are incorrect) please post them here. I only tested these in Windows XP Pro. I cannot guarantee that these are the same in other versions of Windows. For those wanting their INF to work in Windows 98 only dirids 1 to 30 are supported.
This post has been edited by gtaylor: 02 April 2007 - 12:46 AM

Help












