WinMMMciSendCommand(Int32, MCICommands, IntPtr, MciOpenParms) Method
Sends a command message to the specified MCI device.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("WinMM.dll", EntryPoint = "mciSendCommand", SetLastError = true)]
public static int MciSendCommand(
int device,
MCICommands command,
IntPtr flags,
ref MciOpenParms refParam
)
<DllImportAttribute("WinMM.dll", EntryPoint := "mciSendCommand", SetLastError := true>]
Public Shared Function MciSendCommand (
device As Integer,
command As MCICommands,
flags As IntPtr,
ByRef refParam As MciOpenParms
) As Integer
Dim device As Integer
Dim command As MCICommands
Dim flags As IntPtr
Dim refParam As MciOpenParms
Dim returnValue As Integer
returnValue = WinMM.MciSendCommand(device,
command, flags, refParam)
public:
[DllImportAttribute(L"WinMM.dll", EntryPoint = L"mciSendCommand", SetLastError = true)]
static int MciSendCommand(
int device,
MCICommands command,
IntPtr flags,
MciOpenParms% refParam
)
[<DllImportAttribute("WinMM.dll", EntryPoint = "mciSendCommand", SetLastError = true)>]
static member MciSendCommand :
device : int *
command : MCICommands *
flags : IntPtr *
refParam : MciOpenParms byref -> int
No code example is currently available or this language may not be supported.
- device Int32
-
Device identifier of the MCI device that is to receive the command message.
This parameter is not used with the Open command message.
- command MCICommands
-
The command message to send.
- flags IntPtr
-
Flags for the command message.
- refParam MciOpenParms
-
Pointer to a structure that contains parameters for the command message.
Int32
Returns zero if successful or an error otherwise.
The low-order word of the returned DWORD 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 return values, see MCIERR Return Values.
To retrieve a text description of return values,
pass the return value to the
MciGetErrorString(Int32, StringBuilder, Int32) function