Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Win32 miscellaneous functions |
| 3 | * |
| 4 | * Copyright 1995 Thomas Sandford (tdgsandf@prds-grn.demon.co.uk) |
| 5 | */ |
| 6 | |
| 7 | /* Misc. new functions - they should be moved into appropriate files |
| 8 | at a later date. */ |
| 9 | |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 10 | #include <string.h> |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 11 | #include <sys/time.h> |
| 12 | #include <unistd.h> |
Jim Aston | 2e1cafa | 1999-03-14 16:35:05 +0000 | [diff] [blame] | 13 | #include "windef.h" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 14 | #include "winerror.h" |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 15 | #include "heap.h" |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 16 | #include "debugtools.h" |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 17 | #include "debugstr.h" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 18 | |
Patrik Stridvall | b4b9fae | 1999-04-19 14:56:29 +0000 | [diff] [blame] | 19 | DECLARE_DEBUG_CHANNEL(debug) |
| 20 | DECLARE_DEBUG_CHANNEL(win32) |
| 21 | |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 22 | |
Alexandre Julliard | 77b9918 | 1997-09-14 17:17:23 +0000 | [diff] [blame] | 23 | /**************************************************************************** |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 24 | * QueryPerformanceCounter (KERNEL32.564) |
Alexandre Julliard | 0e270f4 | 1996-08-24 18:26:35 +0000 | [diff] [blame] | 25 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 26 | BOOL WINAPI QueryPerformanceCounter(PLARGE_INTEGER counter) |
Alexandre Julliard | 670cdc4 | 1997-08-24 16:00:30 +0000 | [diff] [blame] | 27 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 28 | struct timeval tv; |
| 29 | |
| 30 | gettimeofday(&tv,NULL); |
| 31 | counter->LowPart = tv.tv_usec+tv.tv_sec*1000000; |
| 32 | counter->HighPart = 0; |
| 33 | return TRUE; |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 34 | } |
| 35 | |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 36 | /**************************************************************************** |
| 37 | * QueryPerformanceFrequency (KERNEL32.565) |
| 38 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 39 | BOOL WINAPI QueryPerformanceFrequency(PLARGE_INTEGER frequency) |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 40 | { |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 41 | frequency->LowPart = 1000000; |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 42 | frequency->HighPart = 0; |
Alexandre Julliard | 0623a6f | 1998-01-18 18:01:49 +0000 | [diff] [blame] | 43 | return TRUE; |
Alexandre Julliard | e658d82 | 1997-11-30 17:45:40 +0000 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | /**************************************************************************** |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 47 | * FlushInstructionCache (KERNEL32.261) |
| 48 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 49 | BOOL WINAPI FlushInstructionCache(DWORD x,DWORD y,DWORD z) { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 50 | FIXME_(debug)("(0x%08lx,0x%08lx,0x%08lx): stub\n",x,y,z); |
Alexandre Julliard | a11d7b1 | 1998-03-01 20:05:02 +0000 | [diff] [blame] | 51 | return TRUE; |
| 52 | } |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 53 | |
| 54 | /*********************************************************************** |
| 55 | * CreateNamedPipeA (KERNEL32.168) |
| 56 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 57 | HANDLE WINAPI CreateNamedPipeA (LPCSTR lpName, DWORD dwOpenMode, |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 58 | DWORD dwPipeMode, DWORD nMaxInstances, |
| 59 | DWORD nOutBufferSize, DWORD nInBufferSize, |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 60 | DWORD nDefaultTimeOut, |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 61 | LPSECURITY_ATTRIBUTES lpSecurityAttributes) |
| 62 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 63 | FIXME_(win32)("(Name=%s, OpenMode=%#08lx, dwPipeMode=%#08lx, MaxInst=%ld, OutBSize=%ld, InBuffSize=%ld, DefTimeOut=%ld, SecAttr=%p): stub\n", |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 64 | debugstr_a(lpName), dwOpenMode, dwPipeMode, nMaxInstances, |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 65 | nOutBufferSize, nInBufferSize, nDefaultTimeOut, |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 66 | lpSecurityAttributes); |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 67 | /* if (nMaxInstances > PIPE_UNLIMITED_INSTANCES) { |
| 68 | SetLastError (ERROR_INVALID_PARAMETER); |
| 69 | return INVALID_HANDLE_VALUE; |
| 70 | } */ |
| 71 | |
| 72 | SetLastError (ERROR_UNKNOWN); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 73 | return INVALID_HANDLE_VALUE; |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | /*********************************************************************** |
| 77 | * CreateNamedPipeW (KERNEL32.169) |
| 78 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 79 | HANDLE WINAPI CreateNamedPipeW (LPCWSTR lpName, DWORD dwOpenMode, |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 80 | DWORD dwPipeMode, DWORD nMaxInstances, |
| 81 | DWORD nOutBufferSize, DWORD nInBufferSize, |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 82 | DWORD nDefaultTimeOut, |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 83 | LPSECURITY_ATTRIBUTES lpSecurityAttributes) |
| 84 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 85 | FIXME_(win32)("(Name=%s, OpenMode=%#08lx, dwPipeMode=%#08lx, MaxInst=%ld, OutBSize=%ld, InBuffSize=%ld, DefTimeOut=%ld, SecAttr=%p): stub\n", |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 86 | debugstr_w(lpName), dwOpenMode, dwPipeMode, nMaxInstances, |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 87 | nOutBufferSize, nInBufferSize, nDefaultTimeOut, |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 88 | lpSecurityAttributes); |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 89 | |
| 90 | SetLastError (ERROR_UNKNOWN); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 91 | return INVALID_HANDLE_VALUE; |
Alexandre Julliard | 54c2711 | 1998-03-29 19:44:57 +0000 | [diff] [blame] | 92 | } |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 93 | |
| 94 | /*********************************************************************** |
| 95 | * GetSystemPowerStatus (KERNEL32.621) |
| 96 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 97 | BOOL WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS sps_ptr) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 98 | { |
| 99 | return FALSE; /* no power management support */ |
| 100 | } |
| 101 | |
| 102 | |
| 103 | /*********************************************************************** |
| 104 | * SetSystemPowerState (KERNEL32.630) |
| 105 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 106 | BOOL WINAPI SetSystemPowerState(BOOL suspend_or_hibernate, |
| 107 | BOOL force_flag) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 108 | { |
| 109 | /* suspend_or_hibernate flag: w95 does not support |
| 110 | this feature anyway */ |
| 111 | |
| 112 | for ( ;0; ) |
| 113 | { |
| 114 | if ( force_flag ) |
| 115 | { |
| 116 | } |
| 117 | else |
| 118 | { |
| 119 | } |
| 120 | } |
| 121 | return TRUE; |
| 122 | } |
| 123 | |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 124 | |
| 125 | /****************************************************************************** |
| 126 | * CreateMailslot32A [KERNEL32.164] |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 127 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 128 | HANDLE WINAPI CreateMailslotA( LPCSTR lpName, DWORD nMaxMessageSize, |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 129 | DWORD lReadTimeout, LPSECURITY_ATTRIBUTES sa) |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 130 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 131 | FIXME_(win32)("(%s,%ld,%ld,%p): stub\n", debugstr_a(lpName), |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 132 | nMaxMessageSize, lReadTimeout, sa); |
| 133 | return 1; |
Alexandre Julliard | c7c217b | 1998-04-13 12:21:30 +0000 | [diff] [blame] | 134 | } |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 135 | |
| 136 | |
| 137 | /****************************************************************************** |
| 138 | * CreateMailslot32W [KERNEL32.165] Creates a mailslot with specified name |
| 139 | * |
| 140 | * PARAMS |
| 141 | * lpName [I] Pointer to string for mailslot name |
| 142 | * nMaxMessageSize [I] Maximum message size |
| 143 | * lReadTimeout [I] Milliseconds before read time-out |
| 144 | * sa [I] Pointer to security structure |
| 145 | * |
| 146 | * RETURNS |
| 147 | * Success: Handle to mailslot |
| 148 | * Failure: INVALID_HANDLE_VALUE |
| 149 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 150 | HANDLE WINAPI CreateMailslotW( LPCWSTR lpName, DWORD nMaxMessageSize, |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 151 | DWORD lReadTimeout, LPSECURITY_ATTRIBUTES sa ) |
| 152 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 153 | FIXME_(win32)("(%s,%ld,%ld,%p): stub\n", debugstr_w(lpName), |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 154 | nMaxMessageSize, lReadTimeout, sa); |
| 155 | return 1; |
| 156 | } |
| 157 | |
| 158 | |
| 159 | /****************************************************************************** |
| 160 | * GetMailslotInfo [KERNEL32.347] Retrieves info about specified mailslot |
| 161 | * |
| 162 | * PARAMS |
| 163 | * hMailslot [I] Mailslot handle |
| 164 | * lpMaxMessageSize [O] Address of maximum message size |
| 165 | * lpNextSize [O] Address of size of next message |
| 166 | * lpMessageCount [O] Address of number of messages |
| 167 | * lpReadTimeout [O] Address of read time-out |
| 168 | * |
| 169 | * RETURNS |
| 170 | * Success: TRUE |
| 171 | * Failure: FALSE |
| 172 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 173 | BOOL WINAPI GetMailslotInfo( HANDLE hMailslot, LPDWORD lpMaxMessageSize, |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 174 | LPDWORD lpNextSize, LPDWORD lpMessageCount, |
| 175 | LPDWORD lpReadTimeout ) |
| 176 | { |
Andreas Mohr | 9992081 | 1999-05-04 16:54:39 +0000 | [diff] [blame] | 177 | FIXME_(win32)("(%04x): stub\n",hMailslot); |
| 178 | if (lpMaxMessageSize) *lpMaxMessageSize = (DWORD)NULL; |
| 179 | if (lpNextSize) *lpNextSize = (DWORD)NULL; |
| 180 | if (lpMessageCount) *lpMessageCount = (DWORD)NULL; |
| 181 | if (lpReadTimeout) *lpReadTimeout = (DWORD)NULL; |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 182 | return TRUE; |
| 183 | } |
| 184 | |
| 185 | |
| 186 | /****************************************************************************** |
| 187 | * GetCompressedFileSize32A [KERNEL32.291] |
| 188 | * |
| 189 | * NOTES |
| 190 | * This should call the W function below |
| 191 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 192 | DWORD WINAPI GetCompressedFileSizeA( |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 193 | LPCSTR lpFileName, |
| 194 | LPDWORD lpFileSizeHigh) |
| 195 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 196 | FIXME_(win32)("(...): stub\n"); |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 197 | return 0xffffffff; |
| 198 | } |
| 199 | |
| 200 | |
| 201 | /****************************************************************************** |
| 202 | * GetCompressedFileSize32W [KERNEL32.292] |
| 203 | * |
| 204 | * RETURNS |
| 205 | * Success: Low-order doubleword of number of bytes |
| 206 | * Failure: 0xffffffff |
| 207 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 208 | DWORD WINAPI GetCompressedFileSizeW( |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 209 | LPCWSTR lpFileName, /* [in] Pointer to name of file */ |
| 210 | LPDWORD lpFileSizeHigh) /* [out] Receives high-order doubleword of size */ |
| 211 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 212 | FIXME_(win32)("(%s,%p): stub\n",debugstr_w(lpFileName),lpFileSizeHigh); |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 213 | return 0xffffffff; |
| 214 | } |
| 215 | |
| 216 | |
| 217 | /****************************************************************************** |
| 218 | * GetProcessWindowStation [USER32.280] Returns handle of window station |
| 219 | * |
| 220 | * NOTES |
| 221 | * Docs say the return value is HWINSTA |
| 222 | * |
| 223 | * RETURNS |
| 224 | * Success: Handle to window station associated with calling process |
| 225 | * Failure: NULL |
| 226 | */ |
| 227 | DWORD WINAPI GetProcessWindowStation(void) |
| 228 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 229 | FIXME_(win32)("(void): stub\n"); |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 230 | return 1; |
| 231 | } |
| 232 | |
| 233 | |
| 234 | /****************************************************************************** |
| 235 | * GetThreadDesktop [USER32.295] Returns handle to desktop |
| 236 | * |
| 237 | * NOTES |
| 238 | * Docs say the return value is HDESK |
| 239 | * |
| 240 | * PARAMS |
| 241 | * dwThreadId [I] Thread identifier |
| 242 | * |
| 243 | * RETURNS |
| 244 | * Success: Handle to desktop associated with specified thread |
| 245 | * Failure: NULL |
| 246 | */ |
| 247 | DWORD WINAPI GetThreadDesktop( DWORD dwThreadId ) |
| 248 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 249 | FIXME_(win32)("(%lx): stub\n",dwThreadId); |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 250 | return 1; |
| 251 | } |
| 252 | |
| 253 | |
| 254 | /****************************************************************************** |
| 255 | * SetDebugErrorLevel [USER32.475] |
| 256 | * Sets the minimum error level for generating debugging events |
| 257 | * |
| 258 | * PARAMS |
| 259 | * dwLevel [I] Debugging error level |
| 260 | */ |
| 261 | VOID WINAPI SetDebugErrorLevel( DWORD dwLevel ) |
| 262 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 263 | FIXME_(win32)("(%ld): stub\n", dwLevel); |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 264 | } |
| 265 | |
| 266 | |
| 267 | /****************************************************************************** |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 268 | * SetComputerName32A [KERNEL32.621] |
| 269 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 270 | BOOL WINAPI SetComputerNameA( LPCSTR lpComputerName ) |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 271 | { |
| 272 | LPWSTR lpComputerNameW = HEAP_strdupAtoW(GetProcessHeap(),0,lpComputerName); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 273 | BOOL ret = SetComputerNameW(lpComputerNameW); |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 274 | HeapFree(GetProcessHeap(),0,lpComputerNameW); |
| 275 | return ret; |
| 276 | } |
| 277 | |
| 278 | |
| 279 | /****************************************************************************** |
| 280 | * SetComputerName32W [KERNEL32.622] |
| 281 | * |
| 282 | * PARAMS |
| 283 | * lpComputerName [I] Address of new computer name |
| 284 | * |
| 285 | * RETURNS STD |
| 286 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 287 | BOOL WINAPI SetComputerNameW( LPCWSTR lpComputerName ) |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 288 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 289 | FIXME_(win32)("(%s): stub\n", debugstr_w(lpComputerName)); |
Alexandre Julliard | 46ea8b3 | 1998-05-03 19:01:20 +0000 | [diff] [blame] | 290 | return TRUE; |
| 291 | } |
| 292 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 293 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 294 | BOOL WINAPI EnumPortsA(LPSTR name,DWORD level,LPBYTE ports,DWORD bufsize,LPDWORD bufneeded,LPDWORD bufreturned) { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 295 | FIXME_(win32)("(%s,%ld,%p,%ld,%p,%p), stub!\n",name,level,ports,bufsize,bufneeded,bufreturned); |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 296 | return FALSE; |
| 297 | } |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 298 | |
| 299 | /****************************************************************************** |
| 300 | * IsDebuggerPresent [KERNEL32.827] |
| 301 | * |
| 302 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 303 | BOOL WINAPI IsDebuggerPresent() { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 304 | FIXME_(win32)(" ... no debuggers yet, returning FALSE.\n"); |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 305 | return FALSE; |
| 306 | } |
| 307 | |
Alexandre Julliard | 642d313 | 1998-07-12 19:29:36 +0000 | [diff] [blame] | 308 | /****************************************************************************** |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 309 | * OpenDesktop32A [USER32.408] |
| 310 | * |
| 311 | * NOTES |
| 312 | * Return type should be HDESK |
| 313 | */ |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 314 | HANDLE WINAPI OpenDesktopA( LPCSTR lpszDesktop, DWORD dwFlags, |
| 315 | BOOL fInherit, DWORD dwDesiredAccess ) |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 316 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 317 | FIXME_(win32)("(%s,%lx,%i,%lx): stub\n",debugstr_a(lpszDesktop),dwFlags, |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 318 | fInherit,dwDesiredAccess); |
| 319 | return 1; |
| 320 | } |
| 321 | |
| 322 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 323 | BOOL WINAPI SetUserObjectInformationA( HANDLE hObj, int nIndex, |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 324 | LPVOID pvInfo, DWORD nLength ) |
| 325 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 326 | FIXME_(win32)("(%x,%d,%p,%lx): stub\n",hObj,nIndex,pvInfo,nLength); |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 327 | return TRUE; |
| 328 | } |
| 329 | |
| 330 | |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 331 | BOOL WINAPI SetThreadDesktop( HANDLE hDesktop ) |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 332 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 333 | FIXME_(win32)("(%x): stub\n",hDesktop); |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 334 | return TRUE; |
| 335 | } |
| 336 | |
Andreas Mohr | 702aec6 | 1999-03-28 13:11:46 +0000 | [diff] [blame] | 337 | HANDLE WINAPI CreateIoCompletionPort(HANDLE hFileHandle, |
| 338 | HANDLE hExistingCompletionPort, DWORD dwCompletionKey, |
| 339 | DWORD dwNumberOfConcurrentThreads) |
| 340 | { |
Alexandre Julliard | 06c275a | 1999-05-02 14:32:27 +0000 | [diff] [blame] | 341 | FIXME_(win32)("(%04x, %04x, %08lx, %08lx): stub.\n", hFileHandle, hExistingCompletionPort, dwCompletionKey, dwNumberOfConcurrentThreads); |
Andreas Mohr | 702aec6 | 1999-03-28 13:11:46 +0000 | [diff] [blame] | 342 | return (HANDLE)NULL; |
| 343 | } |