je suis entrain de lire un code d'un softphone
et je n'arrive pas a comprendre ce code :
[DllImport("msvcrt")]
private static extern IntPtr strncpy(Delegate pd, IntPtr src, int size);
private static IntPtr GetFunctionPtrFromDelegate(Delegate d) {
// strncpy returns the buffer address (the marshaled delegate pointer).
// We obviously don't copy anything
return strncpy(d, IntPtr.Zero, 0);
}
merci d'avance
![]()
Partager