utildll: Add DLL.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47616
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
stable
Alex Henrie 2019-08-13 19:57:47 -06:00 committed by Alexandre Julliard
parent cf87feee13
commit dc23cca322
5 changed files with 88 additions and 0 deletions

2
configure vendored
View File

@ -1585,6 +1585,7 @@ enable_usbd_sys
enable_user32
enable_userenv
enable_usp10
enable_utildll
enable_uuid
enable_uxtheme
enable_vbscript
@ -20689,6 +20690,7 @@ wine_fn_config_makefile dlls/userenv enable_userenv
wine_fn_config_makefile dlls/userenv/tests enable_tests
wine_fn_config_makefile dlls/usp10 enable_usp10
wine_fn_config_makefile dlls/usp10/tests enable_tests
wine_fn_config_makefile dlls/utildll enable_utildll
wine_fn_config_makefile dlls/uuid enable_uuid
wine_fn_config_makefile dlls/uxtheme enable_uxtheme
wine_fn_config_makefile dlls/uxtheme/tests enable_tests

View File

@ -3673,6 +3673,7 @@ WINE_CONFIG_MAKEFILE(dlls/userenv)
WINE_CONFIG_MAKEFILE(dlls/userenv/tests)
WINE_CONFIG_MAKEFILE(dlls/usp10)
WINE_CONFIG_MAKEFILE(dlls/usp10/tests)
WINE_CONFIG_MAKEFILE(dlls/utildll)
WINE_CONFIG_MAKEFILE(dlls/uuid)
WINE_CONFIG_MAKEFILE(dlls/uxtheme)
WINE_CONFIG_MAKEFILE(dlls/uxtheme/tests)

View File

@ -0,0 +1,6 @@
MODULE = utildll.dll
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
main.c

View File

@ -0,0 +1,43 @@
/*
* Utility Functions
*
* Copyright 2019 Alex Henrie
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(utildll);
BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
{
TRACE("(%p, %u, %p)\n", instance, reason, reserved);
switch (reason)
{
case DLL_WINE_PREATTACH:
return FALSE; /* prefer native version */
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(instance);
break;
}
return TRUE;
}

View File

@ -0,0 +1,36 @@
@ stub AsyncDeviceEnumerate
@ stub CachedGetUserFromSid
@ stub CalculateDiffTime
@ stub CalculateElapsedTime
@ stub CompareElapsedTime
@ stub ConfigureModem
@ stub CtxGetAnyDCName
@ stub CurrentDateTimeString
@ stub DateTimeString
@ stub ElapsedTimeString
@ stub EnumerateMultiUserServers
@ stub FormDecoratedAsyncDeviceName
@ stub GetAssociatedPortName
@ stub GetSystemMessageA
@ stub GetSystemMessageW
@ stub GetUnknownString
@ stub GetUserFromSid
@ stub HaveAnonymousUsersChanged
@ stub InitializeAnonymousUserCompareList
@ stub InstallModem
@ stub IsPartOfDomain
@ stub NetBIOSDeviceEnumerate
@ stub NetworkDeviceEnumerate
@ stub ParseDecoratedAsyncDeviceName
@ stub QueryCurrentWinStation
@ stub RegGetNetworkDeviceName
@ stub RegGetNetworkServiceName
@ stub SetupAsyncCdConfig
@ stub StandardErrorMessage
@ stub StrAsyncConnectState
@ stub StrConnectState
@ stub StrProcessState
@ stub StrSdClass
@ stub StrSystemWaitReason
@ stub TestUserForAdmin
@ stub WinEnumerateDevices