Coffeehouse Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Babysteps II: PInvoke hour

Back to Forum: Coffeehouse
  • User profile image
    Peter

    Here is an idea: If you are a Microsoft developer/tester, just spend 1 hour somewhere in the next week checking/adding/updating the PInvoke signatures for code you own over on PInvoke.net.

  • User profile image
    androidi

    I don't really understand why the PInvoke.net is missing the structs, enums and delegates already provided here:

    http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=f1dd70e4-c212-4a6f-bff7-c82e34c8836f

    When there is

    static extern int SetDIBitsToDevice(IntPtr hdc, int XDest, int YDest, uint
       dwWidth, uint dwHeight, int XSrc, int YSrc, uint uStartScan, uint cScanLines,
       byte [] lpvBits, [In] ref BITMAPINFO lpbmi, uint fuColorUse);


    The BITMAPINFO could be a hyperlink to the struct, but the struct could perhaps be also shown on the same page or something.

    OTOH MS should incorporate some way to pull different variations of the PInvoke declarations and structs straight from the IDE.

    And if I am reading some WIN32 functions help while being in a C# project for example, there could be a way to pull the C# declarations from Internet database directly in the MSDN help.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.