1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 #include "macros.h" 23 #include <tlhelp32.h> 24 25 26 IMPLEMENT_THUNK( kernel32, TRYLOAD, BOOL, WINAPI, Module32First, (HANDLE hSnapshot, LPMODULEENTRY32 lpme ) ) 27 { 28 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 29 return FALSE; 30 } 31 32 IMPLEMENT_THUNK( kernel32, TRYLOAD, BOOL, WINAPI, Module32FirstW, (HANDLE hSnapshot, LPMODULEENTRY32W lpme ) ) 33 { 34 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 35 return FALSE; 36 } 37 38 IMPLEMENT_THUNK( kernel32, TRYLOAD, BOOL, WINAPI, Module32Next, (HANDLE hSnapshot, LPMODULEENTRY32 lpme ) ) 39 { 40 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 41 return FALSE; 42 } 43 44 IMPLEMENT_THUNK( kernel32, TRYLOAD, BOOL, WINAPI, Module32NextW, (HANDLE hSnapshot, LPMODULEENTRY32W lpme ) ) 45 { 46 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 47 return FALSE; 48 } 49 50 IMPLEMENT_THUNK( kernel32, TRYLOAD, BOOL, WINAPI, Process32First, (HANDLE hSnapshot, LPPROCESSENTRY32 lppe ) ) 51 { 52 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 53 return FALSE; 54 } 55 56 IMPLEMENT_THUNK( kernel32, TRYLOAD, BOOL, WINAPI, Process32FirstW, (HANDLE hSnapshot, LPPROCESSENTRY32W lppe ) ) 57 { 58 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 59 return FALSE; 60 } 61 62 IMPLEMENT_THUNK( kernel32, TRYLOAD, BOOL, WINAPI, Process32Next, (HANDLE hSnapshot, LPPROCESSENTRY32 lppe ) ) 63 { 64 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 65 return FALSE; 66 } 67 68 IMPLEMENT_THUNK( kernel32, TRYLOAD, BOOL, WINAPI, Process32NextW, (HANDLE hSnapshot, LPPROCESSENTRY32W lppe ) ) 69 { 70 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 71 return FALSE; 72 } 73 74 IMPLEMENT_THUNK( kernel32, TRYLOAD, HANDLE, WINAPI, CreateToolhelp32Snapshot, (DWORD dwFlags, DWORD th32ProcessID ) ) 75 { 76 SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); 77 return NULL; 78 } 79