Laufwerk öffnen schließen
-
Hi ich bin im internet über die 2 code stücke gestolpert das eine öffnet das laufwerk und das andere schließt es wieder
da ich in der hilfe nichts brauchbares gefunden habe wollt ich euch mal fragen ob mir einer von euch den code genauer erklären kann vorallem mit den parametern was sie aussagen und was ich mit ihnen verändern kann
Öffnen:
mciSendString("set cdaudio door open",0,0,0);Schließen:
mciSendString("set cdaudio door closed",0,0,0);danke für alle antworten

mfg Virus
-
Hallo,
was heißt du hast in der Hilfe nichts brauchbares gefunden?
The mciSendString function sends a command string to an MCI device. The device that the command is sent to is specified in the command string.
MCIERROR mciSendString(
LPCTSTR lpszCommand,
LPTSTR lpszReturnString,
UINT cchReturn,
HANDLE hwndCallback
);Parameters
lpszCommand
Address of a null-terminated string that specifies an MCI command string. For more information about the command strings, see Command Strings.
lpszReturnString
Address of a buffer that receives return information. If no return information is needed, this parameter can be NULL.
cchReturn
Size, in characters, of the return buffer specified by the lpszReturnString parameter.
hwndCallback
Handle of a callback window if the "notify" flag was specified in the command string.
Return Values
Returns zero if successful or an error otherwise. The low-order word of the returned doubleword value contains the error return value. If the error is device-specific, the high-order word of the return value is the driver identifier; otherwise, the high-order word is zero. For a list of possible error values, see Constants: MCIERR Return Values.
To retrieve a text description of mciSendString return values, pass the return value to the mciGetErrorString function.LG, Micha
-
Hallo
Ich vermute Virus_91.x möchte eine Erklärung zu der Syntax des command string, nicht nur zu der WinAPI-Funktion mciSendString. Und genau deshalb ist er hier falsch, dazu wirst du eher was im WinAPI-Forum erfahren.
bis bald
akari
-
Dieser Thread wurde von Moderator/in akari aus dem Forum VCL (C++ Builder) in das Forum WinAPI verschoben.
Im Zweifelsfall bitte auch folgende Hinweise beachten:
C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?Dieses Posting wurde automatisch erzeugt.
-
-
danke für die antworten so langsam versteh ich das ^^
danke an alle
