flat assembler
Message board for the users of flat assembler.

Index > Main > wtf, give me winmm.inc

Author
Thread Post new topic Reply to topic
winvz300



Joined: 17 Apr 2011
Posts: 3
winvz300
Where is winmm.inc at? cant find it anywhere, and I need it to find out what those API constants are....


Last edited by winvz300 on 22 May 2011, 08:30; edited 2 times in total
Post 17 Apr 2011, 05:05
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
MEEP MEEEP.... Relax let me do it for ya...
Constants you say...or the whole API
Post 17 Apr 2011, 15:06
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 824
Location: Jakarta, Indonesia
TmX
You can use PE Export Table Dump

P.S: also check FASM Win32 API (updata)


Description:
Download
Filename: winmm.inc
Filesize: 7.11 KB
Downloaded: 149 Time(s)

Post 17 Apr 2011, 15:48
View user's profile Send private message Reply with quote
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
here... I could not add the structures because they are so many of them.

You can add them by yourself sir..

I think I have helped you a lot though
Code:

;WINMM.DLL Import functions.
;By typedef

; constants deifinition


;Error codes
;General MCI Errors
;
;http://msdn.microsoft.com/en-us/library/dd797980%28v=VS.85%29.aspx

 MCIERR_BASE                    equ   256

 MCIERR_INVALID_DEVICE_ID       equ   257
 MCIERR_UNRECOGNIZED_KEYWORD    equ   259
 MCIERR_UNRECOGNIZED_COMMAND    equ   261
 MCIERR_HARDWARE                equ   262
 MCIERR_INVALID_DEVICE_NAME     equ   263
 MCIERR_OUT_OF_MEMORY           equ   264
 MCIERR_DEVICE_OPEN             equ   265
 MCIERR_CANNOT_LOAD_DRIVER      equ   266
 MCIERR_MISSING_COMMAND_STRING  equ   267
 MCIERR_PARAM_OVERFLOW          equ   268
 MCIERR_MISSING_STRING_ARGUMENT equ   269
 MCIERR_BAD_INTEGER             equ   270
 MCIERR_PARSER_INTERNAL         equ   271
 MCIERR_DRIVER_INTERNAL         equ  272
 MCIERR_MISSING_PARAMETER       equ   273
 MCIERR_UNSUPPORTED_FUNCTION    equ   274
 MCIERR_FILE_NOT_FOUND          equ   275
 MCIERR_DEVICE_NOT_READY        equ   276
 MCIERR_INTERNAL                equ   277
 MCIERR_DRIVER                  equ   278
 MCIERR_CANNOT_USE_ALL          equ   279
 MCIERR_MULTIPLE                equ   280
 MCIERR_EXTENSION_NOT_FOUND      equ  281
 MCIERR_OUTOFRANGE               equ   282
 MCIERR_FLAGS_NOT_COMPATIBLE     equ   283
 MCIERR_FILE_NOT_SAVED          equ    286
 MCIERR_DEVICE_TYPE_REQUIRED    equ    287
 MCIERR_DEVICE_LOCKED          equ     288
 MCIERR_DUPLICATE_ALIAS        equ     289
 MCIERR_BAD_CONSTANT           equ     290
 MCIERR_MUST_USE_SHAREABLE     equ     291
 MCIERR_MISSING_DEVICE_NAME    equ     292
 MCIERR_BAD_TIME_FORMAT        equ     293
 MCIERR_NO_CLOSING_QUOTE      equ      294
 MCIERR_DUPLICATE_FLAGS      equ       295
 MCIERR_INVALID_FILE         equ       296
 MCIERR_NULL_PARAMETER_BLOCK equ       297
 MCIERR_UNNAMED_RESOURCE    equ        298
 MCIERR_NEW_REQUIRES_ALIAS   equ       299
 MCIERR_NOTIFY_ON_AUTO_OPEN   equ      300
 MCIERR_NO_ELEMENT_ALLOWED     equ     301
 MCIERR_NONAPPLICABLE_FUNCTION equ     302
 MCIERR_ILLEGAL_FOR_AUTO_OPEN equ      303
 MCIERR_FILENAME_REQUIRED     equ      304
 MCIERR_EXTRA_CHARACTERS      equ      305
 MCIERR_DEVICE_NOT_INSTALLED   equ     306
 MCIERR_GET_CD                 equ     307
 MCIERR_SET_CD                 equ     308
 MCIERR_SET_DRIVE             equ      309
 MCIERR_DEVICE_LENGTH        equ       310
 MCIERR_DEVICE_ORD_LENGTH    equ       311
 MCIERR_NO_INTEGER           equ       312
