SRCDIR = @srcdir@\r
VPATH = @srcdir@\r
MODULE = setupapi.dll\r
+IMPORTLIB = libsetupapi.$(IMPLIBEXT)\r
IMPORTS = user32 version advapi32 rpcrt4 kernel32 ntdll\r
DELAYIMPORTS = shell32\r
EXTRALIBS = $(LIBUNICODE)\r
params.SecurityDescriptor = NULL;\r
\r
if (!hlist) hlist = hinf;\r
+ if (!hinf) hinf = hlist;\r
if (!SetupFindFirstLineW( hlist, section, NULL, &context )) return FALSE;\r
if (!(params.TargetDirectory = get_destination_dir( hinf, section ))) return FALSE;\r
do\r
@ stub SetupCopyErrorA\r
@ stub SetupCopyErrorW\r
@ stdcall SetupCopyOEMInfA(str str long long ptr long ptr ptr)\r
-@ stub SetupCopyOEMInfW\r
+@ stdcall SetupCopyOEMInfW(wstr wstr long long ptr long ptr ptr)\r
@ stdcall SetupCreateDiskSpaceListA(ptr long long)\r
@ stdcall SetupCreateDiskSpaceListW(ptr long long)\r
@ stub SetupDecompressOrCopyFileA\r
-1 stub WEP\r
+#1 stub WEP\r
2 pascal -ret16 IpOpen(str ptr) IpOpen16\r
3 stub IpOpenAppend #(str word)\r
4 pascal -ret16 IpClose(word) IpClose16\r
DWORD destnamesize, PDWORD required,\r
PSTR *destinfnamecomponent)\r
{\r
- FIXME("stub: source %s location %s ...\n",sourceinffile, sourcemedialoc);\r
+ FIXME("stub: source %s location %s ...\n", debugstr_a(sourceinffile),\r
+ debugstr_a(sourcemedialoc));\r
+ return FALSE;\r
+}\r
+\r
+/***********************************************************************\r
+ * SetupCopyOEMInfW (SETUPAPI.@)\r
+ */\r
+BOOL WINAPI SetupCopyOEMInfW(PCWSTR sourceinffile, PCWSTR sourcemedialoc,\r
+ DWORD mediatype, DWORD copystyle, PWSTR destinfname,\r
+ DWORD destnamesize, PDWORD required,\r
+ PWSTR *destinfnamecomponent)\r
+{\r
+ FIXME("stub: source %s location %s ...\n", debugstr_w(sourceinffile),\r
+ debugstr_w(sourcemedialoc));\r
return FALSE;\r
}\r
\r
VCP_MsgRef = lparamMsgRef;\r
\r
/* load SETUPAPI needed for dialog resources etc. */\r
- SETUPAPI_hInstance = LoadLibraryA("setupapi.dll");\r
+ SETUPAPI_hInstance = GetModuleHandleA("setupapi.dll");\r
if (!SETUPAPI_hInstance)\r
{\r
ERR("Could not load sibling setupapi.dll\n");\r
cbres = VCP_Callback(&vcp_status, VCPM_VSTATCLOSEEND, 0, 0, VCP_MsgRef);\r
TRACE("#6\n");\r
VCP_Proc = NULL;\r
- FreeLibrary(SETUPAPI_hInstance);\r
VCP_opened = FALSE;\r
return OK;\r
}\r