ReactOS Fundraising Campaign 2012
 
€ 3,303 / € 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

mprapi.c

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2006 Dmitry Timoshkov
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00017  */
00018 
00019 #include <stdarg.h>
00020 
00021 #include "windef.h"
00022 #include "winbase.h"
00023 #include "mprapi.h"
00024 #include "wine/debug.h"
00025 
00026 WINE_DEFAULT_DEBUG_CHANNEL(mprapi);
00027 
00028 /*****************************************************
00029  *      DllMain
00030  */
00031 BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, LPVOID reserved)
00032 {
00033     TRACE("(%p, %d, %p)\n", hinst, reason, reserved);
00034 
00035     switch(reason)
00036     {
00037     case DLL_WINE_PREATTACH:
00038         return FALSE;  /* prefer native version */
00039 
00040     case DLL_PROCESS_ATTACH:
00041         DisableThreadLibraryCalls( hinst );
00042         break;
00043     }
00044     return TRUE;
00045 }
00046 
00047 /***********************************************************************
00048  * MprAdminGetErrorString (MPRAPI.@)
00049  *
00050  * Return a unicode string for the given mpr errorcode
00051  *
00052  * PARAMS
00053  *  mprerror [i] errorcode, for which a description is requested
00054  *  localstr [o] pointer, where a buffer with the error description is returned
00055  *
00056  * RETURNS
00057  *  Failure: ERROR_MR_MID_NOT_FOUND, when mprerror is not known
00058  *  Success: ERROR_SUCCESS, and in localstr a pointer to a buffer from LocalAlloc,
00059  *           which contains the error description.
00060  *
00061  * NOTES
00062  *  The caller must free the returned buffer with LocalFree
00063  *
00064  */
00065 DWORD APIENTRY MprAdminGetErrorString(DWORD mprerror, LPWSTR *localstr)
00066 {
00067     FIXME("(0x%x/%u, %p): stub!\n", mprerror, mprerror, localstr);
00068 
00069     *localstr = NULL;
00070     return ERROR_MR_MID_NOT_FOUND;
00071 }
00072 
00073 /***********************************************************************
00074  *      MprAdminIsServiceRunning (MPRAPI.@)
00075  */
00076 BOOL APIENTRY MprAdminIsServiceRunning(LPWSTR server)
00077 {
00078     FIXME("(%s): stub!\n", debugstr_w(server));
00079 
00080     return FALSE;
00081 }

Generated on Tue May 15 04:47:01 2012 for ReactOS by doxygen 1.6.3

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