Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / January 2007

Tip: Looking for answers? Try searching our database.

Is everyone supposed to recreate header files every time?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ian Boyd - 04 Jan 2007 12:52 GMT
It seems that Microsoft isn't going to translate a lot of the Windows API
into .net. And so i'm constantly seeing everyone having to mantually
translate the .h headers themselves into C# code.  Is there some project out
there that translates all the Win32 headers in C#; similar to the Delphi
Jedi project that translates all headers where Microsoft won't?

And what namespace do you all give these translations? It obviously should
be
   Microsoft.Win32

But i'm not Microsoft, so it should be called
   MyCompany.Win32

But then that limits their value in being posted to a shared repository
online. So i guess it should be
   Microsoft2.Win32

What do you all use?

For example i want to enumerate shell objects. All the .net framework itself
has is a DirectoryInfo class, which can get me child files and folders
(where my "C:\" folder has no parent, when it should be "My Computer"; and
it's parent is "Desktop")

i also want the system small icon for a shell object (and
Icon.ExtractAssociatedIcon only extracts the large icon). So i had to
stumble across the slightly buggy tranlsation of "sh Item id" and
SHGetFileInfo

It would be nice if there was a single translation of all these already done
for me.
And it would be nice if they came with .NET already.
And it would be nice if Microsoft did it.
And it would be nice if they were supported.
And it would be nice if they were official.
And it would be nice if they were free.
Henning Krause [MVP - Exchange] - 04 Jan 2007 14:08 GMT
Hello,

see pinvoke.net.

Best regards,
Henning Krause

> It seems that Microsoft isn't going to translate a lot of the Windows API
> into .net. And so i'm constantly seeing everyone having to mantually
[quoted text clipped - 35 lines]
> And it would be nice if they were official.
> And it would be nice if they were free.
Ian Boyd - 04 Jan 2007 23:58 GMT
> Hello,
>
> see pinvoke.net.

Pretty darned impressive.

Now if it could just be packaged and easily distributed, with updates,
prefereably with Windows Update.
Tim Van Wassenhove - 05 Jan 2007 20:43 GMT
Ian Boyd schreef:
>> Hello,
>>
[quoted text clipped - 4 lines]
> Now if it could just be packaged and easily distributed, with updates,
> prefereably with Windows Update.

You could also search the web for a Visual Studio plugin.. Don't
remember any specific ones, but i'm quite sure they exist :)

Signature

Tim Van Wassenhove <url:http://www.timvw.be/>

Ben Voigt - 05 Jan 2007 22:53 GMT
>> Hello,
>>
[quoted text clipped - 4 lines]
> Now if it could just be packaged and easily distributed, with updates,
> prefereably with Windows Update.

Something like a subversion interface to it would be incredibly useful.
Ian Boyd - 06 Jan 2007 03:34 GMT
> And what namespace do you all give these translations?

PInvoke.net is nice; but now it's time to piece everything it has together
into a library that i can use.

What is the namespace naming scheme everyone else uses?

Consider shell programming:

Win32.Shell32
Win32.ShellApi
Win32.ShellLib
Win32.ShellProgramming
PInvoke.Shell32
PInvoke.ShellApi
Microsoft.Win32.Shell32
etc

What naming scheme does everything think best allows for room for the rest
of the API that Microsoft hasn't wrapped in managed code yet?

PInvoke.Shell
PInvoke.Crypt
PInvoke.CredentialsUserInterface
PInvoke.FaultReporting
PInvoke.Icmp
PInvoke.Msi
PInvoke.WinFax
PInvoke.WinHttp

What do you use?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.