1998-01-18 19:01:49 +01:00
|
|
|
/*
|
|
|
|
* MMIO functions
|
|
|
|
*
|
|
|
|
* Copyright 1998 Andrew Taylor
|
|
|
|
*
|
|
|
|
* NOTES: I/O is still unbuffered; mmioSetBuffer must be implemented
|
|
|
|
* and mmio{Read,Write,Seek,others?} need buffer support.
|
|
|
|
* Buffering should almost give us memory files for free.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include "windows.h"
|
|
|
|
#include "win.h"
|
|
|
|
#include "heap.h"
|
|
|
|
#include "user.h"
|
|
|
|
#include "file.h"
|
|
|
|
#include "mmsystem.h"
|
|
|
|
#include "debug.h"
|
|
|
|
#include "xmalloc.h"
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioDosIOProc [internal]
|
|
|
|
*/
|
|
|
|
static LRESULT mmioDosIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lParam1, LPARAM lParam2) {
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%p, %X, %ld, %ld);\n", lpmmioinfo, uMessage, lParam1, lParam2);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
switch (uMessage) {
|
|
|
|
|
|
|
|
case MMIOM_OPEN: {
|
|
|
|
/* Parameters:
|
|
|
|
* lParam1 = szFileName parameter from mmioOpen
|
|
|
|
* lParam2 = unused
|
|
|
|
* Returns: zero on success, error code on error
|
|
|
|
* NOTE: lDiskOffset automatically set to zero
|
|
|
|
*/
|
|
|
|
|
|
|
|
OFSTRUCT ofs;
|
|
|
|
LPSTR szFileName = (LPSTR) lParam1;
|
|
|
|
|
|
|
|
if (lpmmioinfo->dwFlags & MMIO_GETTEMP) {
|
1998-03-15 21:29:56 +01:00
|
|
|
FIXME(mmio, "MMIO_GETTEMP not implemented\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
return MMIOERR_CANNOTOPEN;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* if filename NULL, assume open file handle in adwInfo[0] */
|
|
|
|
if (!szFileName)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
lpmmioinfo->adwInfo[0] =
|
|
|
|
(DWORD) OpenFile32(szFileName, &ofs, lpmmioinfo->dwFlags);
|
|
|
|
if (lpmmioinfo->adwInfo[0] == -1)
|
|
|
|
return MMIOERR_CANNOTOPEN;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
case MMIOM_CLOSE: {
|
|
|
|
/* Parameters:
|
|
|
|
* lParam1 = wFlags parameter from mmioClose
|
|
|
|
* lParam2 = unused
|
|
|
|
* Returns: zero on success, error code on error
|
|
|
|
*/
|
|
|
|
|
|
|
|
UINT16 uFlags = (UINT16) lParam1;
|
|
|
|
|
|
|
|
if (uFlags & MMIO_FHOPEN)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
_lclose32((HFILE32)lpmmioinfo->adwInfo[0]);
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
case MMIOM_READ: {
|
|
|
|
/* Parameters:
|
|
|
|
* lParam1 = huge pointer to read buffer
|
|
|
|
* lParam2 = number of bytes to read
|
|
|
|
* Returns: number of bytes read, 0 for EOF, -1 for error (error code
|
|
|
|
* in wErrorRet)
|
|
|
|
* NOTE: lDiskOffset should be updated
|
|
|
|
*/
|
|
|
|
|
|
|
|
HPSTR pch = (HPSTR) lParam1;
|
|
|
|
LONG cch = (LONG) lParam2;
|
|
|
|
LONG count;
|
|
|
|
|
|
|
|
count = _lread32((HFILE32)lpmmioinfo->adwInfo[0], pch, cch);
|
|
|
|
if (count != -1)
|
|
|
|
lpmmioinfo->lDiskOffset += count;
|
|
|
|
|
|
|
|
return count;
|
|
|
|
}
|
|
|
|
|
|
|
|
case MMIOM_WRITE:
|
|
|
|
case MMIOM_WRITEFLUSH: {
|
|
|
|
/* no internal buffering, so WRITEFLUSH handled same as WRITE */
|
|
|
|
|
|
|
|
/* Parameters:
|
|
|
|
* lParam1 = huge pointer to write buffer
|
|
|
|
* lParam2 = number of bytes to write
|
|
|
|
* Returns: number of bytes written, -1 for error (error code in
|
|
|
|
* wErrorRet)
|
|
|
|
* NOTE: lDiskOffset should be updated
|
|
|
|
*/
|
|
|
|
|
|
|
|
HPSTR pch = (HPSTR) lParam1;
|
|
|
|
LONG cch = (LONG) lParam2;
|
|
|
|
LONG count;
|
|
|
|
|
|
|
|
count = _hwrite16((HFILE32)lpmmioinfo->adwInfo[0], pch, cch);
|
|
|
|
if (count != -1)
|
|
|
|
lpmmioinfo->lDiskOffset += count;
|
|
|
|
|
|
|
|
return count;
|
|
|
|
}
|
|
|
|
|
|
|
|
case MMIOM_SEEK: {
|
|
|
|
/* Parameters:
|
|
|
|
* lParam1 = new position
|
|
|
|
* lParam2 = from whence to seek (SEEK_SET, SEEK_CUR, SEEK_END)
|
|
|
|
* Returns: new file postion, -1 on error
|
|
|
|
* NOTE: lDiskOffset should be updated
|
|
|
|
*/
|
|
|
|
|
|
|
|
LONG Offset = (LONG) lParam1;
|
|
|
|
LONG Whence = (LONG) lParam2;
|
|
|
|
LONG pos;
|
|
|
|
|
|
|
|
pos = _llseek32((HFILE32)lpmmioinfo->adwInfo[0], Offset, Whence);
|
|
|
|
if (pos != -1)
|
|
|
|
lpmmioinfo->lDiskOffset = pos;
|
|
|
|
|
|
|
|
return pos;
|
|
|
|
}
|
|
|
|
|
|
|
|
case MMIOM_RENAME: {
|
|
|
|
/* Parameters:
|
|
|
|
* lParam1 = old name
|
|
|
|
* lParam2 = new name
|
|
|
|
* Returns: zero on success, non-zero on failure
|
|
|
|
*/
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
FIXME(mmio, "MMIOM_RENAME unimplemented\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
return MMIOERR_FILENOTFOUND;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
1998-03-15 21:29:56 +01:00
|
|
|
WARN(mmio, "unexpected message %u\n", uMessage);
|
1998-01-18 19:01:49 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioDosIOProc [internal]
|
|
|
|
*/
|
|
|
|
static LRESULT mmioMemIOProc(LPMMIOINFO16 lpmmioinfo, UINT16 uMessage, LPARAM lParam1, LPARAM lParam2) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioOpenW [WINMM.123]
|
|
|
|
*/
|
|
|
|
HMMIO32 WINAPI mmioOpen32W(LPWSTR szFileName, MMIOINFO32 * lpmmioinfo,
|
|
|
|
DWORD dwOpenFlags)
|
|
|
|
{
|
|
|
|
LPSTR szFn = HEAP_strdupWtoA(GetProcessHeap(),0,szFileName);
|
|
|
|
HMMIO32 ret = mmioOpen16(szFn,(LPMMIOINFO16)lpmmioinfo,dwOpenFlags);
|
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(),0,szFn);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioOpenA [WINMM.122]
|
|
|
|
*/
|
|
|
|
HMMIO32 WINAPI mmioOpen32A(LPSTR szFileName, MMIOINFO32 * lpmmioinfo,
|
|
|
|
DWORD dwOpenFlags)
|
|
|
|
{
|
|
|
|
return mmioOpen16(szFileName,(LPMMIOINFO16)lpmmioinfo,dwOpenFlags);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioOpen [MMSYSTEM.1210]
|
|
|
|
*/
|
|
|
|
HMMIO16 WINAPI mmioOpen16(LPSTR szFileName, MMIOINFO16 * lpmmioinfo,
|
|
|
|
DWORD dwOpenFlags)
|
|
|
|
{
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
|
|
|
HMMIO16 hmmio;
|
|
|
|
UINT16 result;
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "('%s', %p, %08lX);\n", szFileName, lpmmioinfo, dwOpenFlags);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
hmmio = GlobalAlloc16(GHND, sizeof(MMIOINFO16));
|
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL)
|
|
|
|
return 0;
|
|
|
|
memset(lpmminfo, 0, sizeof(MMIOINFO16));
|
|
|
|
|
|
|
|
/* assume DOS file if not otherwise specified */
|
|
|
|
if (!lpmmioinfo ||
|
|
|
|
(lpmmioinfo->fccIOProc == 0 && lpmmioinfo->pIOProc == NULL)) {
|
|
|
|
|
|
|
|
lpmminfo->fccIOProc = mmioFOURCC('D', 'O', 'S', ' ');
|
|
|
|
lpmminfo->pIOProc = (LPMMIOPROC16) mmioDosIOProc;
|
|
|
|
}
|
|
|
|
/* if just the four character code is present, look up IO proc */
|
|
|
|
else if (lpmmioinfo->pIOProc == NULL) {
|
|
|
|
|
|
|
|
lpmminfo->fccIOProc = lpmmioinfo->fccIOProc;
|
|
|
|
lpmminfo->pIOProc = mmioInstallIOProc16(lpmmioinfo->fccIOProc, NULL, MMIO_FINDPROC);
|
|
|
|
|
|
|
|
}
|
|
|
|
/* if IO proc specified, use it and specified four character code */
|
|
|
|
else {
|
|
|
|
|
|
|
|
lpmminfo->fccIOProc = lpmmioinfo->fccIOProc;
|
|
|
|
lpmminfo->pIOProc = lpmmioinfo->pIOProc;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dwOpenFlags & MMIO_ALLOCBUF) {
|
|
|
|
if ((result = mmioSetBuffer(hmmio, NULL, MMIO_DEFAULTBUFFER, 0))) {
|
|
|
|
if (lpmmioinfo)
|
|
|
|
lpmmioinfo->wErrorRet = result;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
lpmminfo->hmmio = hmmio;
|
|
|
|
|
|
|
|
/* call IO proc to actually open file */
|
|
|
|
result = (UINT16) mmioSendMessage(hmmio, MMIOM_OPEN, (LPARAM) szFileName, (LPARAM) 0);
|
|
|
|
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
|
|
|
|
if (result != 0) {
|
|
|
|
GlobalFree16(hmmio);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return hmmio;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioClose [MMSYSTEM.1211]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioClose(HMMIO16 hmmio, UINT16 uFlags)
|
|
|
|
{
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
|
|
|
UINT16 result;
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%04X, %04X);\n", hmmio, uFlags);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
lpmminfo = (LPMMIOINFO16) GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
/* flush the file - if error reported, ignore */
|
|
|
|
if (mmioFlush(hmmio, MMIO_EMPTYBUF) != 0)
|
|
|
|
lpmminfo->dwFlags &= ~MMIO_DIRTY;
|
|
|
|
|
|
|
|
result = (UINT16) mmioSendMessage(hmmio, MMIOM_CLOSE, (LPARAM) uFlags, (LPARAM) 0);
|
|
|
|
|
|
|
|
mmioSetBuffer(hmmio, NULL, 0, 0);
|
|
|
|
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
GlobalFree16(hmmio);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioRead [MMSYSTEM.1212]
|
|
|
|
*/
|
|
|
|
LONG WINAPI mmioRead(HMMIO16 hmmio, HPSTR pch, LONG cch)
|
|
|
|
{
|
|
|
|
LONG count;
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%04X, %p, %ld);\n", hmmio, pch, cch);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
count = mmioSendMessage(hmmio, MMIOM_READ, (LPARAM) pch, (LPARAM) cch);
|
|
|
|
|
|
|
|
GlobalUnlock16(hmmio);
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "count=%ld\n", count);
|
1998-01-18 19:01:49 +01:00
|
|
|
return count;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioWrite [MMSYSTEM.1213]
|
|
|
|
*/
|
|
|
|
LONG WINAPI mmioWrite(HMMIO16 hmmio, HPCSTR pch, LONG cch)
|
|
|
|
{
|
|
|
|
LONG count;
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%04X, %p, %ld);\n", hmmio, pch, cch);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
count = mmioSendMessage(hmmio, MMIOM_WRITE, (LPARAM) pch, (LPARAM) cch);
|
|
|
|
|
|
|
|
GlobalUnlock16(hmmio);
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "count=%ld\n", count);
|
1998-01-18 19:01:49 +01:00
|
|
|
return count;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioSeek [MMSYSTEM.1214]
|
|
|
|
*/
|
|
|
|
LONG WINAPI mmioSeek(HMMIO16 hmmio, LONG lOffset, int iOrigin)
|
|
|
|
{
|
|
|
|
int offset;
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%04X, %08lX, %d);\n", hmmio, lOffset, iOrigin);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
offset = mmioSendMessage(hmmio, MMIOM_SEEK, (LPARAM) lOffset, (LPARAM) iOrigin);
|
|
|
|
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
return offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioGetInfo [MMSYSTEM.1215]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioGetInfo(HMMIO16 hmmio, MMIOINFO16 * lpmmioinfo, UINT16 uFlags)
|
|
|
|
{
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "mmioGetInfo\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL) return 0;
|
|
|
|
memcpy(lpmmioinfo, lpmminfo, sizeof(MMIOINFO16));
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioSetInfo [MMSYSTEM.1216]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioSetInfo(HMMIO16 hmmio, const MMIOINFO16 * lpmmioinfo, UINT16 uFlags)
|
|
|
|
{
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "mmioSetInfo\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL) return 0;
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioSetBuffer [MMSYSTEM.1217]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioSetBuffer(HMMIO16 hmmio, LPSTR pchBuffer,
|
|
|
|
LONG cchBuffer, UINT16 uFlags)
|
|
|
|
{
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
FIXME(mmio, "(hmmio=%d, pchBuf=%p, cchBuf=%d, uFlags=%#08x): stub\n",
|
|
|
|
hmmio, pchBuffer, cchBuffer, uFlags);
|
|
|
|
return MMIOERR_OUTOFMEMORY;
|
1998-01-18 19:01:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioFlush [MMSYSTEM.1218]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioFlush(HMMIO16 hmmio, UINT16 uFlags)
|
|
|
|
{
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%04X, %04X)\n", hmmio, uFlags);
|
1998-01-18 19:01:49 +01:00
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL) return 0;
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioAdvance [MMSYSTEM.1219]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioAdvance(HMMIO16 hmmio, MMIOINFO16 * lpmmioinfo, UINT16 uFlags)
|
|
|
|
{
|
|
|
|
int count = 0;
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "mmioAdvance\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
if (lpmminfo == NULL) return 0;
|
|
|
|
if (uFlags == MMIO_READ) {
|
|
|
|
count = _lread32(LOWORD(lpmminfo->adwInfo[0]),
|
|
|
|
lpmmioinfo->pchBuffer, lpmmioinfo->cchBuffer);
|
|
|
|
}
|
|
|
|
if (uFlags == MMIO_WRITE) {
|
|
|
|
count = _lwrite32(LOWORD(lpmminfo->adwInfo[0]),
|
|
|
|
lpmmioinfo->pchBuffer, lpmmioinfo->cchBuffer);
|
|
|
|
}
|
|
|
|
lpmmioinfo->pchNext += count;
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
lpmminfo->lDiskOffset = _llseek32((HFILE32)lpmminfo->adwInfo[0], 0, SEEK_CUR);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioStringToFOURCCA [WINMM.131]
|
|
|
|
*/
|
|
|
|
FOURCC WINAPI mmioStringToFOURCC32A(LPCSTR sz, UINT32 uFlags)
|
|
|
|
{
|
|
|
|
return mmioStringToFOURCC16(sz,uFlags);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioStringToFOURCCW [WINMM.132]
|
|
|
|
*/
|
|
|
|
FOURCC WINAPI mmioStringToFOURCC32W(LPCWSTR sz, UINT32 uFlags)
|
|
|
|
{
|
|
|
|
LPSTR szA = HEAP_strdupWtoA(GetProcessHeap(),0,sz);
|
|
|
|
FOURCC ret = mmioStringToFOURCC32A(szA,uFlags);
|
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(),0,szA);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioStringToFOURCC [MMSYSTEM.1220]
|
|
|
|
*/
|
|
|
|
FOURCC WINAPI mmioStringToFOURCC16(LPCSTR sz, UINT16 uFlags)
|
|
|
|
{
|
1998-03-15 21:29:56 +01:00
|
|
|
FIXME(mmio, "empty stub \n");
|
1998-01-18 19:01:49 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioInstallIOProc16 [MMSYSTEM.1221]
|
|
|
|
*/
|
|
|
|
LPMMIOPROC16 WINAPI mmioInstallIOProc16(FOURCC fccIOProc,
|
|
|
|
LPMMIOPROC16 pIOProc, DWORD dwFlags)
|
|
|
|
{
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%ld, %p, %08lX)\n",
|
1998-01-18 19:01:49 +01:00
|
|
|
fccIOProc, pIOProc, dwFlags);
|
|
|
|
|
|
|
|
if (dwFlags & MMIO_GLOBALPROC) {
|
1998-03-29 21:44:57 +02:00
|
|
|
FIXME(mmio, " global procedures not implemented\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* just handle the known procedures for now */
|
|
|
|
switch(dwFlags & (MMIO_INSTALLPROC|MMIO_REMOVEPROC|MMIO_FINDPROC)) {
|
|
|
|
case MMIO_INSTALLPROC:
|
|
|
|
return NULL;
|
|
|
|
case MMIO_REMOVEPROC:
|
|
|
|
return NULL;
|
|
|
|
case MMIO_FINDPROC:
|
|
|
|
if (fccIOProc == FOURCC_DOS)
|
|
|
|
return (LPMMIOPROC16) mmioDosIOProc;
|
|
|
|
else if (fccIOProc == FOURCC_MEM)
|
|
|
|
return (LPMMIOPROC16) mmioMemIOProc;
|
|
|
|
else
|
|
|
|
return NULL;
|
|
|
|
default:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioInstallIOProc32A [WINMM.120]
|
|
|
|
*/
|
|
|
|
LPMMIOPROC32 WINAPI mmioInstallIOProc32A(FOURCC fccIOProc,
|
|
|
|
LPMMIOPROC32 pIOProc, DWORD dwFlags)
|
|
|
|
{
|
1998-03-15 21:29:56 +01:00
|
|
|
FIXME(mmio, "(%c%c%c%c,%p,0x%08lx) -- empty stub \n",
|
1998-01-18 19:01:49 +01:00
|
|
|
(char)((fccIOProc&0xff000000)>>24),
|
|
|
|
(char)((fccIOProc&0x00ff0000)>>16),
|
|
|
|
(char)((fccIOProc&0x0000ff00)>> 8),
|
|
|
|
(char)(fccIOProc&0x000000ff),
|
|
|
|
pIOProc, dwFlags );
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioSendMessage [MMSYSTEM.1222]
|
|
|
|
*/
|
|
|
|
LRESULT WINAPI mmioSendMessage(HMMIO16 hmmio, UINT16 uMessage,
|
|
|
|
LPARAM lParam1, LPARAM lParam2)
|
|
|
|
{
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
|
|
|
LRESULT result;
|
|
|
|
const char *msg = NULL;
|
|
|
|
|
|
|
|
#ifdef DEBUG_RUNTIME
|
|
|
|
switch (uMessage) {
|
|
|
|
#define msgname(x) case x: msg = #x; break;
|
|
|
|
msgname(MMIOM_OPEN);
|
|
|
|
msgname(MMIOM_CLOSE);
|
|
|
|
msgname(MMIOM_READ);
|
|
|
|
msgname(MMIOM_WRITE);
|
|
|
|
msgname(MMIOM_WRITEFLUSH);
|
|
|
|
msgname(MMIOM_SEEK);
|
|
|
|
msgname(MMIOM_RENAME);
|
|
|
|
#undef msgname
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (msg)
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%04X, %s, %ld, %ld)\n",
|
1998-01-18 19:01:49 +01:00
|
|
|
hmmio, msg, lParam1, lParam2);
|
|
|
|
else
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%04X, %u, %ld, %ld)\n",
|
1998-01-18 19:01:49 +01:00
|
|
|
hmmio, uMessage, lParam1, lParam2);
|
|
|
|
|
|
|
|
lpmminfo = (LPMMIOINFO16)GlobalLock16(hmmio);
|
|
|
|
|
|
|
|
if (lpmminfo && lpmminfo->pIOProc)
|
|
|
|
result = (*lpmminfo->pIOProc)((LPSTR)lpmminfo, uMessage, lParam1, lParam2);
|
|
|
|
else
|
|
|
|
result = MMSYSERR_INVALPARAM;
|
|
|
|
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioDescend [MMSYSTEM.1223]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioDescend(HMMIO16 hmmio, MMCKINFO * lpck,
|
|
|
|
const MMCKINFO * lpckParent, UINT16 uFlags)
|
|
|
|
{
|
|
|
|
DWORD dwfcc, dwOldPos;
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "(%04X, %p, %p, %04X);\n",
|
1998-01-18 19:01:49 +01:00
|
|
|
hmmio, lpck, lpckParent, uFlags);
|
|
|
|
|
|
|
|
if (lpck == NULL)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
dwfcc = lpck->ckid;
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "dwfcc=%08lX\n", dwfcc);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
dwOldPos = mmioSeek(hmmio, 0, SEEK_CUR);
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "dwOldPos=%ld\n", dwOldPos);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
if (lpckParent != NULL) {
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "seek inside parent at %ld !\n", lpckParent->dwDataOffset);
|
1998-01-18 19:01:49 +01:00
|
|
|
dwOldPos = mmioSeek(hmmio, lpckParent->dwDataOffset, SEEK_SET);
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
|
|
|
|
It seems to be that FINDRIFF should not be treated the same as the
|
|
|
|
other FINDxxx so I treat it as a MMIO_FINDxxx
|
|
|
|
|
|
|
|
if ((uFlags & MMIO_FINDCHUNK) || (uFlags & MMIO_FINDRIFF) ||
|
|
|
|
(uFlags & MMIO_FINDLIST)) {
|
|
|
|
*/
|
|
|
|
if ((uFlags & MMIO_FINDCHUNK) || (uFlags & MMIO_FINDLIST)) {
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "MMIO_FINDxxxx dwfcc=%08lX !\n", dwfcc);
|
1998-01-18 19:01:49 +01:00
|
|
|
while (TRUE) {
|
|
|
|
LONG ix;
|
|
|
|
|
|
|
|
ix = mmioRead(hmmio, (LPSTR)lpck, sizeof(MMCKINFO));
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "after _lread32 ix = %ld req = %d, errno = %d\n",ix,sizeof(MMCKINFO),errno);
|
1998-01-18 19:01:49 +01:00
|
|
|
if (ix < sizeof(MMCKINFO)) {
|
|
|
|
|
|
|
|
mmioSeek(hmmio, dwOldPos, SEEK_SET);
|
1998-03-15 21:29:56 +01:00
|
|
|
WARN(mmio, "return ChunkNotFound\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
return MMIOERR_CHUNKNOTFOUND;
|
|
|
|
}
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "dwfcc=%08lX ckid=%08lX cksize=%08lX !\n",
|
1998-01-18 19:01:49 +01:00
|
|
|
dwfcc, lpck->ckid, lpck->cksize);
|
|
|
|
if (dwfcc == lpck->ckid)
|
|
|
|
break;
|
|
|
|
|
|
|
|
dwOldPos += lpck->cksize + 2 * sizeof(DWORD);
|
|
|
|
if (lpck->ckid == FOURCC_RIFF || lpck->ckid == FOURCC_LIST)
|
|
|
|
dwOldPos += sizeof(DWORD);
|
|
|
|
mmioSeek(hmmio, dwOldPos, SEEK_SET);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if (mmioRead(hmmio, (LPSTR)lpck, sizeof(MMCKINFO)) < sizeof(MMCKINFO)) {
|
|
|
|
mmioSeek(hmmio, dwOldPos, SEEK_SET);
|
1998-03-15 21:29:56 +01:00
|
|
|
WARN(mmio, "return ChunkNotFound 2nd\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
return MMIOERR_CHUNKNOTFOUND;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
lpck->dwDataOffset = dwOldPos + 2 * sizeof(DWORD);
|
|
|
|
if (lpck->ckid == FOURCC_RIFF || lpck->ckid == FOURCC_LIST)
|
|
|
|
lpck->dwDataOffset += sizeof(DWORD);
|
|
|
|
mmioSeek(hmmio, lpck->dwDataOffset, SEEK_SET);
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "lpck->ckid=%08lX lpck->cksize=%ld !\n",
|
1998-01-18 19:01:49 +01:00
|
|
|
lpck->ckid, lpck->cksize);
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "lpck->fccType=%08lX !\n", lpck->fccType);
|
1998-01-18 19:01:49 +01:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioAscend [MMSYSTEM.1224]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioAscend(HMMIO16 hmmio, MMCKINFO * lpck, UINT16 uFlags)
|
|
|
|
{
|
1998-03-15 21:29:56 +01:00
|
|
|
FIXME(mmio, "empty stub !\n");
|
1998-01-18 19:01:49 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioCreateChunk [MMSYSTEM.1225]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioCreateChunk(HMMIO16 hmmio, MMCKINFO * lpck, UINT16 uFlags)
|
|
|
|
{
|
1998-03-15 21:29:56 +01:00
|
|
|
FIXME(mmio, "empty stub \n");
|
1998-01-18 19:01:49 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* mmioRename [MMSYSTEM.1226]
|
|
|
|
*/
|
|
|
|
UINT16 WINAPI mmioRename(LPCSTR szFileName, LPCSTR szNewFileName,
|
|
|
|
MMIOINFO16 * lpmmioinfo, DWORD dwRenameFlags)
|
|
|
|
{
|
|
|
|
UINT16 result;
|
|
|
|
LPMMIOINFO16 lpmminfo;
|
|
|
|
HMMIO16 hmmio;
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
TRACE(mmio, "('%s', '%s', %p, %08lX);\n",
|
1998-01-18 19:01:49 +01:00
|
|
|
szFileName, szNewFileName, lpmmioinfo, dwRenameFlags);
|
|
|
|
|
|
|
|
hmmio = GlobalAlloc16(GHND, sizeof(MMIOINFO16));
|
|
|
|
lpmminfo = (LPMMIOINFO16) GlobalLock16(hmmio);
|
|
|
|
|
|
|
|
if (lpmmioinfo)
|
|
|
|
memcpy(lpmminfo, lpmmioinfo, sizeof(MMIOINFO16));
|
|
|
|
|
|
|
|
/* assume DOS file if not otherwise specified */
|
|
|
|
if (lpmminfo->fccIOProc == 0 && lpmminfo->pIOProc == NULL) {
|
|
|
|
|
|
|
|
lpmminfo->fccIOProc = mmioFOURCC('D', 'O', 'S', ' ');
|
|
|
|
lpmminfo->pIOProc = (LPMMIOPROC16) mmioDosIOProc;
|
|
|
|
|
|
|
|
}
|
|
|
|
/* if just the four character code is present, look up IO proc */
|
|
|
|
else if (lpmminfo->pIOProc == NULL) {
|
|
|
|
|
|
|
|
lpmminfo->pIOProc = mmioInstallIOProc16(lpmminfo->fccIOProc, NULL, MMIO_FINDPROC);
|
|
|
|
|
|
|
|
}
|
|
|
|
/* (if IO proc specified, use it and specified four character code) */
|
|
|
|
|
|
|
|
result = (UINT16) mmioSendMessage(hmmio, MMIOM_RENAME, (LPARAM) szFileName, (LPARAM) szNewFileName);
|
|
|
|
|
|
|
|
GlobalUnlock16(hmmio);
|
|
|
|
GlobalFree16(hmmio);
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|