;
;
; Waveform-Audio Errors
;
;
 MCIERR_WAVE_OUTPUTSINUSE    equ       320
 MCIERR_WAVE_SETOUTPUTINUSE   equ      321
 MCIERR_WAVE_INPUTSINUSE      equ      322
 MCIERR_WAVE_SETINPUTINUSE     equ     323
 MCIERR_WAVE_OUTPUTUNSPECIFIED equ     324
 MCIERR_WAVE_INPUTUNSPECIFIED   equ    325
 MCIERR_WAVE_OUTPUTSUNSUITABLE   equ   326
 MCIERR_WAVE_SETOUTPUTUNSUITABLE  equ  327
 MCIERR_WAVE_INPUTSUNSUITABLE     equ  328
 MCIERR_WAVE_SETINPUTUNSUITABLE  equ   329
 ;
 ;Sequencer Errors
 ;
 ;
 MCIERR_SEQ_DIV_INCOMPATIBLE    equ    336
 MCIERR_SEQ_PORT_INUSE         equ     337
 MCIERR_SEQ_PORT_NONEXISTENT    equ    338
 MCIERR_SEQ_PORT_MAPNODEVICE   equ     339
 MCIERR_SEQ_PORT_MISCERROR    equ      340
 MCIERR_SEQ_TIMER             equ      341
 MCIERR_SEQ_PORTUNSPECIFIED   equ      342
 MCIERR_SEQ_NOMIDIPRESENT     equ      343

 MCIERR_NO_WINDOW             equ      346
 MCIERR_CREATEWINDOW         equ       347
 MCIERR_FILE_READ            equ       348
 MCIERR_FILE_WRITE           equ       349

 MCIERR_CUSTOM_DRIVER_BASE     equ     512




; import table
import winmm,\

