Win32 API Library -> Class library

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sin Jeong-hun

    Win32 API Library -> Class library

    The .NET BCL is great but not always sufficient. We need Win32 API's
    to do certain tasks. It's not impossible. We can manually write extern
    function signatures by hand or copy and paste from a site like
    pInvoke.net. But I always feel this is a little bit painstaking.
    Sometimes some signatures are missing or not provided for the CLR
    language I'm in use or those codes don't work and I have to search
    Google for it.

    So, what if someone can make a class library (a single .dll file) for
    all (or most of ) the Win32 api's functions, constants or structures?
    Then we don't need to copy and paste them everytime we need them, we
    just simply reference the library. Things would get much easier I
    think.
  • =?ISO-8859-1?Q?Arne_Vajh=F8j?=

    #2
    Re: Win32 API Library -> Class library

    Sin Jeong-hun wrote:
    The .NET BCL is great but not always sufficient. We need Win32 API's
    to do certain tasks. It's not impossible. We can manually write extern
    function signatures by hand or copy and paste from a site like
    pInvoke.net. But I always feel this is a little bit painstaking.
    Sometimes some signatures are missing or not provided for the CLR
    language I'm in use or those codes don't work and I have to search
    Google for it.
    >
    So, what if someone can make a class library (a single .dll file) for
    all (or most of ) the Win32 api's functions, constants or structures?
    Then we don't need to copy and paste them everytime we need them, we
    just simply reference the library. Things would get much easier I
    think.
    That is more or less the same that those sites does.

    And I can see a couple of reasons to do it their way instead
    of your way:
    * Win32 API is not the same on all Windows versions so you would
    need many different libraries
    * I believe that some Win32 API calls will be done differently in .NET
    depending on what you want to use it for

    Arne

    Comment

    Working...