Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenimagehlp_main.c
Go to the documentation of this file.
00001 /* 00002 * IMAGEHLP library 00003 * 00004 * Copyright 1998 Patrik Stridvall 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 */ 00020 00021 #include <stdarg.h> 00022 00023 #include "windef.h" 00024 #include "winbase.h" 00025 #include "imagehlp.h" 00026 #include "wine/debug.h" 00027 00028 /**********************************************************************/ 00029 DECLSPEC_HIDDEN HANDLE IMAGEHLP_hHeap = NULL; 00030 00031 /*********************************************************************** 00032 * DllMain (IMAGEHLP.init) 00033 */ 00034 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) 00035 { 00036 switch(fdwReason) 00037 { 00038 case DLL_PROCESS_ATTACH: 00039 DisableThreadLibraryCalls(hinstDLL); 00040 IMAGEHLP_hHeap = HeapCreate(0, 0x10000, 0); 00041 break; 00042 case DLL_PROCESS_DETACH: 00043 HeapDestroy(IMAGEHLP_hHeap); 00044 IMAGEHLP_hHeap = NULL; 00045 break; 00046 default: 00047 break; 00048 } 00049 return TRUE; 00050 } 00051 00052 /*********************************************************************** 00053 * MarkImageAsRunFromSwap (IMAGEHLP.@) 00054 * FIXME 00055 * No documentation available. 00056 */ 00057 00058 /*********************************************************************** 00059 * TouchFileTimes (IMAGEHLP.@) 00060 */ 00061 BOOL WINAPI TouchFileTimes(HANDLE FileHandle, LPSYSTEMTIME lpSystemTime) 00062 { 00063 FILETIME FileTime; 00064 SYSTEMTIME SystemTime; 00065 00066 if(lpSystemTime == NULL) 00067 { 00068 GetSystemTime(&SystemTime); 00069 lpSystemTime = &SystemTime; 00070 } 00071 00072 return (SystemTimeToFileTime(lpSystemTime, &FileTime) && 00073 SetFileTime(FileHandle, NULL, NULL, &FileTime)); 00074 } Generated on Mon May 28 2012 04:23:49 for ReactOS by
1.7.6.1
|