public delegate void Func(byte b);
public myFunction(byte id, Func f) {
// code here
}
public delegateFunction(byte b) { // matches Func's signature
// do stuff with [b]b[/b] here
}
myFunction(42, new Func(delegateFunction));
Cclass::Function(BYTE id, void (__cdecl *Func)(BYTE status))