ImixLoadModule
The ImixLoadModule function loads module from disk or memory and returns its handle.
int ImixLoadModule(
char* filename // a pointer to a string containing filename
DWORD offset = 0 // offset from the beginning of the file
);
Parameters
- filename
- [Disk:] [path\] filename.ext of the module.
[MEMORY] filestart filelength
Example
[MEMORY] 15435 14756
[MEMORY] 0x56785643 0x1A453
- offset
- Offset of the module data from the beginning of the file.
Return Values
If the function succeeds, the return value is the module handle.
If the function fails, the return value is -1.
Remarks
If the return value is -1 the file format is invalid or !Mixer ran out
of free module handles.