欢迎来到天天文库
浏览记录
ID:32400858
大小:175.00 KB
页数:13页
时间:2019-02-04
《windows快捷方式的格式结构》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、查看文章 【转】快捷方式lnk文件格式详解(英文)(中文)2009-11-0710:55转自:http://www.stdlib.com/art6-Shortcut-File-Format-lnk.htmlYoushouldconsiderusingtheIShellLinkinterfacewhichisasafewaytohandlewindowsshortcuts.IfyouhaveastrongreasonnottousethatinterfacethenIhavetoremindyouthatthi
2、sfileformatisnotdocumentedbyMicrosoft.Icannotsaythattheinfogatheredhereisaccuratenorthatitwillworkinthefuture. .LNKFileFormat 1.Header 2.ShellItemIdList 3.FileLocationInfo 4.Description 5.RelativePath 6.WorkingDirectory 7.CommandLineArguments 8.Icon
3、Filename 9.AdditonalInfo 1.HeaderSizeContentsDescription4bytesAlways4C000000Thisishowwindowsknowsitisashortcutfile16bytesGUIDforshortcutfilesThecurrentGUIDforshortcuts.Itmaychangeinthefuture.0114020000000000C00000000000461dwordShortcutflagsShortcutflagsare
4、explainedbelow1dwordTargetfileflagsFlagsareexplainedbelow1qwordCreationtime 1qwordLastaccesstime 1qwordModificationtime 1dwordFilelengthThelengthofthetargetfile.0ifthetargetisnotafile.Thisvalueisusedtofindthetargetwhenthelinkisbroken.1dwordIconnumberIfthefi
5、lehasacustomicon(setbytheflagsbit6),thenthislongintegerindicatestheindexoftheicontouse.Otherwiseitiszero.1dwordShowWindowtheShowWndvaluetopasstothetargetapplicationwhenstartingit.1:NormalWindow2:Minimized3:Maximized1dwordHotKeyThehotkeyassignedforthisshortc
6、ut1dwordReservedAlways01dwordReservedAlways0ShortcutflagsBitMeaning0Shellitemidlistispresent1Targetisafileordirectory2Hasadescription3Hasarelativepath4Hasaworkingdirectory5Hascommandlinearguments6Hasacustomicon.TargetflagsBitMeaning0Targetisreadonly.1Target
7、ishidden.2Targetisasystemfile.3Targetisavolumelabel.(Notpossible)4Targetisadirectory.5Targethasbeenmodifiedsincelastbackup.(archive)6Targetisencrypted(NTFSpartitions)7TargetisNormal8Targetistemporary.9Targetisasparsefile.10Targethasreparsepointdata.11Target
8、iscompressed.12Targetisoffline.LastAccessandModifiedtimeoffsetscorrectedthankstoJimmyWShellItemIdListNote:Thissectionexistsonlyifthefirstbitforshortcutflagsissettheheadersection.Ifthatbitisnotsetthenth
此文档下载收益归作者所有