好像是这样的,你试试看吧:
[System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")] 
private static extern int CreateFormInFileInt(string FileNameToWrt );