2004-08-30 04:49:03 +00:00
|
|
|
/*
|
2006-09-02 06:24:20 +00:00
|
|
|
* Advpack private header
|
|
|
|
*
|
|
|
|
* Copyright 2006 James Hawkins
|
2004-08-30 04:49:03 +00: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-09-02 06:24:20 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-08-30 04:49:03 +00:00
|
|
|
*/
|
|
|
|
|
2006-09-02 06:24:20 +00:00
|
|
|
#ifndef __ADVPACK_PRIVATE_H
|
|
|
|
#define __ADVPACK_PRIVATE_H
|
2004-08-30 04:49:03 +00:00
|
|
|
|
2018-03-09 11:41:26 +00:00
|
|
|
#include "wine/heap.h"
|
2013-12-23 14:20:15 +00:00
|
|
|
|
2012-01-23 12:26:32 +00:00
|
|
|
HRESULT do_ocx_reg(HMODULE hocx, BOOL do_reg, const WCHAR *flags, const WCHAR *param) DECLSPEC_HIDDEN;
|
2013-09-11 00:07:58 +00:00
|
|
|
LPWSTR get_parameter(LPWSTR *params, WCHAR separator, BOOL quoted) DECLSPEC_HIDDEN;
|
2012-01-23 12:26:32 +00:00
|
|
|
void set_ldids(HINF hInf, LPCWSTR pszInstallSection, LPCWSTR pszWorkingDir) DECLSPEC_HIDDEN;
|
2004-08-30 04:49:03 +00:00
|
|
|
|
2012-01-23 12:26:32 +00:00
|
|
|
HRESULT launch_exe(LPCWSTR cmd, LPCWSTR dir, HANDLE *phEXE) DECLSPEC_HIDDEN;
|
2004-08-30 04:49:03 +00:00
|
|
|
|
2012-12-10 14:28:25 +00:00
|
|
|
static inline char *heap_strdupWtoA(const WCHAR *str)
|
|
|
|
{
|
|
|
|
char *ret = NULL;
|
|
|
|
|
|
|
|
if(str) {
|
|
|
|
size_t size = WideCharToMultiByte(CP_ACP, 0, str, -1, NULL, 0, NULL, NULL);
|
|
|
|
ret = heap_alloc(size);
|
|
|
|
if(ret)
|
|
|
|
WideCharToMultiByte(CP_ACP, 0, str, -1, ret, size, NULL, NULL);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2006-09-02 06:24:20 +00:00
|
|
|
#endif /* __ADVPACK_PRIVATE_H */
|