mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 10:52:52 +00:00
LoadLibraryA, GetProcAddress, FreeLibrary, GetModuleHandleA, WriteFileEx needed __stdcall
svn path=/trunk/; revision=746
This commit is contained in:
parent
68fbd54f2c
commit
dabbe50e39
|
@ -1,4 +1,5 @@
|
|||
/*
|
||||
/* $Id: rw.c,v 1.7 1999/10/31 22:41:15 ea Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/kernel32/file/rw.c
|
||||
|
@ -140,7 +141,9 @@ VOID ApcRoutine(PVOID ApcContext, struct _IO_STATUS_BLOCK* IoStatusBlock, ULONG
|
|||
}
|
||||
|
||||
|
||||
WINBOOL WriteFileEx(
|
||||
WINBOOL
|
||||
STDCALL
|
||||
WriteFileEx (
|
||||
HANDLE hFile,
|
||||
LPCVOID lpBuffer,
|
||||
DWORD nNumberOfBytesToWrite,
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
/* $Id: ldr.c,v 1.3 1999/10/31 22:41:15 ea Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT : ReactOS user mode libraries
|
||||
* MODULE : kernel32.dll
|
||||
* FILE : reactos/lib/kernel32/misc/ldr.c
|
||||
* AUTHOR : Boudewijn Dekker
|
||||
*/
|
||||
#define WIN32_NO_STATUS
|
||||
#define WIN32_NO_PEHDR
|
||||
#include <windows.h>
|
||||
|
@ -6,7 +14,9 @@
|
|||
#include <ntdll/ldr.h>
|
||||
|
||||
|
||||
HINSTANCE LoadLibraryA( LPCSTR lpLibFileName )
|
||||
HINSTANCE
|
||||
STDCALL
|
||||
LoadLibraryA( LPCSTR lpLibFileName )
|
||||
{
|
||||
HINSTANCE hInst;
|
||||
int i;
|
||||
|
@ -41,7 +51,9 @@ HINSTANCE LoadLibraryA( LPCSTR lpLibFileName )
|
|||
}
|
||||
|
||||
|
||||
FARPROC GetProcAddress( HMODULE hModule, LPCSTR lpProcName )
|
||||
FARPROC
|
||||
STDCALL
|
||||
GetProcAddress( HMODULE hModule, LPCSTR lpProcName )
|
||||
{
|
||||
|
||||
FARPROC fnExp;
|
||||
|
@ -54,7 +66,10 @@ FARPROC GetProcAddress( HMODULE hModule, LPCSTR lpProcName )
|
|||
return fnExp;
|
||||
}
|
||||
|
||||
WINBOOL FreeLibrary( HMODULE hLibModule )
|
||||
|
||||
WINBOOL
|
||||
STDCALL
|
||||
FreeLibrary( HMODULE hLibModule )
|
||||
{
|
||||
LdrUnloadDll(hLibModule);
|
||||
return TRUE;
|
||||
|
@ -73,7 +88,13 @@ FreeLibraryAndExitThread(
|
|||
return;
|
||||
}
|
||||
|
||||
HMODULE GetModuleHandleA ( LPCSTR lpModuleName )
|
||||
|
||||
HMODULE
|
||||
STDCALL
|
||||
GetModuleHandleA ( LPCSTR lpModuleName )
|
||||
{
|
||||
return LoadLibraryA(lpModuleName);
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue