4 * Copyright 2000 James Hatheway
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #include "setupapi_private.h"
23 WINE_DEFAULT_DEBUG_CHANNEL(setupapi
);
25 /***********************************************************************
26 * TPWriteProfileString (SETUPX.62)
28 BOOL WINAPI
TPWriteProfileString16( LPCSTR section
, LPCSTR entry
, LPCSTR string
)
30 FIXME( "%s %s %s: stub\n", debugstr_a(section
), debugstr_a(entry
), debugstr_a(string
) );
35 /***********************************************************************
36 * suErrorToIds (SETUPX.61)
38 DWORD WINAPI
suErrorToIds16( WORD w1
, WORD w2
)
40 FIXME( "%x %x: stub\n", w1
, w2
);
44 /***********************************************************************
45 * SetupDiGetDeviceInfoListDetailA (SETUPAPI.@)
47 BOOL WINAPI
SetupDiGetDeviceInfoListDetailA(HDEVINFO devinfo
, PSP_DEVINFO_LIST_DETAIL_DATA_A devinfo_data
)
53 /***********************************************************************
54 * SetupDiGetDeviceInfoListDetailW (SETUPAPI.@)
56 BOOL WINAPI
SetupDiGetDeviceInfoListDetailW(HDEVINFO devinfo
, PSP_DEVINFO_LIST_DETAIL_DATA_W devinfo_data
)
62 /***********************************************************************
63 * SetupCopyOEMInfA (SETUPAPI.@)
65 BOOL WINAPI
SetupCopyOEMInfA(PCSTR sourceinffile
, PCSTR sourcemedialoc
,
66 DWORD mediatype
, DWORD copystyle
, PSTR destinfname
,
67 DWORD destnamesize
, PDWORD required
,
68 PSTR
*destinfnamecomponent
)
70 FIXME("stub: source %s location %s ...\n", debugstr_a(sourceinffile
),
71 debugstr_a(sourcemedialoc
));
75 /***********************************************************************
76 * SetupCopyOEMInfW (SETUPAPI.@)
78 BOOL WINAPI
SetupCopyOEMInfW(PCWSTR sourceinffile
, PCWSTR sourcemedialoc
,
79 DWORD mediatype
, DWORD copystyle
, PWSTR destinfname
,
80 DWORD destnamesize
, PDWORD required
,
81 PWSTR
*destinfnamecomponent
)
83 FIXME("stub: source %s location %s ...\n", debugstr_w(sourceinffile
),
84 debugstr_w(sourcemedialoc
));
89 /***********************************************************************
90 * SetupGetInfInformationA (SETUPAPI.@)
92 BOOL WINAPI
SetupGetInfInformationA( LPCVOID InfSpec
, DWORD SearchControl
,
93 PSP_INF_INFORMATION ReturnBuffer
,
94 DWORD ReturnBufferSize
, PDWORD RequiredSize
)
96 FIXME("(%p, %ld, %p, %ld, %p) Stub!\n",
97 InfSpec
, SearchControl
, ReturnBuffer
, ReturnBufferSize
, RequiredSize
);
101 /***********************************************************************
102 * SetupInitializeFileLogW(SETUPAPI.@)
104 HANDLE WINAPI
SetupInitializeFileLogW(LPCWSTR LogFileName
, DWORD Flags
)
106 FIXME("Stub %s, 0x%lx\n",debugstr_w(LogFileName
),Flags
);
107 return INVALID_HANDLE_VALUE
;
110 /***********************************************************************
111 * SetupInitializeFileLogA(SETUPAPI.@)
113 HANDLE WINAPI
SetupInitializeFileLogA(LPCSTR LogFileName
, DWORD Flags
)
115 FIXME("Stub %s, 0x%lx\n",debugstr_a(LogFileName
),Flags
);
116 return INVALID_HANDLE_VALUE
;
119 /***********************************************************************
120 * SetupPromptReboot(SETUPAPI.@)
122 INT WINAPI
SetupPromptReboot(HSPFILEQ FileQueue
, HWND Owner
, BOOL ScanOnly
)
126 TCHAR RebootText
[RC_STRING_MAX_SIZE
];
127 TCHAR RebootCaption
[RC_STRING_MAX_SIZE
];
130 TRACE("%p %p %d\n", FileQueue
, Owner
, ScanOnly
);
132 if (ScanOnly
&& !FileQueue
)
134 SetLastError(ERROR_INVALID_PARAMETER
);
140 FIXME("Case 'FileQueue != NULL' not implemented\n");
141 /* In some cases, do 'rc |= SPFILEQ_FILE_IN_USE' */
147 /* We need to ask the question to the user. */
148 rc
|= SPFILEQ_REBOOT_RECOMMENDED
;
149 if (0 == LoadString(hInstance
, IDS_QUERY_REBOOT_TEXT
, RebootText
, RC_STRING_MAX_SIZE
))
151 if (0 == LoadString(hInstance
, IDS_QUERY_REBOOT_CAPTION
, RebootCaption
, RC_STRING_MAX_SIZE
))
153 ret
= MessageBox(Owner
, RebootText
, RebootCaption
, MB_YESNO
| MB_DEFBUTTON1
);
158 if (ExitWindowsEx(EWX_REBOOT
, 0))
159 return rc
| SPFILEQ_REBOOT_IN_PROGRESS
;
164 FIXME("Stub %p %p %d\n", FileQueue
, Owner
, ScanOnly
);
165 SetLastError(ERROR_GEN_FAILURE
);
170 /***********************************************************************
171 * SetupTerminateFileLog(SETUPAPI.@)
173 BOOL WINAPI
SetupTerminateFileLog(HANDLE FileLogHandle
)
175 FIXME ("Stub %p\n",FileLogHandle
);