Dump more .lnk file header fields

Dmitry Timoshkov dmitry at baikal.ru
Thu Sep 8 08:22:37 CDT 2005


Hello,

I'm interested particularly in hdr->fStartup.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Dump more .lnk file header fields.

--- cvs/hq/wine/tools/winedump/lnk.c	2005-08-12 13:22:47.000000000 +0900
+++ wine/tools/winedump/lnk.c	2005-09-08 16:45:02.000000000 +0900
@@ -398,6 +398,14 @@ static int dump_lnk_fd(int fd)
     printf("Size:    %04lx\n", hdr->dwSize);
     printf("GUID:    %s\n", guid);
 
+    printf("FileAttr: %08lx\n", hdr->dwFileAttr);
+    printf("FileLength: %08lx\n", hdr->dwFileLength);
+    printf("nIcon: %ld\n", hdr->nIcon);
+    printf("Startup: %ld\n", hdr->fStartup);
+    printf("HotKey: %08lx\n", hdr->wHotKey);
+    printf("Unknown5: %08lx\n", hdr->Unknown5);
+    printf("Unknown6: %08lx\n", hdr->Unknown6);
+
     /* dump out all the flags */
     printf("Flags:   %04lx ( ", hdr->dwFlags);
 #define FLAG(x) if(hdr->dwFlags & SCF_##x) printf("%s ",#x);






More information about the wine-patches mailing list