2 * Win32 miscellaneous functions
4 * Copyright 1995 Thomas Sandford (tdgsandf@prds-grn.demon.co.uk)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 /* Misc. new functions - they should be moved into appropriate files
25 #include "wine/port.h"
30 #ifdef HAVE_SYS_TIME_H
31 # include <sys/time.h>
37 #define NONAMELESSUNION
38 #define NONAMELESSSTRUCT
43 #include "wine/debug.h"
45 WINE_DEFAULT_DEBUG_CHANNEL(win32);
48 /****************************************************************************
49 * FlushInstructionCache (KERNEL32.@)
51 BOOL WINAPI FlushInstructionCache(HANDLE hProcess, LPCVOID lpBaseAddress, SIZE_T dwSize)
53 if (GetVersion() & 0x80000000) return TRUE; /* not NT, always TRUE */
54 FIXME("(%p,%p,0x%08lx): stub\n",hProcess, lpBaseAddress, dwSize);
59 /******************************************************************************
60 * GetCompressedFileSizeA [KERNEL32.@]
63 * This should call the W function below
65 DWORD WINAPI GetCompressedFileSizeA(
67 LPDWORD lpFileSizeHigh)
69 FIXME("(...): stub\n");
74 /******************************************************************************
75 * GetCompressedFileSizeW [KERNEL32.@]
78 * Success: Low-order doubleword of number of bytes
81 DWORD WINAPI GetCompressedFileSizeW(
82 LPCWSTR lpFileName, /* [in] Pointer to name of file */
83 LPDWORD lpFileSizeHigh) /* [out] Receives high-order doubleword of size */
85 FIXME("(%s,%p): stub\n",debugstr_w(lpFileName),lpFileSizeHigh);
90 /******************************************************************************
91 * CreateIoCompletionPort (KERNEL32.@)
93 HANDLE WINAPI CreateIoCompletionPort(HANDLE hFileHandle,
94 HANDLE hExistingCompletionPort, DWORD dwCompletionKey,
95 DWORD dwNumberOfConcurrentThreads)
97 FIXME("(%p, %p, %08lx, %08lx): stub.\n", hFileHandle, hExistingCompletionPort, dwCompletionKey, dwNumberOfConcurrentThreads);
101 /******************************************************************************
102 * GetQueuedCompletionStatus (KERNEL32.@)
104 BOOL WINAPI GetQueuedCompletionStatus(
105 HANDLE CompletionPort, LPDWORD lpNumberOfBytesTransferred,
106 LPDWORD lpCompletionKey, LPOVERLAPPED *lpOverlapped, DWORD dwMilliseconds
108 FIXME("(%p,%p,%p,%p,%ld), stub!\n",CompletionPort,lpNumberOfBytesTransferred,lpCompletionKey,lpOverlapped,dwMilliseconds);
109 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
113 /***********************************************************************
116 BOOL WINAPI Beep( DWORD dwFreq, DWORD dwDur )
118 static const char beep = '\a';
119 /* dwFreq and dwDur are ignored by Win95 */
120 if (isatty(2)) write( 2, &beep, 1 );