Sign In
The Great Flying Tortoise
A hard-boiled look at Win32 C++ programming and the property system
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
About
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
.NET
General
indexing
Property Handlers
Property System
reading properties
Tagging
troubleshooting
World of Warcraft
writing properties
Archive
Archives
July 2007
(1)
May 2007
(1)
January 2007
(11)
November 2006
(11)
October 2006
(13)
September 2006
(17)
August 2006
(4)
October, 2006
MSDN Blogs
>
The Great Flying Tortoise
>
October, 2006
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
The Great Flying Tortoise
Writing properties #3 - Which properties are writable?
Posted
over 6 years ago
by
benkaras
3
Comments
While we don't have a table of properties and filetypes that are writable, there is a programmatic method to determine if a given property can be written to a given property handler. Here's how it works: First, properties can be designated innate ...
The Great Flying Tortoise
Writing properties #2 - Filetype support?
Posted
over 6 years ago
by
benkaras
1
Comments
The first question people ask at this point is "What properties can I write to what filetypes?". They usually expect a concise answer at this point, too. The short answer is that "It depends on the filetype." Not all filetypes support writing properties...
The Great Flying Tortoise
Writing properties #1 - Simple beginnings
Posted
over 6 years ago
by
benkaras
2
Comments
I'm going to be talking about writable properties over the next few days. I know that some of you are itching to try this out yourselves, so here is an overly simplistic program that will write a single property to a file. I have omitted a lot of diagnostic...
The Great Flying Tortoise
Gotcha: You must release property stores quickly
Posted
over 6 years ago
by
benkaras
0
Comments
The general rule is that you should minimize the length of time you have a property store open. It is best to acquire the data you need and then release the store. Read-only property stores lock files for reading using a filesystem oplock . An oplock...
The Great Flying Tortoise
Properties coding expedition #7 - The final output
Posted
over 6 years ago
by
benkaras
2
Comments
This coding expedition has developed a tool that can dump out all the properties on a file. If you are curious about the property system, I highly recommend you build this tool and run it on various file types. Coding to the Windows SDK Part 1 ...
The Great Flying Tortoise
Properties coding expedition #6 - Developer friendly output
Posted
over 6 years ago
by
benkaras
1
Comments
Using the tool I developed in this series, I know that my test photo has " Rating: 5 Stars ". But how is this value actually represented in the JPG itself? Let's answer that by adding some developer friendly output. Here's what I did: First, I need...
The Great Flying Tortoise
Properties coding expedition #5 - Stripping characters
Posted
over 6 years ago
by
benkaras
1
Comments
In Part 4 , I discovered that WideCharToMultiByte converts certain invisible non-spacing Unicode characters to ?. This makes the output look really silly in a command line application. I want to keep this as a command line application, so I need to strip...
The Great Flying Tortoise
Save the World... of Warcraft
Posted
over 6 years ago
by
benkaras
2
Comments
Yup, I'm one of "those" people. I play World of Warcraft to pass the time if I don't have anything else scheduled to do. It's the only game I play right now, so it weighed heavily in my decision to upgrade to Vista . At the time, I was very happy to find...
The Great Flying Tortoise
Properties coding expedition #4 - The output
Posted
over 6 years ago
by
benkaras
1
Comments
The program itself is provided in parts 1 , 2 , and 3 . So I compiled my program and ran it from the command line. Here's a snippet of what I got back: Properties for 'scan0010.jpg' Folder name: propshow Type: JPEG Image Name: scan0010.jpg Size: 638...
The Great Flying Tortoise
Properties coding expedition #3 - Printing a value
Posted
over 6 years ago
by
benkaras
1
Comments
In parts one and two , I started writing a program to print out the properties on an item. But I saved the best for last -- printing a value. Discussion follows the code. HRESULT _PrintPropertyValue(__in REFPROPERTYKEY key, __in REFPROPVARIANT propvar...
The Great Flying Tortoise
Properties coding expedition #2 - printing the IPropertyStore
Posted
over 6 years ago
by
benkaras
1
Comments
Last time we saw how to bind to a shell item and get its property store. Today, we loop through the store printing out known properties. HRESULT _PrintPropertyStore(IPropertyStore *pps) { DWORD cProps; HRESULT hr = pps-> GetCount (&cProps...
The Great Flying Tortoise
Properties coding expedition #1 - Binding to an item
Posted
over 6 years ago
by
benkaras
3
Comments
The goal of this first expedition is to print lists of properties from items. This will give insight into the origins and capabilities of these different properties. Feel free to follow along and try out different things. There's a lot to explore. ...
The Great Flying Tortoise
Coding to the Windows SDK
Posted
over 6 years ago
by
benkaras
3
Comments
In the near future I'll be posting code examples that compile and run. In case you'd like to follow along, here's my personal setup. My code should compile on RC1 also, so go ahead and use RC1 if that's what you can get a hold of. Windows Vista...
Page 1 of 1 (13 items)