473,394 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Implementing SDKs.

I am writing a program which opens or closes CD tray. I know I can do that
using one of the functions in the Multimedio SDK (forgot the eact name) but
I have no idea how to call it from C# code.
Also, any info on how to use DirectX would be greatly appreciated.

- Huitzilopochtli
Nov 15 '05 #1
1 1386
Hi Tom,

You can PInvoke to call Win32 APIs from C# code.
The MSDN documentation contains a good description of PInvoke.

You can use the WinMM APIs mciSendCommand to open and close
the CD tray.
Please take a look at the MCI_SET command message
with the MCI_SET_DOOR_CLOSED and MCI_SET_DOOR_OPEN
command flags.

Regards,
Aravind C
"Tomo Ferega" <to*********@zg.htnet.hr> wrote in message news:bo*********@ls219.htnet.hr...
I am writing a program which opens or closes CD tray. I know I can do that
using one of the functions in the Multimedio SDK (forgot the eact name) but
I have no idea how to call it from C# code.
Also, any info on how to use DirectX would be greatly appreciated.

- Huitzilopochtli

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alex Maghen | last post by:
Do you guys have a map that shows me... well... all of Microsoft's published SDKs and how (if) they map to available .NET namespaces/SDKs? This is all incredibly comfusing. I want to avoid using...
4
by: Frank J. Reashore | last post by:
Hello Everyone, I am implementing a simple interface in C# using Visual Studio .net and was quite surprised to discover that the C# compiler does NOT complain if a method on the interface is not...
7
by: Scott M. | last post by:
In a typical class, do I need to indicate that it implements the IDisposable interface and then create a Dispose method that implements the Dispose required by the IDisposable interface or can I...
4
by: phl | last post by:
hi, My question is: 1. To avoid possible memory leaks, when you use this pattern, after you have dealth with the unmanaged resources and before you take your object off the finalize queue,...
3
by: clintonG | last post by:
In the early 1990s there were quite a few Interactive Voice Response (IVR) SDKs that used VB for development. What happened to this category. Its like vanished. Does anybody know how IVR...
6
by: Raj Wall | last post by:
Hi, I am trying to implement the IEqualityComparer interface for a struct so I can use it as the Key for a Dictionary. My struct declaration has: public struct Ring : IEqualityComparer {...
5
by: koonda | last post by:
Hi all, I am a student and I have a project due 20th of this month, I mean May 20, 2007 after 8 days. The project is about creating a Connect Four Game. I have found some code examples on the...
2
by: Ian Semmel | last post by:
I am new to this world of ASP.NET so forgive the dumb questions. I have been looking at the sample provided 'Implementing a Session-State Store Provider' in an effort to understand how the...
11
by: cmp | last post by:
Hello, If I have a Visual studio project configured to vbuild againts one SDK. How is the normal procedure to build that solution against other different SDK that I have installed after previous...
0
by: Trammel | last post by:
Does anyone know where I can find APIs, Objects, SDKs or any technical information on BitTorrent protocols or StreamingAudio? I have tried various searches but all have came-up "blank" :¬/ I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.