Cast time_t to long for printing.
[wine] / win32 / newfns.c
1 /*
2  * Win32 miscellaneous functions
3  *
4  * Copyright 1995 Thomas Sandford (tdgsandf@prds-grn.demon.co.uk)
5  *
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.
10  *
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.
15  *
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
19  */
20
21 /* Misc. new functions - they should be moved into appropriate files
22 at a later date. */
23
24 #include "config.h"
25 #include "wine/port.h"
26
27 #include <stdarg.h>
28 #include <stdio.h>
29 #include <string.h>
30 #ifdef HAVE_SYS_TIME_H
31 # include <sys/time.h>
32 #endif
33 #ifdef HAVE_UNISTD_H
34 # include <unistd.h>
35 #endif
36
37 #define NONAMELESSUNION
38 #define NONAMELESSSTRUCT
39 #include "windef.h"
40 #include "winbase.h"
41 #include "winnls.h"
42 #include "winerror.h"
43 #include "wine/debug.h"
44
45 WINE_DEFAULT_DEBUG_CHANNEL(win32);
46
47
48 /******************************************************************************
49  * GetCompressedFileSizeA [KERNEL32.@]
50  *
51  * NOTES
52  *    This should call the W function below
53  */
54 DWORD WINAPI GetCompressedFileSizeA(
55     LPCSTR lpFileName,
56     LPDWORD lpFileSizeHigh)
57 {
58     FIXME("(...): stub\n");
59     return 0xffffffff;
60 }
61
62
63 /******************************************************************************
64  * GetCompressedFileSizeW [KERNEL32.@]
65  *
66  * RETURNS
67  *    Success: Low-order doubleword of number of bytes
68  *    Failure: 0xffffffff
69  */
70 DWORD WINAPI GetCompressedFileSizeW(
71     LPCWSTR lpFileName,     /* [in]  Pointer to name of file */
72     LPDWORD lpFileSizeHigh) /* [out] Receives high-order doubleword of size */
73 {
74     FIXME("(%s,%p): stub\n",debugstr_w(lpFileName),lpFileSizeHigh);
75     return 0xffffffff;
76 }
77
78
79 /******************************************************************************
80  *              CreateIoCompletionPort (KERNEL32.@)
81  */
82 HANDLE WINAPI CreateIoCompletionPort(HANDLE hFileHandle,
83 HANDLE hExistingCompletionPort, DWORD dwCompletionKey,
84 DWORD dwNumberOfConcurrentThreads)
85 {
86     FIXME("(%p, %p, %08lx, %08lx): stub.\n", hFileHandle, hExistingCompletionPort, dwCompletionKey, dwNumberOfConcurrentThreads);
87     return NULL;
88 }
89
90 /******************************************************************************
91  *              GetQueuedCompletionStatus (KERNEL32.@)
92  */
93 BOOL WINAPI GetQueuedCompletionStatus(
94     HANDLE CompletionPort, LPDWORD lpNumberOfBytesTransferred,
95     LPDWORD lpCompletionKey, LPOVERLAPPED *lpOverlapped, DWORD dwMilliseconds
96 ) {
97     FIXME("(%p,%p,%p,%p,%ld), stub!\n",CompletionPort,lpNumberOfBytesTransferred,lpCompletionKey,lpOverlapped,dwMilliseconds);
98     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
99     return FALSE;
100 }
101
102 /***********************************************************************
103  *           Beep   (KERNEL32.@)
104  */
105 BOOL WINAPI Beep( DWORD dwFreq, DWORD dwDur )
106 {
107     static const char beep = '\a';
108     /* dwFreq and dwDur are ignored by Win95 */
109     if (isatty(2)) write( 2, &beep, 1 );
110     return TRUE;
111 }