Fix PInvoke sample.