* successful, the id doesn't equals 0.
*/
public static int getDeviceID(String path)
{
MCI_OPEN_PARMS parms = null;
TCHAR strDeviceType = new TCHAR(0, MCI_DEVTYPE_CD_AUDIO, true);
TCHAR strElementName = new TCHAR(0, path, true);
int hHeap = Extension.GetProcessHeap();
int byteCount = strDeviceType.length() * TCHAR.sizeof;
int lpstrDeviceType = Extension
.HeapAlloc(hHeap, Extension.HEAP_ZERO_MEMORY, byteCount);
Extension.MoveMemory(lpstrDeviceType, strDeviceType, byteCount);
byteCount = strElementName.length() * TCHAR.sizeof;
int lpstrElementName = Extension.HeapAlloc(hHeap, Extension.HEAP_ZERO_MEMORY,
byteCount);
Extension.MoveMemory(lpstrElementName, strElementName, byteCount);
if (Extension.IsUnicode)