Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BITS COM Interop in .NET - AddFileSet Doesn't Work

19 views
Skip to first unread message

Klouda@discussions.microsoft.com Carl Klouda

unread,
Mar 29, 2010, 5:25:01 PM3/29/10
to
I have taken the bits.idl and used midl to create a .tlb file. I then used
libimp to create a bits.dll that I could reference in my vb.net project. All
of this worked fine and I have been successful in using most of the BITS API.
I have encountered 1 issue though that I can't seem to get around and I
haven't seen any other information on it anywhere.

The IBackgroundCopyJob interface is successfully listed in the reference and
i can use it just fine. But the AddFileSet method on the interface doesn't
appear to be defined properly.

Here is how it comes into .Net:
Sub AddFileSet(ByVal cFileCount As UInteger, ByRef pFileSet As
BackgroundCopyManager._BG_FILE_INFO)

Shouldn't the ByRef of pFileSet be an array of _BG_FILE_INFO structures???

If not, there is really no difference between AddFileSet and AddFile

I've seen C++ code using the native API and it passes an array of
_BG_FILE_INFO structures.

Any help on how to get this working in .Net?


0 new messages