Advertisement
Ne-Biolog

Untitled

May 15th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3. using System.Runtime.InteropServices;
  4.  
  5. namespace laba4_1
  6. {
  7. class MciSendString
  8. {
  9. class Diskovod
  10. {
  11. [DllImport("winmm.dll", EntryPoint = "mciSendStringA", CharSet = CharSet.Ansi)]
  12. protected static extern int mciSendString(string mciCommand,StringBuilder returnValue,int returnLength,IntPtr callback);
  13.  
  14. static void Main(string[] args)
  15. {
  16. int result = mciSendString("set cdaudio door open", null, 0, IntPtr.Zero);
  17. }
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement