title: How to import ".lib" file into C# windows-forms
body: <p>I am new to C# windows-forms development.</p>
  <p>I study the Dante API(DAPI) and I am trying to make a simple windows-forms GUI to check the Dante device name.</p>
  <p>After installing the DAPI SDK, I got a lib folder, all the folder has inside  is Win32 or x64 &quot;*.lib&quot; files
  and I have got an include folder with &quot;*.h&quot; header files. (I guess this API is C language based.)</p>
  <p>I googled some keywords like &quot;C# windows form import the .lib&quot;, and the answer was &quot;using P/Invoke&quot;, but most of it is calling a &quot;*.dll&quot; file.</p>
  <p>So I am confused, can P/Invoke be used in the C# windows-forms and import &quot;.lib&quot; file?
  or there is there another way to do this task?</p>
  <p>If there are some ways can import the &quot;.lib&quot; into the C# windows-form, any simple examples can show me how to call the function from the lib?</p>
  <p>My environment: Visual Studio 2022 express</p>