aux32Message,                    'aux32Message',\
auxGetDevCapsA,                  'auxGetDevCapsA',\
auxGetDevCapsW,                  'auxGetDevCapsW',\
auxGetNumDevs,                   'auxGetNumDevs',\
auxGetVolume,                    'auxGetVolume',\
auxOutMessage,                   'auxOutMessage',\
auxSetVolume,                    'auxSetVolume',\
CloseDriver,                     'CloseDriver',\
DefDriverProc,                   'DefDriverProc',\
DriverCallback,                  'DriverCallback',\
DrvGetModuleHandle,              'DrvGetModuleHandle',\
GetDriverModuleHandle,           'GetDriverModuleHandle',\
joy32Message,                    'joy32Message',\
joyConfigChanged,                'joyConfigChanged',\
joyGetDevCapsA,                  'joyGetDevCapsA',\
joyGetDevCapsW,                  'joyGetDevCapsW',\
joyGetNumDevs,                   'joyGetNumDevs',\
joyGetPos,                       'joyGetPos',\
joyGetPosEx,                     'joyGetPosEx',\
joyGetThreshold,                 'joyGetThreshold',\
joyReleaseCapture,               'joyReleaseCapture',\
joySetCapture,                   'joySetCapture',\
joySetThreshold,                 'joySetThreshold',\
mci32Message,                    'mci32Message',\
mciDriverNotify,                 'mciDriverNotify',\
mciDriverYield,                  'mciDriverYield',\
mciExecute,                      'mciExecute',\
mciFreeCommandResource,          'mciFreeCommandResource',\
mciGetCreatorTask,               'mciGetCreatorTask',\
mciGetDeviceIDA,                 'mciGetDeviceIDA',\
mciGetDeviceIDFromElementIDA,    'mciGetDeviceIDFromElementIDA',\
mciGetDeviceIDFromElementIDW,    'mciGetDeviceIDFromElementIDW',\
mciGetDeviceIDW,                 'mciGetDeviceIDW',\
mciGetDriverData,                'mciGetDriverData',\
mciGetErrorStringA,              'mciGetErrorStringA',\
mciGetErrorStringW,              'mciGetErrorStringW',\
mciGetYieldProc,                 'mciGetYieldProc',\
mciLoadCommandResource,          'mciLoadCommandResource',\
mciSendCommandA,                 'mciSendCommandA',\
mciSendCommandW,                 'mciSendCommandW',\
mciSendStringA,                  'mciSendStringA',\
mciSendStringW,                  'mciSendStringW',\
mciSetDriverData,                'mciSetDriverData',\
mciSetYieldProc,                 'mciSetYieldProc',\
mid32Message  ,                  'mid32Message',\
midiConnect    ,                 'midiConnect',\
midiDisconnect  ,                'midiDisconnect',\
midiInAddBuffer  ,               'midiInAddBuffer',\
midiInClose       ,              'midiInClose',\
midiInGetDevCapsA  ,             'midiInGetDevCapsA',\
midiInGetDevCapsW   ,            'midiInGetDevCapsW',\
midiInGetErrorTextA  ,           'midiInGetErrorTextA',\
midiInGetErrorTextW   ,          'midiInGetErrorTextW',\
midiInGetID            ,         'midiInGetID',\
midiInGetNumDevs        ,        'midiInGetNumDevs',\
midiInMessage            ,       'midiInMessage',\
midiInOpen              ,        'midiInOpen',\
midiInPrepareHeader    ,         'midiInPrepareHeader',\
midiInReset            ,         'midiInReset',\
midiInStart            ,         'midiInStart',\
midiInStop             ,         'midiInStop',\
midiInUnprepareHeader  ,         'midiInUnprepareHeader',\
midiOutCacheDrumPatches,         'midiOutCacheDrumPatches',\
midiOutCachePatches     ,        'midiOutCachePatches',\
midiOutClose            ,        'midiOutClose',\
midiOutGetDevCapsA      ,        'midiOutGetDevCapsA',\
midiOutGetDevCapsW      ,        'midiOutGetDevCapsW',\
midiOutGetErrorTextA    ,        'midiOutGetErrorTextA',\
midiOutGetErrorTextW,            'midiOutGetErrorTextW',\
midiOutGetID         ,           'midiOutGetID',\
midiOutGetNumDevs     ,          'midiOutGetNumDevs',\
midiOutGetVolume       ,         'midiOutGetVolume',\
midiOutLongMsg          ,        'midiOutLongMsg',\
midiOutMessage           ,       'midiOutMessage',\
midiOutOpen               ,      'midiOutOpen',\
midiOutPrepareHeader       ,     'midiOutPrepareHeader',\
midiOutReset                ,    'midiOutReset',\
midiOutSetVolume ,               'midiOutSetVolume',\
midiOutShortMsg   ,              'midiOutShortMsg',\
midiOutUnprepareHeader,          'midiOutUnprepareHeader',\
midiStreamClose,                 'midiStreamClose',\
midiStreamOpen  ,                'midiStreamOpen',\
midiStreamOut    ,               'midiStreamOut',\
midiStreamPause   ,              'midiStreamPause',\
midiStreamPosition ,             'midiStreamPosition',\
midiStreamProperty  ,            'midiStreamProperty',\
midiStreamRestart    ,           'midiStreamRestart',\
midiStreamStop        ,          'midiStreamStop',\
mixerClose             ,         'mixerClose',\
mixerGetControlDetailsA ,        'mixerGetControlDetailsA',\
mixerGetControlDetailsW  ,       'mixerGetControlDetailsW',\
mixerGetDevCapsA          ,      'mixerGetDevCapsA',\
mixerGetDevCapsW           ,     'mixerGetDevCapsW',\
mixerGetID                  ,    'mixerGetID',\
mixerGetLineControlsA        ,   'mixerGetLineControlsA',\
mixerGetLineControlsW         ,  'mixerGetLineControlsW',\
mixerGetLineInfoA ,              'mixerGetLineInfoA',\
mixerGetLineInfoW  ,             'mixerGetLineInfoW',\
mixerGetNumDevs     ,            'mixerGetNumDevs',\
mixerMessage         ,           'mixerMessage',\
mixerOpen             ,          'mixerOpen',\
mixerSetControlDetails ,         'mixerSetControlDetails',\
mmDrvInstall   ,                 'mmDrvInstall',\
mmGetCurrentTask,                'mmGetCurrentTask',\
mmioAdvance      ,               'mmioAdvance',\
mmioAscend        ,              'mmioAscend',\
mmioClose          ,             'mmioClose',\
mmioCreateChunk     ,            'mmioCreateChunk',\
mmioDescend          ,           'mmioDescend',\
mmioFlush             ,          'mmioFlush',\
mmioGetInfo            ,         'mmioGetInfo',\
mmioInstallIOProcA      ,        'mmioInstallIOProcA',\
mmioInstallIOProcW       ,       'mmioInstallIOProcW',\
mmioOpenA                 ,      'mmioOpenA',\
mmioOpenW                  ,     'mmioOpenW',\
mmioRead                    ,    'mmioRead',\
mmioRenameA                  ,   'mmioRenameA',\
mmioRenameW                   ,  'mmioRenameW',\
mmioSeek       ,                 'mmioSeek',\
mmioSendMessage ,                'mmioSendMessage',\
mmioSetBuffer    ,               'mmioSetBuffer',\
mmioSetInfo       ,              'mmioSetInfo',\
mmioStringToFOURCCA,             'mmioStringToFOURCCA',\
mmioStringToFOURCCW ,            'mmioStringToFOURCCW',\
mmioWrite            ,           'mmioWrite',\
mmsystemGetVersion    ,          'mmsystemGetVersion',\
mmTaskBlock            ,         'mmTaskBlock',\
mmTaskCreate            ,        'mmTaskCreate',\
mmTaskSignal             ,       'mmTaskSignal',\
mmTaskYield               ,      'mmTaskYield',\
mod32Message               ,     'mod32Message',\
mxd32Message                ,    'mxd32Message',\
NotifyCallbackData           ,   'NotifyCallbackData',\
OpenDriver                    ,  'OpenDriver',\
PlaySound           ,            'PlaySound',\
PlaySoundA       ,               'PlaySoundA',\
PlaySoundW        ,              'PlaySoundW',\
SendDriverMessage  ,             'SendDriverMessage',\
sndPlaySoundA        ,           'sndPlaySoundA',\
sndPlaySoundW         ,          'sndPlaySoundW',\
tid32Message           ,         'tid32Message',\
timeBeginPeriod         ,        'timeBeginPeriod',\
timeEndPeriod            ,       'timeEndPeriod',\
timeGetDevCaps            ,      'timeGetDevCaps',\
timeGetSystemTime,               'timeGetSystemTime',\
timeGetTime      ,               'timeGetTime',\
timeKillEvent    ,               'timeKillEvent',\
timeSetEvent     ,               'timeSetEvent',\
waveInAddBuffer  ,               'waveInAddBuffer',\
waveInClose      ,               'waveInClose',\
waveInGetDevCapsA,               'waveInGetDevCapsA',\
waveInGetDevCapsW,               'waveInGetDevCapsW',\
waveInGetErrorTextA,             'waveInGetErrorTextA',\
waveInGetErrorTextW,             'waveInGetErrorTextW',\
waveInGetID         ,            'waveInGetID',\
waveInGetNumDevs    ,            'waveInGetNumDevs',\
waveInGetPosition   ,            'waveInGetPosition',\
waveInMessage        ,           'waveInMessage',\
waveInOpen            ,          'waveInOpen',\
waveInPrepareHeader    ,         'waveInPrepareHeader',\
waveInReset             ,        'waveInReset',\
waveInStart              ,       'waveInStart',\
waveInStop                ,      'waveInStop',\
waveInUnprepareHeader      ,     'waveInUnprepareHeader',\
waveOutBreakLoop            ,    'waveOutBreakLoop',\
waveOutClose                 ,   'waveOutClose',\
waveOutGetDevCapsA            ,  'waveOutGetDevCapsA',\
waveOutGetDevCapsW             , 'waveOutGetDevCapsW',\
waveOutGetErrorTextA      ,      'waveOutGetErrorTextA',\
waveOutGetErrorTextW       ,     'waveOutGetErrorTextW',\
waveOutGetID            ,        'waveOutGetID',\
waveOutGetNumDevs        ,       'waveOutGetNumDevs',\
waveOutGetPitch           ,      'waveOutGetPitch',\
waveOutGetPlaybackRate    ,      'waveOutGetPlaybackRate',\
waveOutGetPosition         ,     'waveOutGetPosition',\
waveOutGetVolume          ,      'waveOutGetVolume',\
waveOutMessage             ,     'waveOutMessage',\
waveOutOpen              ,       'waveOutOpen',\
waveOutPause              ,      'waveOutPause',\
waveOutPrepareHeader       ,     'waveOutPrepareHeader',\
waveOutReset                ,    'waveOutReset',\
waveOutRestart               ,   'waveOutRestart',\
waveOutSetPitch               ,  'waveOutSetPitch',\
waveOutSetPlaybackRate         , 'waveOutSetPlaybackRate',\
waveOutSetVolume             ,   'waveOutSetVolume',\
waveOutUnprepareHeader        ,  'waveOutUnprepareHeader',\
waveOutWrite                  ,  'waveOutWrite',\
wid32Message                   , 'wid32Message',\
wod32Message ,                   'wod32Message',\
WOW32DriverCallback,             'WOW32DriverCallback',\
WOW32ResolveMultiMediaHandle,    'WOW32ResolveMultiMediaHandle',\
WOWAppExit                  ,    'WOWAppExit'
    


usage: Very Happy
library winmm,'winmm.dll'


Link to structures:

http://msdn.microsoft.com/en-us/library/dd743607%28v=VS.85%29.aspx


Other DIgital-Video error constants could not be found. I could have looked them up in the SDK but have no time.


Description: WINMM.INC file
Download
Filename: winmm.inc
Filesize: 11.19 KB
Downloaded: 140 Time(s)

Post 17 Apr 2011, 16:09
View user's profile Send private message Reply with quote
Alphonso



Joined: 16 Jan 2007
Posts: 294
Alphonso
'comrade' also wrote a program called dll2inc quite some time ago for parsing exports.
Post 18 Apr 2011, 01:53
View user's profile Send private message Reply with quote
winvz300



Joined: 17 Apr 2011
Posts: 3
winvz300
Thanks for your help Wink
Post 24 Apr 2011, 02:15
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.