Changeset 21841 for branches/gcc-kmk/src/winmm/IRTMidi.cpp
- Timestamp:
- Dec 1, 2011, 10:19:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/src/winmm/IRTMidi.cpp
r5269 r21841 93 93 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDICreateInstance", &modAddr ); 94 94 if ( rc ) return rc; 95 pfnMidiCreateInstance = (ULONG( *APIENTRY )( ULONG, MINSTANCE*, PSZ, ULONG)) modAddr;95 pfnMidiCreateInstance = (ULONG(APIENTRY *)( ULONG, MINSTANCE*, PCSZ, ULONG)) modAddr; 96 96 97 97 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIDeleteInstance", &modAddr ); 98 98 if ( rc ) return rc; 99 pfnMidiDeleteInstance = (ULONG( *APIENTRY)(MINSTANCE, ULONG)) modAddr;99 pfnMidiDeleteInstance = (ULONG(APIENTRY *)(MINSTANCE, ULONG)) modAddr; 100 100 101 101 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIEnableInstance", &modAddr ); 102 102 if ( rc ) return rc; 103 pfnMidiEnableInstance = (ULONG( *APIENTRY)(MINSTANCE, ULONG)) modAddr;103 pfnMidiEnableInstance = (ULONG(APIENTRY *)(MINSTANCE, ULONG)) modAddr; 104 104 105 105 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIDisableInstance", &modAddr ); 106 106 if ( rc ) return rc; 107 pfnMidiDisableInstance = (ULONG( *APIENTRY)(MINSTANCE, ULONG)) modAddr;107 pfnMidiDisableInstance = (ULONG(APIENTRY *)(MINSTANCE, ULONG)) modAddr; 108 108 109 109 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIAddLink", &modAddr ); 110 110 if ( rc ) return rc; 111 pfnMidiAddLink = (ULONG( *APIENTRY)(MINSTANCE, MINSTANCE, ULONG, ULONG)) modAddr;111 pfnMidiAddLink = (ULONG(APIENTRY *)(MINSTANCE, MINSTANCE, ULONG, ULONG)) modAddr; 112 112 113 113 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIRemoveLink", &modAddr ); 114 114 if ( rc ) return rc; 115 pfnMidiRemoveLink = (ULONG( *APIENTRY)(MINSTANCE, MINSTANCE, ULONG, ULONG)) modAddr;115 pfnMidiRemoveLink = (ULONG(APIENTRY *)(MINSTANCE, MINSTANCE, ULONG, ULONG)) modAddr; 116 116 117 117 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIQueryClassList", &modAddr ); 118 118 if ( rc ) return rc; 119 pfnMidiQueryClassList = (ULONG( *APIENTRY)(ULONG, PMIDICLASSINFO, ULONG)) modAddr;119 pfnMidiQueryClassList = (ULONG(APIENTRY *)(ULONG, PMIDICLASSINFO, ULONG)) modAddr; 120 120 121 121 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIQueryInstanceList", &modAddr ); 122 122 if ( rc ) return rc; 123 pfnMidiQueryInstanceList = (ULONG( *APIENTRY)(ULONG, PMIDIINSTANCEINFO, ULONG)) modAddr;123 pfnMidiQueryInstanceList = (ULONG(APIENTRY *)(ULONG, PMIDIINSTANCEINFO, ULONG)) modAddr; 124 124 125 125 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIQueryNumClasses", &modAddr ); 126 126 if ( rc ) return rc; 127 pfnMidiQueryNumClasses = (ULONG( *APIENTRY)(PULONG, ULONG)) modAddr;127 pfnMidiQueryNumClasses = (ULONG(APIENTRY *)(PULONG, ULONG)) modAddr; 128 128 129 129 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIQueryNumInstances", &modAddr ); 130 130 if ( rc ) return rc; 131 pfnMidiQueryNumInstances = (ULONG( *APIENTRY)(PULONG, ULONG)) modAddr;131 pfnMidiQueryNumInstances = (ULONG(APIENTRY *)(PULONG, ULONG)) modAddr; 132 132 133 133 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDISendMessages", &modAddr ); 134 134 if ( rc ) return rc; 135 pfnMidiSendMessages = (ULONG( *APIENTRY)(PMESSAGE, ULONG, ULONG)) modAddr;135 pfnMidiSendMessages = (ULONG(APIENTRY *)(PMESSAGE, ULONG, ULONG)) modAddr; 136 136 137 137 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDISendSysexMessage", &modAddr ); 138 138 if ( rc ) return rc; 139 pfnMidiSendSysexMessage = (ULONG( *APIENTRY)(PMESSAGE, ULONG, ULONG)) modAddr;139 pfnMidiSendSysexMessage = (ULONG(APIENTRY *)(PMESSAGE, ULONG, ULONG)) modAddr; 140 140 141 141 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDIRetrieveMessages", &modAddr ); 142 142 if ( rc ) return rc; 143 pfnMidiRetrieveMessages = (ULONG( *APIENTRY)(MINSTANCE, PVOID, PULONG, ULONG)) modAddr;143 pfnMidiRetrieveMessages = (ULONG(APIENTRY *)(MINSTANCE, PVOID, PULONG, ULONG)) modAddr; 144 144 145 145 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDISetup", &modAddr ); 146 146 if ( rc ) return rc; 147 pfnMidiSetup = (ULONG( *APIENTRY)(PMIDISETUP, ULONG)) modAddr;147 pfnMidiSetup = (ULONG(APIENTRY *)(PMIDISETUP, ULONG)) modAddr; 148 148 149 149 rc = DosQueryProcAddr( iRTMidiModule, 0L, "MIDITimer", &modAddr ); 150 150 if ( rc ) return rc; 151 pfnMidiTimer = (ULONG( *APIENTRY)(ULONG, ULONG)) modAddr;151 pfnMidiTimer = (ULONG(APIENTRY *)(ULONG, ULONG)) modAddr; 152 152 153 153 return 0; … … 177 177 // IRTMidi :: RCExplanation 178 178 //------------------------------------------------------------------------------ 179 c har * IRTMidi::RCExplanation() const180 { 181 c har * DebugString;179 const char * IRTMidi::RCExplanation() const 180 { 181 const char * DebugString; 182 182 switch( iLastRC ) 183 183 { … … 460 460 } 461 461 462 ULONG IRTMidi::MidiCreateInstance( ULONG a, MINSTANCE* b, P SZ c, ULONG d)462 ULONG IRTMidi::MidiCreateInstance( ULONG a, MINSTANCE* b, PCSZ c, ULONG d) 463 463 { 464 464 ULONG ret;
Note:
See TracChangeset
for help on using the changeset viewer.