1. http://www.codeguru.com/Csharp/Csharp/cs_graphics/sound/article.php/c6143/http://blog.monstuff.com/archives/000070.html2. Platform Invoke Tutorial http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkplatforminvoketutorial.asphttp://www.pinvoke.net/3. COM Interop Tutorials http://msdn.microsoft.com/library/en-us/csref/html/vcoriCOMInteropTutorial.asp?frame=true3
1、可以调用MediaPlayer 2、比如 [DllImport("user32.dll", EntryPoint="SetWindowLong")] public static extern int SetWindowLong ( int hwnd, int nIndex, int dwNewLong ); 3、把com组件在工程中添加引用
http://www.codeguru.com/Csharp/Csharp/cs_graphics/sound/article.php/c6143/http://blog.monstuff.com/archives/000070.html2.
Platform Invoke Tutorial
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkplatforminvoketutorial.asphttp://www.pinvoke.net/3.
COM Interop Tutorials
http://msdn.microsoft.com/library/en-us/csref/html/vcoriCOMInteropTutorial.asp?frame=true3
2、比如
[DllImport("user32.dll", EntryPoint="SetWindowLong")]
public static extern int SetWindowLong (
int hwnd,
int nIndex,
int dwNewLong
);
3、把com组件在工程中添加引用