C#:"kernel"

Dark Crystal

Member
Joined
Oct 1, 2003
Messages
10
hi every 1 ;

how can i deal with "kernel" functions or any lib in C# ?

e.g. in vb
Code:
Private Declare Function QueryPerformanceFrequency Lib "kernel32" (ByRef PerformanceFrequency As Long) As Boolean

how can rewrite it in C#?


thanx :-\

DC
 
thanx my prob was typemiss :D

but method should be(64 bit)long and (out or ref) ether:

Code:
static extern bool QueryPerformanceFrequency(out long PerformanceFrequency);
or:
Code:
static extern bool QueryPerformanceFrequency(out long PerformanceFrequency);

cuz int is 32(bit) and ull lose some digit so low performance

other Q: what is the deffrent between out(???) and ref(i know this)?

cuz when i read same code i was found out is used in ref places and i tried in privuos method its work.

sorry for my bad english :(

and thanx agine
 
Back
Top