mciSendCommand function Null safety winmm
The mciSendCommand function sends a command message to the specified MCI device.
MCIERROR mciSendCommandW(
MCIDEVICEID IDDevice,
UINT uMsg,
DWORD_PTR fdwCommand,
DWORD_PTR dwParam
);
Implementation
int mciSendCommand(int IDDevice, int uMsg, int fdwCommand, int dwParam) {
final _mciSendCommand = _winmm.lookupFunction<
Uint32 Function(
Uint32 IDDevice, Uint32 uMsg, IntPtr fdwCommand, IntPtr dwParam),
int Function(int IDDevice, int uMsg, int fdwCommand,
int dwParam)>('mciSendCommandW');
return _mciSendCommand(IDDevice, uMsg, fdwCommand, dwParam);
}