Did you resolved?
you must use :
and declare :
static extern IntPtr SetCapture(long hWnd);
static extern long ReleaseCapture();
inside class declaration, where you will use or use like
if used as shared function (must be public ofcourse) and use like you write above.