48 "Signature=\"$Chicago$\"\n"
50 "[SourceDisksNames]\n"
51 "2 = %SrcDiskName%, LANCOM\\LANtools\\lanconf.cab\n"
52 "[SourceDisksFiles]\n"
55 "DefaultDestDir = 24, %DefaultDest%\n"
58 "DefaultDest = LANCOM\n"
59 "SrcDiskName = \"LANCOM Software CD\"\n";
63 "sp1qfe\\bitsinst.exe=250B3702C7CCD7C2F9E4DAA1555C933E,000600060A28062C,27136,SP1QFE\n"
64 "sp1qfe\\bitsprx2.dll=4EBEA67F4BB4EB402E725CA7CA2857AE,000600060A280621,7680,SP1QFE\n"
65 "sp1qfe\\bitsprx3.dll=C788A1D9330DA011EF25E95D3BC7BDE5,000600060A280621,7168,SP1QFE\n"
66 "sp1qfe\\qmgr.dll=696AC82FB290A03F205901442E0E9589,000600060A280621,361984,SP1QFE\n"
67 "sp1qfe\\qmgrprxy.dll=8B5848144829E1BC985EA4C3D8CA7E3F,000600060A280621,17408,SP1QFE\n"
68 "sp1qfe\\winhttp.dll=3EC6F518114606CA59D4160322077437,000500010A280615,331776,SP1QFE\n"
69 "sp1qfe\\xpob2res.dll=DB83156B9F496F20D1EA70E4ABEC0166,000500010A280622,158720,SP1QFE\n";
73 "Signature = \"$Windows NT$\"\n"
75 "CopyAlways.Windir.files = 10\n"
76 "[CopyAlways.Windir.Files]\n"
77 "WindowsCodecs.dll\n";
81 "Signature = \"$Windows NT$\"\n"
82 "[CopyAlways.System32.Files]\n"
83 "WindowsCodecs.dll\n";
87 "Signature = \"$Windows NT$\"\n"
89 "DefaultDestDir = 11\n"
90 "CopyAlways.Windir.files = 10\n"
91 "[CopyAlways.Windir.Files]\n"
92 "WindowsCodecs.dll\n";
96 "Signature = \"$Windows NT$\"\n"
98 "DefaultDestDir = 10\n"
99 "[CopyAlways.Windir.Files]\n"
100 "WindowsCodecs.dll\n";
105 DWORD dwNumberOfBytesWritten;
167 ok(
ret ==
FALSE,
"Expected SetupGetInfInformation to fail\n");
174 "Expected ERROR_INVALID_HANDLE, got %d\n",
GetLastError());
175 ok(
size == 0xdeadbeef,
"Expected size to remain unchanged\n");
186 ok(
ret ==
FALSE,
"Expected SetupGetInfInformation to fail\n");
188 "Expected ERROR_INVALID_PARAMETER, got %d\n",
GetLastError());
189 ok(
size == 0xdeadbeef,
"Expected size to remain unchanged\n");
198 ok(
ret ==
FALSE,
"Expected SetupGetInfInformation to fail\n");
200 "Expected ERROR_INVALID_PARAMETER, got %d\n",
GetLastError());
201 ok(
size == 0xdeadbeef,
"Expected size to remain unchanged\n");
207 ok(
ret ==
FALSE,
"Expected SetupGetInfInformation to fail\n");
209 "Expected ERROR_FILE_NOT_FOUND, got %d\n",
GetLastError());
210 ok(
size == 0xdeadbeef,
"Expected size to remain unchanged\n");
215 ok(
ret ==
TRUE,
"Expected SetupGetInfInformation to succeed\n");
216 ok(
size != 0xdeadbeef,
"Expected a valid size on return\n");
221 ok(
ret ==
FALSE,
"Expected SetupGetInfInformation to fail\n");
223 "Expected ERROR_INVALID_PARAMETER, got %d\n",
GetLastError());
227 ok(
ret ==
TRUE,
"Expected SetupGetInfInformation to succeed\n");
231 ok(
ret ==
TRUE,
"Expected SetupGetInfInformation to succeed\n");
233 ok(
ret ==
TRUE,
"Expected SetupGetInfInformation to succeed\n");
235 ok(
ret ==
FALSE,
"Expected SetupGetInfInformation to fail\n");
242 ok(
ret ==
FALSE,
"Expected SetupGetInfInformation to fail\n");
244 "Expected ERROR_INSUFFICIENT_BUFFER, got %d\n",
GetLastError());
248 ok(
ret ==
TRUE,
"Expected SetupGetInfInformation to succeed\n");
257 ok(
ret ==
TRUE,
"Expected SetupGetInfInformation to succeed\n");
267 skip(
"need admin rights\n");
300 ok(
ret ==
TRUE,
"Expected SetupGetInfInformation to succeed\n");
331 ok(
ret,
"SetupGetSourceFileLocation failed\n");
333 ok(required == 1,
"unexpected required size: %d\n", required);
352 ok(!
ret,
"SetupGetSourceFileLocation succeeded\n");
377 ok(
ret,
"SetupGetSourceInfoA failed\n");
379 ok(required == 1,
"unexpected required size: %d\n", required);
386 ok(
ret,
"SetupGetSourceInfoA failed\n");
388 ok(required == 28,
"unexpected required size: %d\n", required);
395 ok(
ret,
"SetupGetSourceInfoA failed\n");
397 ok(required == 19,
"unexpected required size: %d\n", required);
423 ctx.CurrentInf = hinf;
430 ok(
ret,
"SetupGetTargetPathA failed\n");
431 ok(required == 10,
"unexpected required size: %d\n", required);
451 ok(
ret,
"SetupGetTargetPathA failed\n");
455 ok(required ==
lstrlenA(destfile) + 1,
"unexpected required size: %d\n", required);
469 ok(
ret,
"SetupGetTargetPathA failed\n");
473 ok(required ==
lstrlenA(destfile) + 1,
"unexpected required size: %d\n", required);
487 ok(
ret,
"SetupGetTargetPathA failed\n");
491 ok(required ==
lstrlenA(destfile) + 1,
"unexpected required size: %d\n", required);
505 ok(
ret,
"SetupGetTargetPathA failed\n");
509 ok(required ==
lstrlenA(destfile) + 1,
"unexpected required size: %d\n", required);
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
#define CreateFileA(a, b, c, d, e, f, g)
#define HeapFree(x, y, z)
#define ERROR_INVALID_HANDLE
#define FILE_ATTRIBUTE_NORMAL
#define ERROR_ACCESS_DENIED
#define ERROR_INVALID_NAME
BOOL WINAPI DeleteFileA(IN LPCSTR lpFileName)
BOOL WINAPI WriteFile(IN HANDLE hFile, IN LPCVOID lpBuffer, IN DWORD nNumberOfBytesToWrite OPTIONAL, OUT LPDWORD lpNumberOfBytesWritten, IN LPOVERLAPPED lpOverlapped OPTIONAL)
DWORD WINAPI GetCurrentDirectoryA(IN DWORD nBufferLength, OUT LPSTR lpBuffer)
UINT WINAPI GetWindowsDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
UINT WINAPI GetSystemDirectoryA(OUT LPSTR lpBuffer, IN UINT uSize)
int WINAPI lstrcmpA(LPCSTR str1, LPCSTR str2)
int WINAPI lstrcmpiA(LPCSTR str1, LPCSTR str2)
HINF WINAPI SetupOpenInfFileA(PCSTR name, PCSTR class, DWORD style, UINT *error)
BOOL WINAPI SetupGetInfInformationA(LPCVOID InfSpec, DWORD SearchControl, PSP_INF_INFORMATION ReturnBuffer, DWORD ReturnBufferSize, PDWORD RequiredSize)
BOOL WINAPI SetupQueryInfFileInformationA(PSP_INF_INFORMATION InfInformation, UINT InfIndex, PSTR ReturnBuffer, DWORD ReturnBufferSize, PDWORD RequiredSize)
BOOL WINAPI SetupGetTargetPathA(HINF hinf, PINFCONTEXT context, PCSTR section, PSTR buffer, DWORD buffer_size, PDWORD required_size)
BOOL WINAPI SetupGetSourceFileLocationA(HINF hinf, PINFCONTEXT context, PCSTR filename, PUINT source_id, PSTR buffer, DWORD buffer_size, PDWORD required_size)
BOOL WINAPI SetupGetSourceInfoA(HINF hinf, UINT source_id, UINT info, PSTR buffer, DWORD buffer_size, LPDWORD required_size)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
LPSTR WINAPI lstrcpyA(LPSTR lpString1, LPCSTR lpString2)
LPSTR WINAPI lstrcatA(LPSTR lpString1, LPCSTR lpString2)
int WINAPI lstrlenA(LPCSTR lpString)
#define ERROR_FILE_NOT_FOUND
static void create_inf_file(void)
static void get_directories(void)
static CHAR CURR_DIR[MAX_PATH]
static PSP_INF_INFORMATION alloc_inf_info(LPCSTR filename, DWORD search, PDWORD size)
static void test_SetupGetInfInformation(void)
static const char inf_data2[]
static void test_SetupGetTargetPath(void)
static const char inf_data5[]
static void test_SetupGetSourceInfo(void)
static CHAR WIN_DIR[MAX_PATH]
static BOOL check_info_filename(PSP_INF_INFORMATION info, LPSTR test)
static void test_SetupGetSourceFileLocation(void)
static const char inf_data4[]
static const char inf_data3[]
static const char inf_data6[]
static const char inf_data1[]
static short search(int val, const short *table, int size)
#define SRCINFO_DESCRIPTION
#define INFINFO_INF_NAME_IS_ABSOLUTE
#define INFINFO_DEFAULT_SEARCH
#define ERROR_WRONG_INF_STYLE
#define INFINFO_REVERSE_DEFAULT_SEARCH
#define ERROR_GENERAL_SYNTAX
#define INFINFO_INF_SPEC_IS_HINF
VOID WINAPI SetupCloseInfFile(IN HINF InfHandle)
DWORD WINAPI GetLastError(void)
#define ERROR_PATH_NOT_FOUND
#define ERROR_BAD_PATHNAME