[System.Runtime.InteropServices.DllImport("winmm", EntryPoint="timeGetTime",
ExactSpelling=true, CharSet=System.Runtime.InteropServices.CharSet.Ansi,
SetLastError=true)]
private static extern long timeGetTime();
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter
Clear VB: Cleans up outdated VB.NET code
"simon" wrote:
> In VB i have declaration for windows API function:
>
> Private declare function timeGetTime Lib "winmm" () as Long
>
> How can I do the same declaration in C#?
>
> Where I can see API functions in Visual studio 2005 beta 2 and their
> declarations?
>
> Thank you,
> Simon
>
>
>