Changeset 141 for Include/api_mmsys.sbp


Ignore:
Timestamp:
Mar 8, 2007, 10:42:50 AM (18 years ago)
Author:
イグトランス (egtra)
Message:

#50 API宣言の変更完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Include/api_mmsys.sbp

    r95 r141  
    66#define _INC_MMSYS
    77
     8#ifdef UNICODE
     9Const _FuncName_sndPlaySound = "sndPlaySoundW"
     10Const _FuncName_PlaySound = "PlaySoundW"
     11Const _FuncName_waveOutGetDevCaps = "waveOutGetDevCapsW"
     12Const _FuncName_waveOutGetErrorText = "waveOutGetErrorTextW"
     13Const _FuncName_waveInGetDevCaps = "waveInGetDevCapsW"
     14Const _FuncName_waveInGetErrorText = "waveInGetErrorTextW"
     15Const _FuncName_midiOutGetDevCaps = "midiOutGetDevCapsW"
     16Const _FuncName_midiOutGetErrorText = "midiOutGetErrorTextW"
     17Const _FuncName_midiInGetDevCaps = "midiInGetDevCapsW"
     18Const _FuncName_midiInGetErrorText = "midiInGetErrorTextW"
     19Const _FuncName_auxGetDevCaps = "auxGetDevCapsW"
     20Const _FuncName_mixerGetDevCaps = "mixerGetDevCapsW"
     21Const _FuncName_mixerGetLineInfo = "mixerGetLineInfoW"
     22Const _FuncName_mixerGetLineControls = "mixerGetLineControlsW"
     23Const _FuncName_mixerGetControlDetails = "mixerGetControlDetailsW"
     24Const _FuncName_joyGetDevCaps = "joyGetDevCapsW"
     25Const _FuncName_mmioStringToFOURCC = "mmioStringToFOURCCW"
     26Const _FuncName_mmioInstallIOProc = "mmioInstallIOProcW"
     27Const _FuncName_mmioOpen = "mmioOpenW"
     28Const _FuncName_mmioRename = "mmioRenameW"
     29Const _FuncName_mciSendCommand = "mciSendCommandW"
     30Const _FuncName_mciSendString = "mciSendStringW"
     31Const _FuncName_mciGetDeviceID = "mciGetDeviceIDW"
     32Const _FuncName_mciGetErrorString = "mciGetErrorStringW"
     33#else
     34Const _FuncName_sndPlaySound = "sndPlaySoundA"
     35Const _FuncName_PlaySound = "PlaySoundA"
     36Const _FuncName_waveOutGetDevCaps = "waveOutGetDevCapsA"
     37Const _FuncName_waveOutGetErrorText = "waveOutGetErrorTextA"
     38Const _FuncName_waveInGetDevCaps = "waveInGetDevCapsA"
     39Const _FuncName_waveInGetErrorText = "waveInGetErrorTextA"
     40Const _FuncName_midiOutGetDevCaps = "midiOutGetDevCapsA"
     41Const _FuncName_midiOutGetErrorText = "midiOutGetErrorTextA"
     42Const _FuncName_midiInGetDevCaps = "midiInGetDevCapsA"
     43Const _FuncName_midiInGetErrorText = "midiInGetErrorTextA"
     44Const _FuncName_auxGetDevCaps = "auxGetDevCapsA"
     45Const _FuncName_mixerGetDevCaps = "mixerGetDevCapsA"
     46Const _FuncName_mixerGetLineInfo = "mixerGetLineInfoA"
     47Const _FuncName_mixerGetLineControls = "mixerGetLineControlsA"
     48Const _FuncName_mixerGetControlDetails = "mixerGetControlDetailsA"
     49Const _FuncName_joyGetDevCaps = "joyGetDevCapsA"
     50Const _FuncName_mmioStringToFOURCC = "mmioStringToFOURCCA"
     51Const _FuncName_mmioInstallIOProc = "mmioInstallIOProcA"
     52Const _FuncName_mmioOpen = "mmioOpenA"
     53Const _FuncName_mmioRename = "mmioRenameA"
     54Const _FuncName_mciSendCommand = "mciSendCommandA"
     55Const _FuncName_mciSendString = "mciSendStringA"
     56Const _FuncName_mciGetDeviceID = "mciGetDeviceIDA"
     57Const _FuncName_mciGetErrorString = "mciGetErrorStringA"
     58#endif
    859
    960' general constants
     
    261312' Sound support
    262313
    263 Declare Function sndPlaySound Lib "winmm" Alias "sndPlaySoundA" (pszSound As PCSTR, fuSound As DWord) As BOOL
     314Declare Function sndPlaySound Lib "winmm" Alias _FuncName_sndPlaySound (pszSound As PCTSTR, fuSound As DWord) As BOOL
    264315
    265316Const SND_SYNC = &H0000
     
    289340Const SND_ALIAS_SYSTEMDEFAULT = sndAlias(&H53, &H44)
    290341
    291 Declare Function PlaySound Lib "winmm" Alias "PlaySoundA" (pszSound As PCSTR, hmod As HMODULE, fdwSound As DWord) As BOOL
     342Declare Function PlaySound Lib "winmm" Alias _FuncName_PlaySound (pszSound As PCTSTR, hmod As HMODULE, fdwSound As DWord) As BOOL
    292343
    293344
     
    353404
    354405' waveform output device capabilities structure
     406Type WAVEOUTCAPSW
     407    wMid As Word
     408    wPid As Word
     409    vDriverVersion As MMVERSION
     410    szPname[ELM(MAXPNAMELEN)] As WCHAR
     411    dwFormats As DWord
     412    wChannels As Word
     413    wReserved1 As Word
     414    dwSupport As DWord
     415End Type
     416TypeDef PWAVEOUTCAPSW = *WAVEOUTCAPSW
     417TypeDef LPWAVEOUTCAPSW = *WAVEOUTCAPSW
    355418Type WAVEOUTCAPSA
    356419    wMid As Word
    357420    wPid As Word
    358421    vDriverVersion As MMVERSION
    359     szPname[ELM(MAXPNAMELEN)] As Char
     422    szPname[ELM(MAXPNAMELEN)] As SByte
    360423    dwFormats As DWord
    361424    wChannels As Word
     
    365428TypeDef PWAVEOUTCAPSA = *WAVEOUTCAPSA
    366429TypeDef LPWAVEOUTCAPSA = *WAVEOUTCAPSA
    367 
     430#ifdef UNICODE
     431TypeDef WAVEOUTCAPS = WAVEOUTCAPSW
     432#else
    368433TypeDef WAVEOUTCAPS = WAVEOUTCAPSA
    369 TypeDef PWAVEOUTCAPS = PWAVEOUTCAPSA
    370 TypeDef LPWAVEOUTCAPS = LPWAVEOUTCAPSA
     434#endif
     435TypeDef PWAVEOUTCAPS = *WAVEOUTCAPS
     436TypeDef LPWAVEOUTCAPS = *WAVEOUTCAPS
    371437
    372438' flags for dwSupport field of WAVEOUTCAPS
     
    380446
    381447' waveform input device capabilities structure
     448Type WAVEINCAPSW
     449    wMid As Word
     450    wPid As Word
     451    vDriverVersion As MMVERSION
     452    szPname[ELM(MAXPNAMELEN)] As WCHAR
     453    dwFormats As DWord
     454    wChannels As Word
     455    wReserved1 As Word
     456End Type
     457TypeDef PWAVEINCAPSW = *WAVEINCAPSW
     458TypeDef LPWAVEINCAPSW = *WAVEINCAPSW
    382459Type WAVEINCAPSA
    383460    wMid As Word
    384461    wPid As Word
    385462    vDriverVersion As MMVERSION
    386     szPname[ELM(MAXPNAMELEN)] As Char
     463    szPname[ELM(MAXPNAMELEN)] As SByte
    387464    dwFormats As DWord
    388465    wChannels As Word
     
    391468TypeDef PWAVEINCAPSA = *WAVEINCAPSA
    392469TypeDef LPWAVEINCAPSA = *WAVEINCAPSA
    393 
     470#ifdef UNICODE
     471TypeDef WAVEINCAPS = WAVEINCAPSW
     472#else
    394473TypeDef WAVEINCAPS = WAVEINCAPSA
    395 TypeDef PWAVEINCAPS = PWAVEINCAPSA
    396 TypeDef LPWAVEINCAPS = LPWAVEINCAPSA
     474#endif
     475TypeDef PWAVEINCAPS = *WAVEINCAPS
     476TypeDef LPWAVEINCAPS = *WAVEINCAPS
    397477
    398478' defines for dwFormat field of WAVEINCAPS and WAVEOUTCAPS
    399479Const WAVE_INVALIDFORMAT     = &H00000000       ' invalid format
    400 Const WAVE_FORMAT_1M08       = &H00000001       ' 11.025 kHz, Mono,   8-bit 
    401 Const WAVE_FORMAT_1S08       = &H00000002       ' 11.025 kHz, Stereo, 8-bit 
     480Const WAVE_FORMAT_1M08       = &H00000001       ' 11.025 kHz, Mono,   8-bit
     481Const WAVE_FORMAT_1S08       = &H00000002       ' 11.025 kHz, Stereo, 8-bit
    402482Const WAVE_FORMAT_1M16       = &H00000004       ' 11.025 kHz, Mono,   16-bit
    403483Const WAVE_FORMAT_1S16       = &H00000008       ' 11.025 kHz, Stereo, 16-bit
    404 Const WAVE_FORMAT_2M08       = &H00000010       ' 22.05  kHz, Mono,   8-bit 
    405 Const WAVE_FORMAT_2S08       = &H00000020       ' 22.05  kHz, Stereo, 8-bit 
     484Const WAVE_FORMAT_2M08       = &H00000010       ' 22.05  kHz, Mono,   8-bit
     485Const WAVE_FORMAT_2S08       = &H00000020       ' 22.05  kHz, Stereo, 8-bit
    406486Const WAVE_FORMAT_2M16       = &H00000040       ' 22.05  kHz, Mono,   16-bit
    407487Const WAVE_FORMAT_2S16       = &H00000080       ' 22.05  kHz, Stereo, 16-bit
    408 Const WAVE_FORMAT_4M08       = &H00000100       ' 44.1   kHz, Mono,   8-bit 
    409 Const WAVE_FORMAT_4S08       = &H00000200       ' 44.1   kHz, Stereo, 8-bit 
     488Const WAVE_FORMAT_4M08       = &H00000100       ' 44.1   kHz, Mono,   8-bit
     489Const WAVE_FORMAT_4S08       = &H00000200       ' 44.1   kHz, Stereo, 8-bit
    410490Const WAVE_FORMAT_4M16       = &H00000400       ' 44.1   kHz, Mono,   16-bit
    411491Const WAVE_FORMAT_4S16       = &H00000800       ' 44.1   kHz, Stereo, 16-bit
     
    448528' waveform audio function prototypes
    449529Declare Function waveOutGetNumDevs Lib "winmm" () As DWord
    450 Declare Function waveOutGetDevCaps Lib "winmm" Alias "waveOutGetDevCapsA" (uDeviceID As DWord, ByRef pwoc As WAVEOUTCAPS, cbwoc As DWord) As MMRESULT
     530Declare Function waveOutGetDevCaps Lib "winmm" Alias _FuncName_waveOutGetDevCaps (uDeviceID As DWord, ByRef woc As WAVEOUTCAPS, cbwoc As DWord) As MMRESULT
    451531Declare Function waveOutGetVolume Lib "winmm" (hwo As HWAVEOUT, ByRef pdwVolume As DWord) As MMRESULT
    452532Declare Function waveOutSetVolume Lib "winmm" (hwo As HWAVEOUT, dwVolume As DWord) As MMRESULT
    453 Declare Function waveOutGetErrorText Lib "winmm" Alias "waveOutGetErrorTextA" (mmrError As MMRESULT, pszText As LPSTR, cchText As DWord) As MMRESULT
     533Declare Function waveOutGetErrorText Lib "winmm" Alias _FuncName_waveOutGetErrorText (mmrError As MMRESULT, pszText As LPTSTR, cchText As DWord) As MMRESULT
    454534Declare Function waveOutOpen Lib "winmm" (ByRef phwo As HWAVEOUT, uDeviceID As DWord, ByRef pwfx As WAVEFORMATEX, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT
    455535Declare Function waveOutClose Lib "winmm" (hwo As HWAVEOUT) As MMRESULT
     
    470550
    471551Declare Function waveInGetNumDevs Lib "winmm" () As DWord
    472 Declare Function waveInGetDevCaps Lib "winmm" Alias "waveInGetDevCapsA" (uDeviceID As DWord, ByRef pwic As WAVEINCAPS, cbwic As DWord) As MMRESULT
    473 Declare Function waveInGetErrorText Lib "winmm" Alias "waveInGetErrorTextA" (mmrError As MMRESULT, pszText As LPSTR, cchText As DWord) As MMRESULT
     552Declare Function waveInGetDevCaps Lib "winmm" Alias _FuncName_waveInGetDevCaps (uDeviceID As DWord, ByRef pwic As WAVEINCAPS, cbwic As DWord) As MMRESULT
     553Declare Function waveInGetErrorText Lib "winmm" Alias _FuncName_waveInGetErrorText (mmrError As MMRESULT, pszText As LPTSTR, cchText As DWord) As MMRESULT
    474554Declare Function waveInOpen Lib "winmm" (ByRef phwi As HWAVEIN, uDeviceID As DWord, ByRef pwfx As WAVEFORMATEX, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT
    475555Declare Function waveInClose Lib "winmm" (hwi As HWAVEIN) As MMRESULT
     
    544624
    545625' MIDI output device capabilities structure
    546 Type MIDIOUTCAPSA
     626Type MIDIOUTCAPSW
    547627    wMid As Word
    548628    wPid As Word
    549629    vDriverVersion As MMVERSION
    550     szPname[ELM(MAXPNAMELEN)] As Char
     630    szPname[ELM(MAXPNAMELEN)] As WCHAR
    551631    wTechnology As Word
    552632    wVoices As Word
     
    555635    dwSupport As DWord
    556636End Type
     637TypeDef PMIDIOUTCAPSW = *MIDIOUTCAPSW
     638TypeDef LPMIDIOUTCAPSW = *MIDIOUTCAPSW
     639Type MIDIOUTCAPSA
     640    wMid As Word
     641    wPid As Word
     642    vDriverVersion As MMVERSION
     643    szPname[ELM(MAXPNAMELEN)] As SByte
     644    wTechnology As Word
     645    wVoices As Word
     646    wNotes As Word
     647    wChannelMask As Word
     648    dwSupport As DWord
     649End Type
    557650TypeDef PMIDIOUTCAPSA = *MIDIOUTCAPSA
    558651TypeDef LPMIDIOUTCAPSA = *MIDIOUTCAPSA
    559652
     653#ifdef UNICODE
     654TypeDef MIDIOUTCAPS = MIDIOUTCAPSW
     655#else
    560656TypeDef MIDIOUTCAPS = MIDIOUTCAPSA
    561 TypeDef PMIDIOUTCAPS = PMIDIOUTCAPSA
    562 TypeDef LPMIDIOUTCAPS = LPMIDIOUTCAPSA
     657#endif
     658TypeDef PMIDIOUTCAPS = *MIDIOUTCAPS
     659TypeDef LPMIDIOUTCAPS = *MIDIOUTCAPS
    563660
    564661' flags for wTechnology field of MIDIOUTCAPS structure
     
    576673
    577674' MIDI input device capabilities structure
     675Type MIDIINCAPSW
     676    wMid As Word
     677    wPid As Word
     678    vDriverVersion As MMVERSION
     679    szPname[ELM(MAXPNAMELEN)] As WCHAR
     680    dwSupport As DWord
     681End Type
     682TypeDef PMIDIINCAPSW = *MIDIINCAPSW
     683TypeDef LPMIDIINCAPSW = *MIDIINCAPSW
    578684Type MIDIINCAPSA
    579685    wMid As Word
    580686    wPid As Word
    581687    vDriverVersion As MMVERSION
    582     szPname[ELM(MAXPNAMELEN)] As Char
     688    szPname[ELM(MAXPNAMELEN)] As SByte
    583689    dwSupport As DWord
    584690End Type
    585691TypeDef PMIDIINCAPSA = *MIDIINCAPSA
    586692TypeDef LPMIDIINCAPSA = *MIDIINCAPSA
    587 
     693#ifdef UNICODE
     694TypeDef MIDIINCAPS = MIDIINCAPSW
     695#else
    588696TypeDef MIDIINCAPS = MIDIINCAPSA
    589 TypeDef PMIDIINCAPS = PMIDIINCAPSA
    590 TypeDef LPMIDIINCAPS = LPMIDIINCAPSA
     697#endif
     698TypeDef PMIDIINCAPS = *MIDIINCAPS
     699TypeDef LPMIDIINCAPS = *MIDIINCAPS
    591700
    592701' MIDI data block header
     
    670779Declare Function midiConnect Lib "winmm" (hmi As HMIDI, hmo As HMIDIOUT, pReserved As VoidPtr) As MMRESULT
    671780Declare Function midiDisconnect Lib "winmm" (hmi As HMIDI, hmo As HMIDIOUT, pReserved As VoidPtr) As MMRESULT
    672 Declare Function midiOutGetDevCaps Lib "winmm" Alias "midiOutGetDevCapsA" (uDeviceID As DWord, ByRef pmoc As MIDIOUTCAPS, cbmoc As DWord) As MMRESULT
     781Declare Function midiOutGetDevCaps Lib "winmm" Alias _FuncName_midiOutGetDevCaps (uDeviceID As DWord, ByRef moc As MIDIOUTCAPS, cbmoc As DWord) As MMRESULT
    673782Declare Function midiOutGetVolume Lib "winmm" (hmo As HMIDIOUT, ByRef pdwVolume As DWord) As MMRESULT
    674783Declare Function midiOutSetVolume Lib "winmm" (hmo As HMIDIOUT, dwVolume As DWord) As MMRESULT
    675 Declare Function midiOutGetErrorText Lib "winmm" Alias "midiOutGetErrorTextA" (mmrError As MMRESULT, pszText As LPSTR, cchText As DWord) As MMRESULT
     784Declare Function midiOutGetErrorText Lib "winmm" Alias _FuncName_midiOutGetErrorText (mmrError As MMRESULT, pszText As LPTSTR, cchText As DWord) As MMRESULT
    676785Declare Function midiOutOpen Lib "winmm" (ByRef phmo As HMIDIOUT, uDeviceID As DWord, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT
    677786Declare Function midiOutClose Lib "winmm" (hmo As HMIDIOUT) As MMRESULT
     
    687796
    688797Declare Function midiInGetNumDevs Lib "winmm" () As DWord
    689 Declare Function midiInGetDevCaps Lib "winmm" Alias "midiInGetDevCapsA" (uDeviceID As DWord, ByRef pmic As MIDIINCAPS, cbmic As DWord) As MMRESULT
    690 Declare Function midiInGetErrorText Lib "winmm" Alias "midiInGetErrorTextA" (mmrError As MMRESULT, pszText As LPSTR, cchText As DWord) As MMRESULT
     798Declare Function midiInGetDevCaps Lib "winmm" Alias _FuncName_midiInGetDevCaps (uDeviceID As DWord, ByRef pmic As MIDIINCAPS, cbmic As DWord) As MMRESULT
     799Declare Function midiInGetErrorText Lib "winmm" Alias _FuncName_midiInGetErrorText (mmrError As MMRESULT, pszText As LPCTSTR, cchText As DWord) As MMRESULT
    691800Declare Function midiInOpen Lib "winmm" (ByRef phmi As HMIDIIN, uDeviceID As DWord, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT
    692801Declare Function midiInClose Lib "winmm" (hmi As HMIDIIN) As MMRESULT
     
    708817
    709818' Auxiliary audio device capabilities structure
     819Type AUXCAPSW
     820    wMid As Word
     821    wPid As Word
     822    vDriverVersion As MMVERSION
     823    szPname[ELM(MAXPNAMELEN)] As WCHAR
     824    wTechnology As Word
     825    wReserved1 As Word
     826    dwSupport As DWord
     827End Type
     828TypeDef PAUXCAPSW = *AUXCAPSW
     829TypeDef NPAUXCAPSW = *AUXCAPSW
     830TypeDef LPAUXCAPSW = *AUXCAPSW
    710831Type AUXCAPSA
    711832    wMid As Word
    712833    wPid As Word
    713834    vDriverVersion As MMVERSION
    714     szPname[ELM(MAXPNAMELEN)] As Char
     835    szPname[ELM(MAXPNAMELEN)] As SByte
    715836    wTechnology As Word
    716837    wReserved1 As Word
     
    720841TypeDef NPAUXCAPSA = *AUXCAPSA
    721842TypeDef LPAUXCAPSA = *AUXCAPSA
    722 
     843#ifdef UNICODE
    723844TypeDef AUXCAPS = AUXCAPSA
    724 TypeDef PAUXCAPS = PAUXCAPSA
    725 TypeDef NPAUXCAPS = NPAUXCAPSA
    726 TypeDef LPAUXCAPS = LPAUXCAPSA
     845#else
     846TypeDef AUXCAPS = AUXCAPSA
     847#endif
     848TypeDef PAUXCAPS = *AUXCAPS
     849TypeDef NPAUXCAPS = *AUXCAPS
     850TypeDef LPAUXCAPS = *AUXCAPS
    727851
    728852Const AUXCAPS_CDAUDIO = 1
     
    734858' auxiliary audio function prototypes
    735859Declare Function auxGetNumDevs Lib "winmm" () As DWord
    736 Declare Function auxGetDevCaps Lib "winmm" Alias "auxGetDevCapsA" (uDeviceID As DWord, pac As *AUXCAPS, cbac As DWord) As MMRESULT
     860Declare Function auxGetDevCaps Lib "winmm" Alias _FuncName_auxGetDevCaps (uDeviceID As DWord, pac As *AUXCAPS, cbac As DWord) As MMRESULT
    737861Declare Function auxSetVolume Lib "winmm" (uDeviceID As DWord, dwVolume As DWord) As MMRESULT
    738862Declare Function auxGetVolume Lib "winmm" (uDeviceID As DWord, pdwVolume As *DWord) As MMRESULT
     
    771895Declare Function mixerGetNumDevs Lib "winmm" () As DWord
    772896
     897Type MIXERCAPSW
     898    wMid As Word
     899    wPid As Word
     900    vDriverVersion As MMVERSION
     901    szPname[ELM(MAXPNAMELEN)] As WCHAR
     902    fdwSupport As DWord
     903    cDestinations As DWord
     904End Type
     905TypeDef PMIXERCAPSW = *MIXERCAPSW
     906TypeDef LPMIXERCAPSW = *MIXERCAPSW
    773907Type MIXERCAPSA
    774908    wMid As Word
     
    781915TypeDef PMIXERCAPSA = *MIXERCAPSA
    782916TypeDef LPMIXERCAPSA = *MIXERCAPSA
    783 
     917#ifdef UNICODE
     918TypeDef MIXERCAPS = MIXERCAPSW
     919#else
    784920TypeDef MIXERCAPS = MIXERCAPSA
    785 TypeDef PMIXERCAPS = PMIXERCAPSA
    786 TypeDef LPMIXERCAPS = LPMIXERCAPSA
    787 
    788 Declare Function mixerGetDevCaps Lib "winmm" Alias "mixerGetDevCapsA" (uMxId As DWord, pmxcaps As *MIXERCAPS, cbmxcaps As DWord) As MMRESULT
     921#endif
     922TypeDef PMIXERCAPS = *MIXERCAPS
     923TypeDef LPMIXERCAPS = *MIXERCAPS
     924
     925Declare Function mixerGetDevCaps Lib "winmm" Alias _FuncName_mixerGetDevCaps (uMxId As DWord, pmxcaps As *MIXERCAPS, cbmxcaps As DWord) As MMRESULT
    789926Declare Function mixerOpen Lib "winmm" (phmx As *HMIXER, uMxId As DWord, dwCallback As DWord, dwInstance As DWord, fdwOpen As DWord) As MMRESULT
    790927Declare Function mixerClose Lib "winmm" (hmx As HMIXER) As MMRESULT
    791928Declare Function mixerMessage Lib "winmm" (hmx As HMIXER, uMsg As DWord, dwParam1 As DWord, dwParam2 As DWord) As DWord
    792929
    793 Type TARGET
     930Type _MMSYSTEM_TARGETW
    794931    dwType As DWord
    795932    dwDeviceID As DWord
     
    797934    wPid As Word
    798935    vDriverVersion As MMVERSION
    799     szPname[ELM(MAXPNAMELEN)] As Char
     936    szPname[ELM(MAXPNAMELEN)] As WCHAR
     937End Type
     938
     939Type MIXERLINEW
     940    cbStruct As DWord
     941    dwDestination As DWord
     942    dwSource As DWord
     943    dwLineID As DWord
     944    fdwLine As DWord
     945    dwUser As DWord
     946    dwComponentType As DWord
     947    cChannels As DWord
     948    cConnections As DWord
     949    cControls As DWord
     950    szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As WCHAR
     951    szName[ELM(MIXER_LONG_NAME_CHARS)] As WCHAR
     952    Target As _MMSYSTEM_TARGETW
     953End Type
     954TypeDef PMIXERLINEW = *MIXERLINEW
     955TypeDef LPMIXERLINEW = *MIXERLINEW
     956
     957Type _MMSYSTEM_TARGETA
     958    dwType As DWord
     959    dwDeviceID As DWord
     960    wMid As Word
     961    wPid As Word
     962    vDriverVersion As MMVERSION
     963    szPname[ELM(MAXPNAMELEN)] As SByte
    800964End Type
    801965
     
    811975    cConnections As DWord
    812976    cControls As DWord
    813     szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As Char
    814     szName[ELM(MIXER_LONG_NAME_CHARS)] As Char
    815     Target As TARGET
     977    szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As SByte
     978    szName[ELM(MIXER_LONG_NAME_CHARS)] As SByte
     979    Target As _MMSYSTEM_TARGETA
    816980End Type
    817981TypeDef PMIXERLINEA = *MIXERLINEA
    818982TypeDef LPMIXERLINEA = *MIXERLINEA
    819 
     983#ifdef UNICODE
     984TypeDef MIXERLINE = MIXERLINEW
     985#else
    820986TypeDef MIXERLINE = MIXERLINEA
    821 TypeDef PMIXERLINE = PMIXERLINEA
    822 TypeDef LPMIXERLINE = LPMIXERLINEA
     987#endif
     988TypeDef PMIXERLINE = *MIXERLINE
     989TypeDef LPMIXERLINE = *MIXERLINE
    823990
    824991' MIXERLINE.fdwLine
     
    8621029Const MIXERLINE_TARGETTYPE_AUX = 5
    8631030
    864 Declare Function mixerGetLineInfo Lib "winmm" Alias "mixerGetLineInfoA" (hmxobj As HMIXEROBJ, pmxl As *MIXERLINE, fdwInfo As DWord) As MMRESULT
     1031Declare Function mixerGetLineInfo Lib "winmm" Alias _FuncName_mixerGetLineInfo (hmxobj As HMIXEROBJ, pmxl As *MIXERLINE, fdwInfo As DWord) As MMRESULT
    8651032
    8661033Const MIXER_GETLINEINFOF_DESTINATION = &H00000000
     
    8731040Declare Function mixerGetID Lib "winmm" (hmxobj As HMIXEROBJ, puMxId As *DWord, fdwId As DWord) As MMRESULT
    8741041
     1042Type MIXERCONTROLW
     1043    cbStruct As DWord
     1044    dwControlID As DWord
     1045    dwControlType As DWord
     1046    fdwControl As DWord
     1047    cMultipleItems As DWord
     1048    szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As WCHAR
     1049    szName[ELM(MIXER_LONG_NAME_CHARS)] As WCHAR
     1050    Bounds[ELM(6)] As DWord
     1051    Metrics[ELM(6)] As DWord
     1052End Type
     1053TypeDef PMIXERCONTROLW = *MIXERCONTROLW
     1054TypeDef LPMIXERCONTROLW = *MIXERCONTROLW
    8751055Type MIXERCONTROLA
    8761056    cbStruct As DWord
     
    8791059    fdwControl As DWord
    8801060    cMultipleItems As DWord
    881     szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As Char
    882     szName[ELM(MIXER_LONG_NAME_CHARS)] As Char
     1061    szShortName[ELM(MIXER_SHORT_NAME_CHARS)] As SByte
     1062    szName[ELM(MIXER_LONG_NAME_CHARS)] As SByte
    8831063    Bounds[ELM(6)] As DWord
    8841064    Metrics[ELM(6)] As DWord
     
    8861066TypeDef PMIXERCONTROLA = *MIXERCONTROLA
    8871067TypeDef LPMIXERCONTROLA = *MIXERCONTROLA
    888 
     1068#ifdef UNICODE
     1069TypeDef MIXERCONTROL = MIXERCONTROLW
     1070#else
    8891071TypeDef MIXERCONTROL = MIXERCONTROLA
    890 TypeDef PMIXERCONTROL = PMIXERCONTROLA
    891 TypeDef LPMIXERCONTROL = LPMIXERCONTROLA
     1072#endif
     1073TypeDef PMIXERCONTROL = *MIXERCONTROL
     1074TypeDef LPMIXERCONTROL = *MIXERCONTROL
    8921075
    8931076' MIXERCONTROL.fdwControl
     
    9541137Const MIXERCONTROL_CONTROLTYPE_MILLITIME = (MIXERCONTROL_CT_CLASS_TIME OR MIXERCONTROL_CT_SC_TIME_MILLISECS OR MIXERCONTROL_CT_UNITS_UNSIGNED)
    9551138
     1139Type MIXERLINECONTROLSW
     1140    cbStruct As DWord
     1141    dwLineID As DWord
     1142    dwControl_ID_Type As DWord
     1143    cControls As DWord
     1144    cbmxctrl As DWord
     1145    pamxctrl As *MIXERCONTROLW
     1146End Type
     1147TypeDef PMIXERLINECONTROLSW = *MIXERLINECONTROLSW
     1148TypeDef LPMIXERLINECONTROLSW = *MIXERLINECONTROLSW
    9561149Type MIXERLINECONTROLSA
    9571150    cbStruct As DWord
     
    9601153    cControls As DWord
    9611154    cbmxctrl As DWord
    962     pamxctrl As *MIXERCONTROL
     1155    pamxctrl As *MIXERCONTROLA
    9631156End Type
    9641157TypeDef PMIXERLINECONTROLSA = *MIXERLINECONTROLSA
    9651158TypeDef LPMIXERLINECONTROLSA = *MIXERLINECONTROLSA
    966 
     1159#ifdef UNICODE
    9671160TypeDef MIXERLINECONTROLS = MIXERLINECONTROLSA
    968 TypeDef PMIXERLINECONTROLS = PMIXERLINECONTROLSA
    969 TypeDef LPMIXERLINECONTROLS = LPMIXERLINECONTROLSA
    970 
    971 Declare Function mixerGetLineControls Lib "winmm" Alias "mixerGetLineControlsA" (hmxobj As HMIXEROBJ, pmxlc As *MIXERLINECONTROLS, fdwControls As DWord) As MMRESULT
     1161#else
     1162TypeDef MIXERLINECONTROLS = MIXERLINECONTROLSA
     1163#endif
     1164TypeDef PMIXERLINECONTROLS = *MIXERLINECONTROLS
     1165TypeDef LPMIXERLINECONTROLS = *MIXERLINECONTROLS
     1166
     1167Declare Function mixerGetLineControls Lib "winmm" Alias _FuncName_mixerGetLineControls (hmxobj As HMIXEROBJ, pmxlc As *MIXERLINECONTROLS, fdwControls As DWord) As MMRESULT
    9721168
    9731169Const MIXER_GETLINECONTROLSF_ALL = &H00000000
     
    9871183TypeDef LPMIXERCONTROLDETAILS = *MIXERCONTROLDETAILS
    9881184
     1185Type MIXERCONTROLDETAILS_LISTTEXTW
     1186    dwParam1 As DWord
     1187    dwParam2 As DWord
     1188    szName[ELM(MIXER_LONG_NAME_CHARS)] As WCHAR
     1189End Type
     1190TypeDef PMIXERCONTROLDETAILS_LISTTEXTW = *MIXERCONTROLDETAILS_LISTTEXTW
     1191TypeDef LPMIXERCONTROLDETAILS_LISTTEXTW = *MIXERCONTROLDETAILS_LISTTEXTW
    9891192Type MIXERCONTROLDETAILS_LISTTEXTA
    9901193    dwParam1 As DWord
    9911194    dwParam2 As DWord
    992     szName[ELM(MIXER_LONG_NAME_CHARS)] As Char
     1195    szName[ELM(MIXER_LONG_NAME_CHARS)] As SByte
    9931196End Type
    9941197TypeDef PMIXERCONTROLDETAILS_LISTTEXTA = *MIXERCONTROLDETAILS_LISTTEXTA
    9951198TypeDef LPMIXERCONTROLDETAILS_LISTTEXTA = *MIXERCONTROLDETAILS_LISTTEXTA
    996 
     1199#ifdef UNICODE
     1200TypeDef MIXERCONTROLDETAILS_LISTTEXT = MIXERCONTROLDETAILS_LISTTEXTW
     1201#else
    9971202TypeDef MIXERCONTROLDETAILS_LISTTEXT = MIXERCONTROLDETAILS_LISTTEXTA
    998 TypeDef PMIXERCONTROLDETAILS_LISTTEXT = PMIXERCONTROLDETAILS_LISTTEXTA
    999 TypeDef LPMIXERCONTROLDETAILS_LISTTEXT = LPMIXERCONTROLDETAILS_LISTTEXTA
     1203#endif
     1204TypeDef PMIXERCONTROLDETAILS_LISTTEXT = *MIXERCONTROLDETAILS_LISTTEXT
     1205TypeDef LPMIXERCONTROLDETAILS_LISTTEXT = *MIXERCONTROLDETAILS_LISTTEXT
    10001206
    10011207Type MIXERCONTROLDETAILS_BOOLEAN
     
    10191225Declare Function mixerGetControlDetailsA Lib "winmm" (hmxobj As HMIXEROBJ, pmxcd As *MIXERCONTROLDETAILS, fdwDetails As DWord) As MMRESULT
    10201226Declare Function mixerGetControlDetailsW Lib "winmm" (hmxobj As HMIXEROBJ, pmxcd As *MIXERCONTROLDETAILS, fdwDetails As DWord) As MMRESULT
    1021 Declare Function mixerGetControlDetails Lib "winmm" Alias "mixerGetControlDetailsA" (hmxobj As HMIXEROBJ, pmxcd As *MIXERCONTROLDETAILS, fdwDetails As DWord) As MMRESULT
     1227Declare Function mixerGetControlDetails Lib "winmm" Alias _FuncName_mixerGetControlDetails (hmxobj As HMIXEROBJ, pmxcd As *MIXERCONTROLDETAILS, fdwDetails As DWord) As MMRESULT
    10221228
    10231229Const MIXER_GETCONTROLDETAILSF_VALUE = &H00000000
     
    11631369Const JOYCAPS_POVCTS = &H0040
    11641370
    1165 Type JOYCAPSA
     1371Type JOYCAPSW
    11661372    wMid As Word
    11671373    wPid As Word
    1168     szPname[ELM(MAXPNAMELEN)] As Char
     1374    szPname[ELM(MAXPNAMELEN)] As WCHAR
    11691375    wXmin As DWord
    11701376    wXmax As DWord
     
    11861392    wNumAxes As DWord
    11871393    wMaxButtons As DWord
    1188     szRegKey[ELM(MAXPNAMELEN)] As Char
    1189     szOEMVxD[ELM(MAX_JOYSTICKOEMVXDNAME)] As Char
     1394    szRegKey[ELM(MAXPNAMELEN)] As WCHAR
     1395    szOEMVxD[ELM(MAX_JOYSTICKOEMVXDNAME)] As WCHAR
     1396End Type
     1397TypeDef PJOYCAPSW = *JOYCAPSW
     1398TypeDef NPJOYCAPSW = *JOYCAPSW
     1399TypeDef LPJOYCAPSW = *JOYCAPSW
     1400Type JOYCAPSA
     1401    wMid As Word
     1402    wPid As Word
     1403    szPname[ELM(MAXPNAMELEN)] As SByte
     1404    wXmin As DWord
     1405    wXmax As DWord
     1406    wYmin As DWord
     1407    wYmax As DWord
     1408    wZmin As DWord
     1409    wZmax As DWord
     1410    wNumButtons As DWord
     1411    wPeriodMin As DWord
     1412    wPeriodMax As DWord
     1413    wRmin As DWord
     1414    wRmax As DWord
     1415    wUmin As DWord
     1416    wUmax As DWord
     1417    wVmin As DWord
     1418    wVmax As DWord
     1419    wCaps As DWord
     1420    wMaxAxes As DWord
     1421    wNumAxes As DWord
     1422    wMaxButtons As DWord
     1423    szRegKey[ELM(MAXPNAMELEN)] As SByte
     1424    szOEMVxD[ELM(MAX_JOYSTICKOEMVXDNAME)] As SByte
    11901425End Type
    11911426TypeDef PJOYCAPSA = *JOYCAPSA
    11921427TypeDef NPJOYCAPSA = *JOYCAPSA
    11931428TypeDef LPJOYCAPSA = *JOYCAPSA
    1194 
     1429#ifdef UNICODE
     1430TypeDef JOYCAPS = JOYCAPSW
     1431#else
    11951432TypeDef JOYCAPS = JOYCAPSA
     1433#endif
    11961434TypeDef PJOYCAPS = PJOYCAPSA
    11971435TypeDef NPJOYCAPS = NPJOYCAPSA
     
    12291467' joystick function prototypes
    12301468Declare Function joyGetNumDevs Lib "winmm" () As DWord
    1231 Declare Function joyGetDevCaps Lib "winmm" Alias "joyGetDevCapsA" (uJoyID As DWord, pjc As *JOYCAPS, cbjc As DWord) As MMRESULT
     1469Declare Function joyGetDevCaps Lib "winmm" Alias _FuncName_joyGetDevCaps (uJoyID As DWord, pjc As *JOYCAPS, cbjc As DWord) As MMRESULT
    12321470Declare Function joyGetPos Lib "winmm" (uJoyID As DWord, pji As *JOYINFO) As MMRESULT
    12331471Declare Function joyGetPosEx Lib "winmm" (uJoyID As DWord, pji As *JOYINFOEX) As MMRESULT
     
    13591597
    13601598' MMIO function prototypes
    1361 Declare Function mmioStringToFOURCC Lib "winmm" Alias "mmioStringToFOURCCA" (sz As LPSTR, uFlags As DWord) As FOURCC
    1362 Declare Function mmioInstallIOProc Lib "winmm" Alias "mmioInstallIOProcA" (fccIOProc As FOURCC, pIOProc As LPMMIOPROC, dwFlags As DWord) As LPMMIOPROC
    1363 Declare Function mmioOpen Lib "winmm" Alias "mmioOpenA" (pszFileName As LPSTR, pmmioinfo As *MMIOINFO, fdwOpen As DWord) As HMMIO
    1364 Declare Function mmioRename Lib "winmm" Alias "mmioRenameA" (pszFileName As LPSTR, pszNewFileName As LPSTR, pmmioinfo As *MMIOINFO, fdwRename As DWord) As MMRESULT
     1599Declare Function mmioStringToFOURCC Lib "winmm" Alias _FuncName_mmioStringToFOURCC (sz As LPCTSTR, uFlags As DWord) As FOURCC
     1600Declare Function mmioInstallIOProc Lib "winmm" Alias _FuncName_mmioInstallIOProc (fccIOProc As FOURCC, pIOProc As LPMMIOPROC, dwFlags As DWord) As LPMMIOPROC
     1601Declare Function mmioOpen Lib "winmm" Alias _FuncName_mmioOpen (pszFileName As LPTSTR, pmmioinfo As *MMIOINFO, fdwOpen As DWord) As HMMIO
     1602Declare Function mmioRename Lib "winmm" Alias _FuncName_mmioRename (pszFileName As LPCTSTR, pszNewFileName As LPCTSTR, pmmioinfo As *MMIOINFO, fdwRename As DWord) As MMRESULT
    13651603Declare Function mmioClose Lib "winmm" (hmmio As HMMIO, fuClose As DWord) As MMRESULT
    13661604Declare Function mmioRead Lib "winmm" (hmmio As HMMIO, pch As HPSTR, cch As Long) As Long
     
    13861624
    13871625' MCI Functions
    1388 Declare Function mciSendCommand Lib "winmm" Alias "mciSendCommandA" (mciId As MCIDEVICEID, uMsg As DWord, dwParam1 As DWord, ByRef dwParam2 As Any) As MCIERROR
    1389 Declare Function mciSendString Lib "winmm" Alias "mciSendStringA" (lpstrCommand As LPSTR, lpstrReturnString As LPSTR, uReturnLength As DWord, hwndCallback As HWND) As MCIERROR
    1390 Declare Function mciGetDeviceID Lib "winmm" Alias "mciGetDeviceIDA" (pszDevice As LPSTR) As MCIDEVICEID
    1391 
    1392 Declare Function mciGetErrorString Lib "winmm" Alias "mciGetErrorStringA" (mcierr As MCIERROR, pszText As LPSTR, cchText As DWord) As BOOL
     1626Declare Function mciSendCommand Lib "winmm" Alias _FuncName_mciSendCommand (mciId As MCIDEVICEID, uMsg As DWord, dwParam1 As ULONG_PTR, ByRef dwParam2 As Any) As MCIERROR
     1627Declare Function mciSendString Lib "winmm" Alias _FuncName_mciSendString (lpstrCommand As LPTSTR, lpstrReturnString As LPTSTR, uReturnLength As DWord, hwndCallback As HWND) As MCIERROR
     1628Declare Function mciGetDeviceID Lib "winmm" Alias _FuncName_mciGetDeviceID (pszDevice As LPCTSTR) As MCIDEVICEID
     1629
     1630Declare Function mciGetErrorString Lib "winmm" Alias _FuncName_mciGetErrorString (mcierr As MCIERROR, pszText As LPSTR, cchText As DWord) As BOOL
    13931631Declare Function mciSetYieldProc Lib "winmm" (mciId As MCIDEVICEID, fpYieldProc As YIELDPROC, dwYieldData As DWord) As BOOL
    13941632Declare Function mciGetCreatorTask Lib "winmm" (mciId As MCIDEVICEID) As HTASK
     
    17041942TypeDef LPMCI_GENERIC_PARMS = *MCI_GENERIC_PARMS
    17051943
    1706 Type MCI_OPEN_PARMS
     1944Type MCI_OPEN_PARMSW
    17071945    dwCallback As DWord
    17081946    wDeviceID As DWord
    1709     lpstrDeviceType As LPSTR
    1710     lpstrElementName As LPSTR
    1711     lpstrAlias As LPSTR
    1712 End Type
     1947    lpstrDeviceType As LPCWSTR
     1948    lpstrElementName As LPCWSTR
     1949    lpstrAlias As LPCWSTR
     1950End Type
     1951TypeDef PMCI_OPEN_PARMSW = *MCI_OPEN_PARMSW
     1952TypeDef LPMCI_OPEN_PARMSW = *MCI_OPEN_PARMSW
     1953Type MCI_OPEN_PARMSA
     1954    dwCallback As DWord
     1955    wDeviceID As DWord
     1956    lpstrDeviceType As LPCSTR
     1957    lpstrElementName As LPCSTR
     1958    lpstrAlias As LPCSTR
     1959End Type
     1960TypeDef PMCI_OPEN_PARMSA = *MCI_OPEN_PARMSA
     1961TypeDef LPMCI_OPEN_PARMSA = *MCI_OPEN_PARMSA
     1962#ifdef UNICODE
     1963TypeDef MCI_OPEN_PARMS = MCI_OPEN_PARMSW
     1964#else
     1965TypeDef MCI_OPEN_PARMS = MCI_OPEN_PARMSA
     1966#endif
    17131967TypeDef PMCI_OPEN_PARMS = *MCI_OPEN_PARMS
    17141968TypeDef LPMCI_OPEN_PARMS = *MCI_OPEN_PARMS
     
    17381992TypeDef LPMCI_STATUS_PARMS = *MCI_STATUS_PARMS
    17391993
     1994Type MCI_INFO_PARMSW
     1995    dwCallback As DWord
     1996    lpstrReturn As LPWSTR
     1997    dwRetSize As DWord
     1998End Type
     1999TypeDef PMCI_INFO_PARMSW = *MCI_INFO_PARMSW
     2000TypeDef LPMCI_INFO_PARMSW = *MCI_INFO_PARMSW
    17402001Type MCI_INFO_PARMSA
    17412002    dwCallback As DWord
     
    17452006TypeDef PMCI_INFO_PARMSA = *MCI_INFO_PARMSA
    17462007TypeDef LPMCI_INFO_PARMSA = *MCI_INFO_PARMSA
     2008#ifdef UNICODE
     2009TypeDef MCI_INFO_PARMS = MCI_INFO_PARMSW
     2010#else
    17472011TypeDef MCI_INFO_PARMS = MCI_INFO_PARMSA
    1748 TypeDef PMCI_INFO_PARMS = PMCI_INFO_PARMSA
    1749 TypeDef LPMCI_INFO_PARMS = LPMCI_INFO_PARMSA
     2012#endif
     2013TypeDef PMCI_INFO_PARMS = *MCI_INFO_PARMS
     2014TypeDef LPMCI_INFO_PARMS = *MCI_INFO_PARMS
    17502015
    17512016Type MCI_GETDEVCAPS_PARMS
     
    17572022TypeDef LPMCI_GETDEVCAPS_PARMS = *MCI_GETDEVCAPS_PARMS
    17582023
     2024Type MCI_SYSINFO_PARMSW
     2025    dwCallback As DWord
     2026    lpstrReturn As LPWSTR
     2027    dwRetSize As DWord
     2028    dwNumber As DWord
     2029    wDeviceType As DWord
     2030End Type
     2031TypeDef PMCI_SYSINFO_PARMSW = *MCI_SYSINFO_PARMSW
     2032TypeDef LPMCI_SYSINFO_PARMSW = *MCI_SYSINFO_PARMSW
    17592033Type MCI_SYSINFO_PARMSA
    17602034    dwCallback As DWord
     
    17662040TypeDef PMCI_SYSINFO_PARMSA = *MCI_SYSINFO_PARMSA
    17672041TypeDef LPMCI_SYSINFO_PARMSA = *MCI_SYSINFO_PARMSA
     2042#ifdef UNICODE
    17682043TypeDef MCI_SYSINFO_PARMS = MCI_SYSINFO_PARMSA
    1769 TypeDef PMCI_SYSINFO_PARMS = PMCI_SYSINFO_PARMSA
    1770 TypeDef LPMCI_SYSINFO_PARMS = LPMCI_SYSINFO_PARMSA
     2044#else
     2045TypeDef MCI_SYSINFO_PARMS = MCI_SYSINFO_PARMSW
     2046#endif
     2047TypeDef PMCI_SYSINFO_PARMS = *MCI_SYSINFO_PARMS
     2048TypeDef LPMCI_SYSINFO_PARMS = *MCI_SYSINFO_PARMS
    17712049
    17722050Type MCI_SET_PARMS
     
    17862064TypeDef LPMCI_BREAK_PARMS = *MCI_BREAK_PARMS
    17872065
     2066Type MCI_SAVE_PARMSW
     2067    dwCallback As DWord
     2068    lpfilename As LPCWSTR
     2069End Type
     2070TypeDef PMCI_SAVE_PARMSW = *MCI_SAVE_PARMSW
     2071TypeDef LPMCI_SAVE_PARMSW = *MCI_SAVE_PARMSW
    17882072Type MCI_SAVE_PARMSA
    17892073    dwCallback As DWord
    1790     lpfilename As LPSTR
     2074    lpfilename As LPCSTR
    17912075End Type
    17922076TypeDef PMCI_SAVE_PARMSA = *MCI_SAVE_PARMSA
    17932077TypeDef LPMCI_SAVE_PARMSA = *MCI_SAVE_PARMSA
     2078#ifdef UNICODE
     2079TypeDef MCI_SAVE_PARMS = MCI_SAVE_PARMSW
     2080#else
    17942081TypeDef MCI_SAVE_PARMS = MCI_SAVE_PARMSA
    1795 TypeDef PMCI_SAVE_PARMS = PMCI_SAVE_PARMSA
    1796 TypeDef LPMCI_SAVE_PARMS = LPMCI_SAVE_PARMSA
    1797 
     2082#endif
     2083TypeDef PMCI_SAVE_PARMS = *MCI_SAVE_PARMS
     2084TypeDef LPMCI_SAVE_PARMS = *MCI_SAVE_PARMS
     2085
     2086Type MCI_LOAD_PARMSW
     2087    dwCallback As DWord
     2088    lpfilename As LPCWSTR
     2089End Type
     2090TypeDef PMCI_LOAD_PARMSW = *MCI_LOAD_PARMSW
     2091TypeDef LPMCI_LOAD_PARMSW = *MCI_LOAD_PARMSW
    17982092Type MCI_LOAD_PARMSA
    17992093    dwCallback As DWord
    1800     lpfilename As LPSTR
     2094    lpfilename As LPCSTR
    18012095End Type
    18022096TypeDef PMCI_LOAD_PARMSA = *MCI_LOAD_PARMSA
    18032097TypeDef LPMCI_LOAD_PARMSA = *MCI_LOAD_PARMSA
     2098#ifdef UNICODE
     2099TypeDef MCI_LOAD_PARMS = MCI_LOAD_PARMSW
     2100#else
    18042101TypeDef MCI_LOAD_PARMS = MCI_LOAD_PARMSA
    1805 TypeDef PMCI_LOAD_PARMS = PMCI_LOAD_PARMSA
    1806 TypeDef LPMCI_LOAD_PARMS = LPMCI_LOAD_PARMSA
     2102#endif
     2103TypeDef PMCI_LOAD_PARMS = *MCI_LOAD_PARMS
     2104TypeDef LPMCI_LOAD_PARMS = *MCI_LOAD_PARMS
    18072105
    18082106Type MCI_RECORD_PARMS
     
    18592157TypeDef LPMCI_VD_STEP_PARMS = *MCI_VD_STEP_PARMS
    18602158
     2159Type MCI_VD_ESCAPE_PARMSW
     2160    dwCallback As DWord
     2161    lpstrCommand As LPCWSTR
     2162End Type
     2163TypeDef PMCI_VD_ESCAPE_PARMSW = *MCI_VD_ESCAPE_PARMSW
     2164TypeDef LPMCI_VD_ESCAPE_PARMSW = *MCI_VD_ESCAPE_PARMSW
    18612165Type MCI_VD_ESCAPE_PARMSA
    18622166    dwCallback As DWord
    1863     lpstrCommand As LPSTR
     2167    lpstrCommand As LPCSTR
    18642168End Type
    18652169TypeDef PMCI_VD_ESCAPE_PARMSA = *MCI_VD_ESCAPE_PARMSA
    18662170TypeDef LPMCI_VD_ESCAPE_PARMSA = *MCI_VD_ESCAPE_PARMSA
     2171#ifdef UNICODE
     2172TypeDef MCI_VD_ESCAPE_PARMS = MCI_VD_ESCAPE_PARMSW
     2173#else
    18672174TypeDef MCI_VD_ESCAPE_PARMS = MCI_VD_ESCAPE_PARMSA
    1868 TypeDef PMCI_VD_ESCAPE_PARMS = PMCI_VD_ESCAPE_PARMSA
    1869 TypeDef LPMCI_VD_ESCAPE_PARMS = LPMCI_VD_ESCAPE_PARMSA
     2175#endif
     2176TypeDef PMCI_VD_ESCAPE_PARMS = *MCI_VD_ESCAPE_PARMS
     2177TypeDef LPMCI_VD_ESCAPE_PARMS = *MCI_VD_ESCAPE_PARMS
    18702178
    18712179' MCI extensions for CD audio devices
     
    18982206Const MCI_WAVE_GETDEVCAPS_OUTPUTS =    &H00004002
    18992207
     2208Type MCI_WAVE_OPEN_PARMSW
     2209    dwCallback As DWord
     2210    wDeviceID As MCIDEVICEID
     2211    lpstrDeviceType As LPCWSTR
     2212    lpstrElementName As LPCWSTR
     2213    lpstrAlias As LPCWSTR
     2214    dwBufferSeconds As DWord
     2215End Type
     2216TypeDef PMCI_WAVE_OPEN_PARMSW = *MCI_WAVE_OPEN_PARMSW
     2217TypeDef LPMCI_WAVE_OPEN_PARMSW = *MCI_WAVE_OPEN_PARMSW
    19002218Type MCI_WAVE_OPEN_PARMSA
    19012219    dwCallback As DWord
    19022220    wDeviceID As MCIDEVICEID
    1903     lpstrDeviceType As LPSTR
    1904     lpstrElementName As LPSTR
    1905     lpstrAlias As LPSTR
     2221    lpstrDeviceType As LPCSTR
     2222    lpstrElementName As LPCSTR
     2223    lpstrAlias As LPCSTR
    19062224    dwBufferSeconds As DWord
    19072225End Type
    19082226TypeDef PMCI_WAVE_OPEN_PARMSA = *MCI_WAVE_OPEN_PARMSA
    19092227TypeDef LPMCI_WAVE_OPEN_PARMSA = *MCI_WAVE_OPEN_PARMSA
     2228#ifdef UNICODE
     2229TypeDef MCI_WAVE_OPEN_PARMS = MCI_WAVE_OPEN_PARMSW
     2230#else
    19102231TypeDef MCI_WAVE_OPEN_PARMS = MCI_WAVE_OPEN_PARMSA
    1911 TypeDef PMCI_WAVE_OPEN_PARMS = PMCI_WAVE_OPEN_PARMSA
    1912 TypeDef LPMCI_WAVE_OPEN_PARMS = LPMCI_WAVE_OPEN_PARMSA
     2232#endif
     2233TypeDef PMCI_WAVE_OPEN_PARMS = *MCI_WAVE_OPEN_PARMS
     2234TypeDef LPMCI_WAVE_OPEN_PARMS = *MCI_WAVE_OPEN_PARMS
    19132235
    19142236Type MCI_WAVE_DELETE_PARMS
     
    20182340Const MCI_ANIM_UPDATE_HDC =             &H00020000
    20192341
    2020 Type MCI_ANIM_OPEN_PARMSA
     2342Type MCI_ANIM_OPEN_PARMSW
    20212343    dwCallback As DWord
    20222344    wDeviceID As MCIDEVICEID
    2023     lpstrDeviceType As LPSTR
    2024     lpstrElementName As LPSTR
    2025     lpstrAlias As LPSTR
     2345    lpstrDeviceType As LPCWSTR
     2346    lpstrElementName As LPCWSTR
     2347    lpstrAlias As LPCWSTR
    20262348    dwStyle As DWord
    20272349    hWndParent As HWND
    20282350End Type
     2351TypeDef PMCI_ANIM_OPEN_PARMSW = *MCI_ANIM_OPEN_PARMSW
     2352TypeDef LPMCI_ANIM_OPEN_PARMSW = *MCI_ANIM_OPEN_PARMSW
     2353Type MCI_ANIM_OPEN_PARMSA
     2354    dwCallback As DWord
     2355    wDeviceID As MCIDEVICEID
     2356    lpstrDeviceType As LPCSTR
     2357    lpstrElementName As LPCSTR
     2358    lpstrAlias As LPCSTR
     2359    dwStyle As DWord
     2360    hWndParent As HWND
     2361End Type
    20292362TypeDef PMCI_ANIM_OPEN_PARMSA = *MCI_ANIM_OPEN_PARMSA
    20302363TypeDef LPMCI_ANIM_OPEN_PARMSA = *MCI_ANIM_OPEN_PARMSA
     2364#ifdef UNICODE
     2365TypeDef MCI_ANIM_OPEN_PARMS = MCI_ANIM_OPEN_PARMSW
     2366#else
    20312367TypeDef MCI_ANIM_OPEN_PARMS = MCI_ANIM_OPEN_PARMSA
    2032 TypeDef PMCI_ANIM_OPEN_PARMS = PMCI_ANIM_OPEN_PARMSA
    2033 TypeDef LPMCI_ANIM_OPEN_PARMS = LPMCI_ANIM_OPEN_PARMSA
     2368#endif
     2369TypeDef PMCI_ANIM_OPEN_PARMS = *MCI_ANIM_OPEN_PARMS
     2370TypeDef LPMCI_ANIM_OPEN_PARMS = *MCI_ANIM_OPEN_PARMS
    20342371
    20352372Type MCI_ANIM_PLAY_PARMS
     
    20492386TypeDef LPMCI_ANIM_STEP_PARMS = *MCI_ANIM_STEP_PARMS
    20502387
    2051 Type MCI_ANIM_WINDOW_PARMSA
     2388Type MCI_ANIM_WINDOW_PARMSW
    20522389    dwCallback As DWord
    20532390    hWnd As HWND
    20542391    nCmdShow As DWord
    2055     lpstrText As LPSTR
     2392    lpstrText As LPCWSTR
     2393End Type
     2394TypeDef PMCI_ANIM_WINDOW_PARMSW = *MCI_ANIM_WINDOW_PARMSW
     2395TypeDef LPMCI_ANIM_WINDOW_PARMSW = *MCI_ANIM_WINDOW_PARMSW
     2396Type MCI_ANIM_WINDOW_PARMSA
     2397    dwCallback As DWord
     2398    hWnd As HWND
     2399    nCmdShow As DWord
     2400    lpstrText As LPCSTR
    20562401End Type
    20572402TypeDef PMCI_ANIM_WINDOW_PARMSA = *MCI_ANIM_WINDOW_PARMSA
    20582403TypeDef LPMCI_ANIM_WINDOW_PARMSA = *MCI_ANIM_WINDOW_PARMSA
     2404#ifdef UNICODE
     2405TypeDef MCI_ANIM_WINDOW_PARMS = MCI_ANIM_WINDOW_PARMSW
     2406#else
    20592407TypeDef MCI_ANIM_WINDOW_PARMS = MCI_ANIM_WINDOW_PARMSA
    2060 TypeDef PMCI_ANIM_WINDOW_PARMS = PMCI_ANIM_WINDOW_PARMSA
    2061 TypeDef LPMCI_ANIM_WINDOW_PARMS = LPMCI_ANIM_WINDOW_PARMSA
     2408#endif
     2409TypeDef PMCI_ANIM_WINDOW_PARMS = *MCI_ANIM_WINDOW_PARMS
     2410TypeDef LPMCI_ANIM_WINDOW_PARMS = *MCI_ANIM_WINDOW_PARMS
    20622411
    20632412Type MCI_ANIM_RECT_PARMS
     
    21012450Const MCI_OVLY_WHERE_VIDEO =            &H00100000
    21022451
    2103 Type MCI_OVLY_OPEN_PARMSA
     2452Type MCI_OVLY_OPEN_PARMSAW
    21042453    dwCallback As DWord
    21052454    wDeviceID As MCIDEVICEID
    2106     lpstrDeviceType As LPSTR
    2107     lpstrElementName As LPSTR
    2108     lpstrAlias As LPSTR
     2455    lpstrDeviceType As LPCWSTR
     2456    lpstrElementName As LPCWSTR
     2457    lpstrAlias As LPCWSTR
    21092458    dwStyle As DWord
    21102459    hWndParent As HWND
    21112460End Type
     2461TypeDef PMCI_OVLY_OPEN_PARMSW = *MCI_OVLY_OPEN_PARMSW
     2462TypeDef LPMCI_OVLY_OPEN_PARMSW = *MCI_OVLY_OPEN_PARMSW
     2463Type MCI_OVLY_OPEN_PARMSA
     2464    dwCallback As DWord
     2465    wDeviceID As MCIDEVICEID
     2466    lpstrDeviceType As LPCSTR
     2467    lpstrElementName As LPCSTR
     2468    lpstrAlias As LPCSTR
     2469    dwStyle As DWord
     2470    hWndParent As HWND
     2471End Type
    21122472TypeDef PMCI_OVLY_OPEN_PARMSA = *MCI_OVLY_OPEN_PARMSA
    21132473TypeDef LPMCI_OVLY_OPEN_PARMSA = *MCI_OVLY_OPEN_PARMSA
     2474#ifdef UNICODE
     2475TypeDef MCI_OVLY_OPEN_PARMS = MCI_OVLY_OPEN_PARMSW
     2476#else
    21142477TypeDef MCI_OVLY_OPEN_PARMS = MCI_OVLY_OPEN_PARMSA
    2115 TypeDef PMCI_OVLY_OPEN_PARMS = PMCI_OVLY_OPEN_PARMSA
    2116 TypeDef LPMCI_OVLY_OPEN_PARMS = LPMCI_OVLY_OPEN_PARMSA
    2117 
    2118 Type MCI_OVLY_WINDOW_PARMSA
     2478#endif
     2479TypeDef PMCI_OVLY_OPEN_PARMS = *MCI_OVLY_OPEN_PARMS
     2480TypeDef LPMCI_OVLY_OPEN_PARMS = *MCI_OVLY_OPEN_PARMS
     2481
     2482Type MCI_OVLY_WINDOW_PARMSW
    21192483    dwCallback As DWord
    21202484    hWnd As HWND
    21212485    nCmdShow As DWord
    2122     lpstrText As LPSTR
     2486    lpstrText As LPCWSTR
     2487End Type
     2488TypeDef PMCI_OVLY_WINDOW_PARMSW = *MCI_OVLY_WINDOW_PARMSW
     2489TypeDef LPMCI_OVLY_WINDOW_PARMSW = *MCI_OVLY_WINDOW_PARMSW
     2490Type MCI_OVLY_WINDOW_PARMSA
     2491    dwCallback As DWord
     2492    hWnd As HWND
     2493    nCmdShow As DWord
     2494    lpstrText As LPCSTR
    21232495End Type
    21242496TypeDef PMCI_OVLY_WINDOW_PARMSA = *MCI_OVLY_WINDOW_PARMSA
    21252497TypeDef LPMCI_OVLY_WINDOW_PARMSA = *MCI_OVLY_WINDOW_PARMSA
     2498#ifdef UNICODE
     2499TypeDef MCI_OVLY_WINDOW_PARMS = MCI_OVLY_WINDOW_PARMSW
     2500#else
    21262501TypeDef MCI_OVLY_WINDOW_PARMS = MCI_OVLY_WINDOW_PARMSA
    2127 TypeDef PMCI_OVLY_WINDOW_PARMS = PMCI_OVLY_WINDOW_PARMSA
    2128 TypeDef LPMCI_OVLY_WINDOW_PARMS = LPMCI_OVLY_WINDOW_PARMSA
     2502#endif
     2503TypeDef PMCI_OVLY_WINDOW_PARMS = *MCI_OVLY_WINDOW_PARMS
     2504TypeDef LPMCI_OVLY_WINDOW_PARMS = *MCI_OVLY_WINDOW_PARMS
    21292505
    21302506Type MCI_OVLY_RECT_PARMS
     
    21352511TypeDef LPMCI_OVLY_RECT_PARMS = *MCI_OVLY_RECT_PARMS
    21362512
     2513Type MCI_OVLY_SAVE_PARMSW
     2514    dwCallback As DWord
     2515    lpfilename As LPCWSTR
     2516    rc As RECT
     2517End Type
     2518TypeDef PMCI_OVLY_SAVE_PARMSW = *MCI_OVLY_SAVE_PARMSW
     2519TypeDef LPMCI_OVLY_SAVE_PARMSW = *MCI_OVLY_SAVE_PARMSW
    21372520Type MCI_OVLY_SAVE_PARMSA
    21382521    dwCallback As DWord
    2139     lpfilename As LPSTR
     2522    lpfilename As LPCSTR
    21402523    rc As RECT
    21412524End Type
    21422525TypeDef PMCI_OVLY_SAVE_PARMSA = *MCI_OVLY_SAVE_PARMSA
    21432526TypeDef LPMCI_OVLY_SAVE_PARMSA = *MCI_OVLY_SAVE_PARMSA
     2527#ifdef UNICODE
     2528TypeDef MCI_OVLY_SAVE_PARMS = MCI_OVLY_SAVE_PARMSW
     2529#else
    21442530TypeDef MCI_OVLY_SAVE_PARMS = MCI_OVLY_SAVE_PARMSA
    2145 TypeDef PMCI_OVLY_SAVE_PARMS = PMCI_OVLY_SAVE_PARMSA
    2146 TypeDef LPMCI_OVLY_SAVE_PARMS = LPMCI_OVLY_SAVE_PARMSA
     2531#endif
     2532TypeDef PMCI_OVLY_SAVE_PARMS = *MCI_OVLY_SAVE_PARMS
     2533TypeDef LPMCI_OVLY_SAVE_PARMS = *MCI_OVLY_SAVE_PARMS
    21472534
    21482535Type MCI_OVLY_LOAD_PARMSA
     
    21632550' DIB Driver extensions
    21642551Const SELECTDIB = 41
    2165 Const DIBINDEX(n) = MAKELONG(n,&H10FF)
     2552Const DIBINDEX(n) = MAKELONG(n, &H10FF)
    21662553
    21672554#endif '_INC_MMSYS
Note: See TracChangeset for help on using the changeset viewer.