PC Review


Reply
Thread Tools Rate Thread

Accessing the lindex member of FORMATETC in DataObject in C#

 
 
Robert G. Schaffrath
Guest
Posts: n/a
 
      14th Jan 2008
I have written an application that implements the CFSTR_FILEGROUPDESCRIPTORW
and CFSTR_FILECONTENTS data formats for transfer from my C# application to
Windows Explorer. I implemented delayed rendering by deriving a new
DataObjectEx class from DataObject and capturing GetData calls for the
"FileGroupDescriptorW" and "FileContents" formats. However, the one thing I
am not able to figure out is if it is possible to access to the associated
FORMATETC structure for the "FileContents" request so that I can read the
lindex value. I have no problem doing interop if that is required. For the
time being, I have implemented a workaround that uses a local variable that
increments itself on each received call for "FileContents". With my brief
testing, I find that Windows Explorer requests the individual file contents
in the order they appear in the file group descriptor. So far there have not
been any out of order requests that would break my hack. Still I would like
to do it right and get the lindex value.

So back to my original question, is there any way to get a peek at the
internal FORMATETC structure that is being used in conjunction to the call to
my GetData method?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComTypes.FORMATETC Jeff Microsoft C# .NET 1 28th Jul 2006 05:09 PM
Accessing member using literal name =?Utf-8?B?Sm9zaFo=?= Microsoft ASP .NET 2 26th Jul 2006 09:12 PM
Reflection: accessing member of given object =?Utf-8?B?QW5kcmVhcy5LbnVkc2VuKEFUKWJla2subm8=?= Microsoft Dot NET Framework 3 23rd May 2005 06:12 PM
Accessing AD from member servers Ji Lee Microsoft Windows 2000 Active Directory 3 18th Jan 2004 04:37 AM
accessing proteceted member field Nick Microsoft C# .NET 1 5th Dec 2003 02:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 PM.