|
Property ID One
Property ID One is reserved as an indicator of which code page (Windows) or
Script (Macintosh) to use when interpreting the strings in the property set. All
string values in the property set must be stored with the same code page. The
originating operating system value in the property set header
(PROPERTYSETHEADER::dwOSVer) determines whether the code page indicator corresponds to a Windows
code page or Macintosh script.
When an application that is not the author of a property set changes a
property of type string in the set, it should examine the code page indicator and take
one of the following actions:
- Write the new value using the code page found in the code page indicator.
- Rewrite all string values in the property set using the new code page
(including the new value), and modify the code page indicator to reflect the new code
page.
If an application cannot understand this indicator, it should not modify the
property. All writers of property sets must write a code page indicator;
however, if the code page indicator is not present, the prevailing code page on the
reader's machine must be assumed.
Possible values for the code page are given in the Window 32 API (see the GetACP function) and Inside Macintosh Volume VI, §14-111. For example, the code page US ANSI is represented by 0x04E4 (1252 in
decimal) while the code page for Unicode is 0x04B0 (1200 in decimal).
It is recommended that the Unicode code page be used whenever possible. Using
the same code page for all property sets is the only way to achieve
interoperable property sets on a worldwide basis. In the Unicode code page, note that the
count at the start of a VT_LPSTR or VT_BSTR or other eight-bit character
quantities in the property set is a byte count and not a character count. This byte count includes the two zero bytes at the end of the string.
Property ID one is a VT_12 type and thus starts with a DWORD containing the
value VT_12 followed by a USHORT indicating the code page.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|