ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

mpr_main.c
Go to the documentation of this file.
00001 /*
00002  * MPR undocumented functions
00003  *
00004  * Copyright 1999 Ulrich Weigand
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 "objbase.h"
00026 #include "winnetwk.h"
00027 #include "wine/debug.h"
00028 #include "wnetpriv.h"
00029 
00030 WINE_DEFAULT_DEBUG_CHANNEL(mpr);
00031 
00032  /*
00033   * FIXME: The following routines should use a private heap ...
00034   */
00035 
00036 /*****************************************************************
00037  *  @  [MPR.22]
00038  */
00039 LPVOID WINAPI MPR_Alloc( DWORD dwSize )
00040 {
00041     return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, dwSize );
00042 }
00043 
00044 /*****************************************************************
00045  *  @  [MPR.23]
00046  */
00047 LPVOID WINAPI MPR_ReAlloc( LPVOID lpSrc, DWORD dwSize )
00048 {
00049     if ( lpSrc )
00050         return HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, lpSrc, dwSize );
00051     else
00052         return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, dwSize );
00053 }
00054 
00055 /*****************************************************************
00056  *  @  [MPR.24]
00057  */
00058 BOOL WINAPI MPR_Free( LPVOID lpMem )
00059 {
00060     if ( lpMem )
00061         return HeapFree( GetProcessHeap(), 0, lpMem );
00062     else
00063         return FALSE;
00064 }
00065 
00066 /*****************************************************************
00067  *  @  [MPR.25]
00068  */
00069 BOOL WINAPI _MPR_25( LPBYTE lpMem, INT len )
00070 {
00071     FIXME( "(%p, %d): stub\n", lpMem, len );
00072 
00073     return FALSE;
00074 }
00075 
00076 /*****************************************************************
00077  *  DllCanUnloadNow  [MPR.@]
00078  */
00079 HRESULT WINAPI DllCanUnloadNow(void)
00080 {
00081     return S_OK;
00082 }
00083 
00084 /*****************************************************************
00085  *  DllMain  [MPR.init]
00086  */
00087 BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
00088 {
00089     switch (fdwReason) {
00090         case DLL_PROCESS_ATTACH:
00091             DisableThreadLibraryCalls( hinstDLL );
00092             wnetInit(hinstDLL);
00093             break;
00094 
00095         case DLL_PROCESS_DETACH:
00096             wnetFree();
00097             break;
00098     }
00099     return TRUE;
00100 }

Generated on Sun May 27 2012 04:24:43 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.