PC Review


Reply
Thread Tools Rate Thread

DLLImport and unmanaged function Polygon from Win32API

 
 
Pawel
Guest
Posts: n/a
 
      15th Jul 2005
Hi,

I will import function Polygon from GDI Win32API, how should i declare this
function in C# using DllImport clause.

Thanks for any sugesstions,

Regards,

Pawel



 
Reply With Quote
 
 
 
 
William DePalo [MVP VC++]
Guest
Posts: n/a
 
      15th Jul 2005
"Pawel" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I will import function Polygon from GDI Win32API, how should i declare
> this function in C# using DllImport clause.
>
> Thanks for any sugesstions,


At this link you should be able to find declarations for the better part of
the Win32 API:

http://www.gotdotnet.com/Community/U...7-c82e34c8836f

Regards,
Will



 
Reply With Quote
 
Mattias Sjögren
Guest
Posts: n/a
 
      16th Jul 2005
>I will import function Polygon from GDI Win32API, how should i declare this
>function in C# using DllImport clause.


Something like

[DllImport("gdi32.dll")]
static extern bool Polygon(HandleRef hdc, POINT[] lpPoints, int
nCount);



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
 
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
DllImport for C function with var args Leon Microsoft C# .NET 4 23rd Jun 2008 03:18 AM
callback function from unmanaged dll using DllImport and delegate Bart Burkhardt Microsoft C# .NET 6 13th Sep 2006 11:12 AM
Win32API Function NetQueryDisplayInformation Chris van den Heuvel Microsoft Dot NET 2 1st May 2005 02:40 AM
Question about some function in win32API =?Utf-8?B?WUFOU0hPRg==?= Microsoft VC .NET 0 22nd Dec 2004 06:29 AM
DllImport / unmanaged code Jim Microsoft C# .NET 15 5th Dec 2003 03:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 PM.