Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

PROPSPEC (Structures)
 
.
Summary
Enumerates the possible values of the propid member of the PROPSPEC structure. This is not part of Microsofts structured storage definitions, but an addition introduced for convenience.
Summary
TODO - a short description

C# Definition:

public enum PROPSPECIND : uint
[StructLayout(LayoutKind.Explicit)]
public struct PROPSPEC
{
   LPWSTR = 0,
   PROPID = 1
     [FieldOffset(0)] public int ulKind;     // 0 - string used; 1 - PROPID
     [FieldOffset(4)] public int propid;    
     [FieldOffset(4)] public IntPtr lpwstr;
}

VB Definition:

#Region "PROPSPECKIND Enumeration Definition"
   '/// <summary>
   '/// Indicates whether the PROPSPEC propid or lpwstr member used.
   '/// </summary>
   Public Enum PROPSPECKIND
     '/// <summary>
     '/// Specifies that the the lpwstr member is used.
     '/// </summary>
     LPWSTR = 0

#Region "PROPSPEC Structure Definition"

  '/// <summary>
  '/// The PROPSPEC structure is used by many of the methods of IPropertyStorage to specify a property either by its property identifier (ID) or the associated string name.
  '/// </summary>
  <StructLayout(LayoutKind.Sequential)> _
  Public Structure PROPSPEC
    '/// <summary>
    '/// Indicates whether the propid or lpwstr member used.
    '/// </summary>
    Public ulKind As PROPSPECKIND

     '/// <summary>
     '/// Specifies that the propid member is used.
     '/// </summary>
     PROPID = 1
   End Enum
#End Region

User-Defined Field Types:

None.

    '/// <summary>
    '/// Specifies the value of the property ID. Use either this value or the following lpwstr, not both.
    '/// </summary>
    Public propid As UInt32

Notes:

None.

    '/// <summary>
    '/// Specifies the string name of the property as a null-terminated Unicode string.
    '/// </summary>
    Public lpwstr As IntPtr
  End Structure

#End Region

User-Defined Field Types:

PROPSPECKIND

Documentation

Notes:

None.

Documentation
PROPSPEC on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions