P/Invokeã®å®£è¨ã¯ãSystem.Runtime.InteropServices.DllImportAttributeå±æ§ãã¡ã½ããã®å®£è¨ã«ã¤ãããã¨ã§è¡ãã 次ã®C#ã³ã¼ãä¾ã§ã¯ãuser32.dllå ã«å®ç¾©ããã¦ããFindWindowé¢æ°ãå¼ã³åºãã¦ããã using System.Runtime.InteropServices; namespace Example { class ExampleClass { // FindWindowã®ã¢ã³ããã¼ã¸ã·ã°ããã£ã¯ HWND FindWindow(LPCTSTR, LPCTSTR) [DllImport("user32.dll")] static extern IntPtr FindWindow(string lpClassName, string lpWindowName); public void Test(string w
{{#tags}}- {{label}}
{{/tags}}