Lines Matching defs:ms

46 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0)
53 { "Excel", "vnd.ms-excel", },
54 { "Powerpoint", "vnd.ms-powerpoint", },
56 { "Advanced Installer", "vnd.ms-msi", },
57 { "InstallShield", "vnd.ms-msi", },
58 { "Microsoft Patch Compiler", "vnd.ms-msi", },
59 { "NAnt", "vnd.ms-msi", },
60 { "Windows Installer", "vnd.ms-msi", },
63 { "Book", "vnd.ms-excel", },
64 { "Workbook", "vnd.ms-excel", },
66 { "PowerPoint", "vnd.ms-powerpoint", },
67 { "DigitalSignature", "vnd.ms-msi", },
147 cdf_file_property_info(struct magic_set *ms, const cdf_property_info_t *info,
158 if (!NOTMIME(ms) && root_storage)
168 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf,
173 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf,
178 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf,
183 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf,
188 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf,
211 if (NOTMIME(ms)) {
213 if (file_printf(ms, ", %s: %s",
230 if (NOTMIME(ms) && file_printf(ms,
241 if (NOTMIME(ms) && file_printf(ms,
253 if (!NOTMIME(ms)) {
256 if (file_printf(ms, "application/%s", str) == -1)
263 cdf_file_catalog(struct magic_set *ms, const cdf_header_t *h,
271 if (NOTMIME(ms)) {
272 if (file_printf(ms, "Microsoft Thumbs.db [") == -1)
279 if (file_printf(ms, "%s%s",
287 if (file_printf(ms, "application/CDFV2") == -1)
294 cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h,
305 if (NOTMIME(ms)) {
308 if (file_printf(ms, "Composite Document File V2 Document")
312 if (file_printf(ms, ", %s Endian",
317 if (file_printf(ms, ", Os: Windows, Version %d.%d",
323 if (file_printf(ms, ", Os: MacOS, Version %d.%d",
329 if (file_printf(ms, ", Os %d, Version: %d.%d", si.si_os,
339 if (file_printf(ms, ", %s", str) == -1)
345 m = cdf_file_property_info(ms, info, count, root_storage);
366 cdf_file_catalog_info(struct magic_set *ms, const cdf_info_t *info,
378 if ((i = cdf_file_catalog(ms, h, scn)) == -1)
418 cdf_file_dir_info(struct magic_set *ms, const cdf_dir_t *dir)
436 if (NOTMIME(ms)) {
437 if (file_printf(ms, "CDFV2 %s", si->name) == -1)
440 if (file_printf(ms, "application/CDFV2-%s",
450 file_trycdf(struct magic_set *ms, int fd, const unsigned char *buf,
465 if (ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION))
504 if (NOTMIME(ms)) {
506 if (file_printf(ms, "CLSID %s, ",
520 if (NOTMIME(ms)) {
521 if (file_printf(ms,
525 if (file_printf(ms, "application/x-hwp") == -1)
544 i = cdf_file_catalog_info(ms, &info, &h, &sat, &ssat, &sst,
548 i = cdf_file_dir_info(ms, &dir);
558 if ((i = cdf_file_summary_info(ms, &h, &scn, root_storage)) < 0)
572 NOTMIME(ms) ? name2desc : name2mime);
574 if (NOTMIME(ms)) {
576 if (file_printf(ms, "%s", str) == -1)
582 str = "vnd.ms-office";
583 if (file_printf(ms, "application/%s", str) == -1)
600 if (NOTMIME(ms)) {
601 if (file_printf(ms,
605 if (file_printf(ms, ", %s", expn) == -1)
608 if (file_printf(ms, "application/CDFV2-unknown") == -1)