1999-01-03 13:48:29 +01:00
|
|
|
/*
|
|
|
|
* Win32 advapi functions
|
|
|
|
*
|
|
|
|
* Copyright 1995 Sven Verdoolaege
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
|
|
|
|
2001-11-20 21:26:54 +01:00
|
|
|
#include <errno.h>
|
1999-06-12 16:55:11 +02:00
|
|
|
#include <stdio.h>
|
1999-02-19 16:42:11 +01:00
|
|
|
#include <string.h>
|
2003-08-22 07:05:56 +02:00
|
|
|
#include <stdarg.h>
|
1999-02-17 14:51:06 +01:00
|
|
|
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
2003-08-22 07:05:56 +02:00
|
|
|
#include "winbase.h"
|
2000-11-28 23:40:56 +01:00
|
|
|
#include "winnls.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winreg.h"
|
2005-05-31 15:24:44 +02:00
|
|
|
#include "winternl.h"
|
1999-01-03 13:48:29 +01:00
|
|
|
#include "winerror.h"
|
2007-10-24 18:57:54 +02:00
|
|
|
#include "wincred.h"
|
2015-08-03 11:26:33 +02:00
|
|
|
#include "wct.h"
|
1999-01-03 13:48:29 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1999-02-17 14:51:06 +01:00
|
|
|
|
2013-11-13 15:32:55 +01:00
|
|
|
#include "advapi32_misc.h"
|
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(advapi);
|
1999-01-03 13:48:29 +01:00
|
|
|
|
1999-01-28 14:46:25 +01:00
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* GetUserNameA [ADVAPI32.@]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2020-04-16 15:15:21 +02:00
|
|
|
BOOL WINAPI GetUserNameA( LPSTR name, LPDWORD size )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2020-04-16 15:15:21 +02:00
|
|
|
DWORD len = GetEnvironmentVariableA( "WINEUSERNAME", name, *size );
|
2004-05-07 06:01:28 +02:00
|
|
|
BOOL ret;
|
2011-06-01 14:13:57 +02:00
|
|
|
|
2020-04-16 15:15:21 +02:00
|
|
|
if (!len) return FALSE;
|
|
|
|
if ((ret = (len < *size))) len++;
|
2020-05-14 23:12:23 +02:00
|
|
|
else SetLastError( ERROR_INSUFFICIENT_BUFFER );
|
2020-04-16 15:15:21 +02:00
|
|
|
*size = len;
|
2004-05-07 06:01:28 +02:00
|
|
|
return ret;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
|
|
|
|
1999-01-28 14:46:25 +01:00
|
|
|
/******************************************************************************
|
2001-02-15 00:11:17 +01:00
|
|
|
* GetUserNameW [ADVAPI32.@]
|
1999-01-03 13:48:29 +01:00
|
|
|
*/
|
2020-04-16 15:15:21 +02:00
|
|
|
BOOL WINAPI GetUserNameW( LPWSTR name, LPDWORD size )
|
1999-01-03 13:48:29 +01:00
|
|
|
{
|
2020-09-10 15:20:10 +02:00
|
|
|
DWORD len = GetEnvironmentVariableW( L"WINEUSERNAME", name, *size );
|
2020-04-16 15:15:21 +02:00
|
|
|
BOOL ret;
|
2009-06-03 09:35:49 +02:00
|
|
|
|
2020-04-16 15:15:21 +02:00
|
|
|
if (!len) return FALSE;
|
|
|
|
if ((ret = (len < *size))) len++;
|
2020-05-14 23:12:23 +02:00
|
|
|
else SetLastError( ERROR_INSUFFICIENT_BUFFER );
|
2020-04-16 15:15:21 +02:00
|
|
|
*size = len;
|
|
|
|
return ret;
|
1999-01-03 13:48:29 +01:00
|
|
|
}
|
2002-04-19 02:04:27 +02:00
|
|
|
|
2002-06-15 01:32:46 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* GetCurrentHwProfileA [ADVAPI32.@]
|
2003-03-18 19:35:48 +01:00
|
|
|
*
|
|
|
|
* Get the current hardware profile.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* pInfo [O] Destination for hardware profile information.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: TRUE. pInfo is updated with the hardware profile details.
|
|
|
|
* Failure: FALSE.
|
2002-06-15 01:32:46 +02:00
|
|
|
*/
|
2003-03-18 19:35:48 +01:00
|
|
|
BOOL WINAPI GetCurrentHwProfileA(LPHW_PROFILE_INFOA pInfo)
|
2002-06-15 01:32:46 +02:00
|
|
|
{
|
2003-03-18 19:35:48 +01:00
|
|
|
FIXME("(%p) semi-stub\n", pInfo);
|
|
|
|
pInfo->dwDockInfo = DOCKINFO_DOCKED;
|
2007-05-13 00:09:58 +02:00
|
|
|
strcpy(pInfo->szHwProfileGuid,"{12340001-1234-1234-1234-123456789012}");
|
2003-03-18 19:35:48 +01:00
|
|
|
strcpy(pInfo->szHwProfileName,"Wine Profile");
|
2014-01-29 22:25:44 +01:00
|
|
|
return TRUE;
|
2002-06-15 01:32:46 +02:00
|
|
|
}
|
|
|
|
|
2004-12-14 16:27:05 +01:00
|
|
|
/******************************************************************************
|
|
|
|
* GetCurrentHwProfileW [ADVAPI32.@]
|
|
|
|
*
|
|
|
|
* See GetCurrentHwProfileA.
|
|
|
|
*/
|
2004-12-01 16:27:59 +01:00
|
|
|
BOOL WINAPI GetCurrentHwProfileW(LPHW_PROFILE_INFOW pInfo)
|
|
|
|
{
|
|
|
|
FIXME("(%p)\n", pInfo);
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
2005-05-31 15:24:44 +02:00
|
|
|
|
|
|
|
/**************************************************************************
|
|
|
|
* IsTextUnicode (ADVAPI32.@)
|
|
|
|
*
|
|
|
|
* Attempt to guess whether a text buffer is Unicode.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* buf [I] Text buffer to test
|
|
|
|
* len [I] Length of buf
|
|
|
|
* flags [O] Destination for test results
|
2005-11-04 12:43:27 +01:00
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* TRUE if the buffer is likely Unicode, FALSE otherwise.
|
2005-05-31 15:24:44 +02:00
|
|
|
*/
|
|
|
|
BOOL WINAPI IsTextUnicode( LPCVOID buf, INT len, LPINT flags )
|
|
|
|
{
|
|
|
|
return RtlIsTextUnicode( buf, len, flags );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-04-19 02:04:27 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* AbortSystemShutdownA [ADVAPI32.@]
|
|
|
|
*
|
2003-03-18 19:35:48 +01:00
|
|
|
* Stop a system shutdown if one is in progress.
|
|
|
|
*
|
2002-04-19 02:04:27 +02:00
|
|
|
* PARAMS
|
2003-03-18 19:35:48 +01:00
|
|
|
* lpMachineName [I] Name of machine to not shutdown.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: TRUE.
|
|
|
|
* Failure: FALSE.
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* The Wine implementation of this function is a harmless stub.
|
2002-04-19 02:04:27 +02:00
|
|
|
*/
|
|
|
|
BOOL WINAPI AbortSystemShutdownA( LPSTR lpMachineName )
|
|
|
|
{
|
2016-05-22 15:39:17 +02:00
|
|
|
TRACE("stub %s (harmless)\n", debugstr_a(lpMachineName));
|
2002-04-19 02:04:27 +02:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* AbortSystemShutdownW [ADVAPI32.@]
|
|
|
|
*
|
2003-03-18 19:35:48 +01:00
|
|
|
* See AbortSystemShutdownA.
|
2002-04-19 02:04:27 +02:00
|
|
|
*/
|
2003-09-06 01:08:26 +02:00
|
|
|
BOOL WINAPI AbortSystemShutdownW( LPWSTR lpMachineName )
|
2002-04-19 02:04:27 +02:00
|
|
|
{
|
|
|
|
TRACE("stub %s (harmless)\n", debugstr_w(lpMachineName));
|
|
|
|
return TRUE;
|
|
|
|
}
|
2003-08-12 20:53:14 +02:00
|
|
|
|
|
|
|
/******************************************************************************
|
|
|
|
* InitiateSystemShutdownExA [ADVAPI32.@]
|
2004-07-13 01:32:10 +02:00
|
|
|
*
|
|
|
|
* Initiate a shutdown or optionally restart the computer.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpMachineName [I] Network name of machine to shutdown.
|
|
|
|
* lpMessage [I] Message displayed in shutdown dialog box.
|
|
|
|
* dwTimeout [I] Number of seconds dialog is displayed before shutdown.
|
|
|
|
* bForceAppsClosed [I] If TRUE, apps close without saving, else dialog is
|
|
|
|
* displayed requesting user to close apps.
|
|
|
|
* bRebootAfterShutdown [I] If TRUE, system reboots after restart, else the
|
|
|
|
* system flushes all caches to disk and clears
|
|
|
|
* the screen
|
|
|
|
* dwReason [I] Reason for shutting down. Must be a system shutdown reason
|
|
|
|
* code.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: TRUE
|
|
|
|
* Failure: FALSE
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* if lpMachineName is NULL, the local computer is shutdown.
|
2003-08-12 20:53:14 +02:00
|
|
|
*/
|
|
|
|
BOOL WINAPI InitiateSystemShutdownExA( LPSTR lpMachineName, LPSTR lpMessage,
|
|
|
|
DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown,
|
|
|
|
DWORD dwReason)
|
|
|
|
{
|
2022-02-07 23:10:27 +01:00
|
|
|
FIXME("%s %s %ld %d %d %#lx\n", debugstr_a(lpMachineName),
|
2003-08-12 20:53:14 +02:00
|
|
|
debugstr_a(lpMessage), dwTimeout, bForceAppsClosed,
|
|
|
|
bRebootAfterShutdown, dwReason);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************************
|
2004-07-13 01:32:10 +02:00
|
|
|
* InitiateSystemShutdownExW [ADVAPI32.@]
|
|
|
|
*
|
2005-11-04 12:43:27 +01:00
|
|
|
* See InitiateSystemShutdownExA.
|
2003-08-12 20:53:14 +02:00
|
|
|
*/
|
|
|
|
BOOL WINAPI InitiateSystemShutdownExW( LPWSTR lpMachineName, LPWSTR lpMessage,
|
|
|
|
DWORD dwTimeout, BOOL bForceAppsClosed, BOOL bRebootAfterShutdown,
|
|
|
|
DWORD dwReason)
|
|
|
|
{
|
2022-02-07 23:10:27 +01:00
|
|
|
FIXME("%s %s %ld %d %d %#lx\n", debugstr_w(lpMachineName),
|
2003-08-12 20:53:14 +02:00
|
|
|
debugstr_w(lpMessage), dwTimeout, bForceAppsClosed,
|
|
|
|
bRebootAfterShutdown, dwReason);
|
|
|
|
return TRUE;
|
|
|
|
}
|
2004-03-22 22:31:26 +01:00
|
|
|
|
Stub implementations for GetKernelObjectSecurity,
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 18:12:51 +01:00
|
|
|
BOOL WINAPI InitiateSystemShutdownA( LPSTR lpMachineName, LPSTR lpMessage, DWORD dwTimeout,
|
|
|
|
BOOL bForceAppsClosed, BOOL bRebootAfterShutdown )
|
|
|
|
{
|
|
|
|
return InitiateSystemShutdownExA( lpMachineName, lpMessage, dwTimeout,
|
|
|
|
bForceAppsClosed, bRebootAfterShutdown,
|
|
|
|
SHTDN_REASON_MAJOR_LEGACY_API );
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI InitiateSystemShutdownW( LPWSTR lpMachineName, LPWSTR lpMessage, DWORD dwTimeout,
|
|
|
|
BOOL bForceAppsClosed, BOOL bRebootAfterShutdown )
|
|
|
|
{
|
|
|
|
return InitiateSystemShutdownExW( lpMachineName, lpMessage, dwTimeout,
|
|
|
|
bForceAppsClosed, bRebootAfterShutdown,
|
|
|
|
SHTDN_REASON_MAJOR_LEGACY_API );
|
|
|
|
}
|
|
|
|
|
2019-05-06 19:46:29 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* InitiateShutdownA [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
DWORD WINAPI InitiateShutdownA(char *name, char *message, DWORD seconds, DWORD flags, DWORD reason)
|
|
|
|
{
|
2022-02-07 23:10:27 +01:00
|
|
|
FIXME("%s, %s, %ld, %ld, %ld stub\n", debugstr_a(name), debugstr_a(message), seconds, flags, reason);
|
2019-05-06 19:46:29 +02:00
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* InitiateShutdownW [ADVAPI32.@]
|
|
|
|
*/
|
|
|
|
DWORD WINAPI InitiateShutdownW(WCHAR *name, WCHAR *message, DWORD seconds, DWORD flags, DWORD reason)
|
|
|
|
{
|
2022-02-07 23:10:27 +01:00
|
|
|
FIXME("%s, %s, %ld, %ld, %ld stub\n", debugstr_w(name), debugstr_w(message), seconds, flags, reason);
|
2019-05-06 19:46:29 +02:00
|
|
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
}
|
|
|
|
|
Stub implementations for GetKernelObjectSecurity,
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 18:12:51 +01:00
|
|
|
BOOL WINAPI LogonUserA( LPCSTR lpszUsername, LPCSTR lpszDomain, LPCSTR lpszPassword,
|
|
|
|
DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken )
|
|
|
|
{
|
2013-11-13 15:32:55 +01:00
|
|
|
WCHAR *usernameW = NULL, *domainW = NULL, *passwordW = NULL;
|
|
|
|
BOOL ret = FALSE;
|
|
|
|
|
2022-02-07 23:10:27 +01:00
|
|
|
TRACE("%s %s %p 0x%08lx 0x%08lx %p\n", debugstr_a(lpszUsername),
|
Stub implementations for GetKernelObjectSecurity,
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 18:12:51 +01:00
|
|
|
debugstr_a(lpszDomain), lpszPassword, dwLogonType, dwLogonProvider, phToken);
|
|
|
|
|
2013-11-13 15:32:55 +01:00
|
|
|
if (lpszUsername && !(usernameW = strdupAW( lpszUsername ))) return FALSE;
|
|
|
|
if (lpszDomain && !(domainW = strdupAW( lpszUsername ))) goto done;
|
|
|
|
if (lpszPassword && !(passwordW = strdupAW( lpszPassword ))) goto done;
|
|
|
|
|
|
|
|
ret = LogonUserW( usernameW, domainW, passwordW, dwLogonType, dwLogonProvider, phToken );
|
|
|
|
|
|
|
|
done:
|
|
|
|
heap_free( usernameW );
|
|
|
|
heap_free( domainW );
|
|
|
|
heap_free( passwordW );
|
|
|
|
return ret;
|
Stub implementations for GetKernelObjectSecurity,
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 18:12:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
BOOL WINAPI LogonUserW( LPCWSTR lpszUsername, LPCWSTR lpszDomain, LPCWSTR lpszPassword,
|
|
|
|
DWORD dwLogonType, DWORD dwLogonProvider, PHANDLE phToken )
|
|
|
|
{
|
2022-02-07 23:10:27 +01:00
|
|
|
FIXME("%s %s %p 0x%08lx 0x%08lx %p - stub\n", debugstr_w(lpszUsername),
|
Stub implementations for GetKernelObjectSecurity,
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 18:12:51 +01:00
|
|
|
debugstr_w(lpszDomain), lpszPassword, dwLogonType, dwLogonProvider, phToken);
|
|
|
|
|
2013-11-13 15:31:54 +01:00
|
|
|
*phToken = (HANDLE *)0xdeadbeef;
|
Stub implementations for GetKernelObjectSecurity,
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 18:12:51 +01:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2005-11-04 12:15:18 +01:00
|
|
|
typedef UINT (WINAPI *fnMsiProvideComponentFromDescriptor)(LPCWSTR,LPWSTR,DWORD*,DWORD*);
|
|
|
|
|
|
|
|
DWORD WINAPI CommandLineFromMsiDescriptor( WCHAR *szDescriptor,
|
|
|
|
WCHAR *szCommandLine, DWORD *pcchCommandLine )
|
2004-03-22 22:31:26 +01:00
|
|
|
{
|
2005-11-04 12:15:18 +01:00
|
|
|
fnMsiProvideComponentFromDescriptor mpcfd;
|
|
|
|
HMODULE hmsi;
|
|
|
|
UINT r = ERROR_CALL_NOT_IMPLEMENTED;
|
|
|
|
|
|
|
|
TRACE("%s %p %p\n", debugstr_w(szDescriptor), szCommandLine, pcchCommandLine);
|
|
|
|
|
2020-09-10 15:20:10 +02:00
|
|
|
hmsi = LoadLibraryW( L"msi" );
|
2005-11-04 12:15:18 +01:00
|
|
|
if (!hmsi)
|
|
|
|
return r;
|
2008-04-29 22:47:41 +02:00
|
|
|
mpcfd = (fnMsiProvideComponentFromDescriptor)GetProcAddress( hmsi,
|
|
|
|
"MsiProvideComponentFromDescriptorW" );
|
2005-11-04 12:15:18 +01:00
|
|
|
if (mpcfd)
|
|
|
|
r = mpcfd( szDescriptor, szCommandLine, pcchCommandLine, NULL );
|
|
|
|
FreeLibrary( hmsi );
|
|
|
|
return r;
|
2004-03-22 22:31:26 +01:00
|
|
|
}
|
2015-08-03 11:26:33 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* RegisterWaitChainCOMCallback (ole32.@)
|
|
|
|
*/
|
|
|
|
void WINAPI RegisterWaitChainCOMCallback(PCOGETCALLSTATE call_state_cb,
|
|
|
|
PCOGETACTIVATIONSTATE activation_state_cb)
|
|
|
|
{
|
|
|
|
FIXME("%p, %p\n", call_state_cb, activation_state_cb);
|
|
|
|
}
|