SetupPromptForDisk |
Declare Function Api_SetupPromptForDisk& Lib "setupapi" Alias "SetupPromptForDiskA" (ByVal hParent&, ByVal dTitle$, ByVal dName$, ByVal PathToSource$, ByVal fSought$, ByVal tFile$, ByVal dPromptStyle&, ByVal pBuff$, ByVal pBuffSize&, ByRef pRequiredSize&) |
Declare Function SetupPromptForDisk Lib "setupapi" Alias "SetupPromptForDiskA" (ByVal hwndParent As Long, ByVal DialogTitle As String, ByVal DiskName As String, ByVal PathToSource As String, ByVal FileSought As String, ByVal TagFile As String, ByVal DiskPromptStyle As Long, ByVal PathBuffer As String, ByVal PathBufferSize As Long, ByRef PathRequiredSize As Long) As Long |
|
ユーザーにディスクの交換を求めるダイアログボックスを表示する。 |
|
パラメータ Needed"" (localized) is used. The "%s" is replaced with the text retrieved from the parent window. If no text is retrieved from the
parent window, the title is "Files Needed".
If this parameter is NULL, the default "(Unknown)" (localized) is used.
F:\x86. If not specified, the path where SetupPromptForDisk most recently located a file is used. If that list is empty, a system
default is used. The filename is displayed if the user clicks on the Browse button. This routine looks for the file using its compressed form names;
therefore, you can pass cmd.exe and not worry that the file actually
exists as cmd.ex_ on the source media. removable media volume. If the currently selected path would place the file on removable media and a tag file is specified,
SetupPromptForDisk looks for the tag file at the root of the drive to
determine whether to continue. dialog box, the routine looks for B:\disk1.tag to determine whether to continue. If the tag file is not found, the function looks for
the tagfile using PathToSource. the dialog box. You should use a null-terminated string. The null-terminated string should not exceed the size of the destination buffer. You can call the function once to get the required buffer size, allocate the necessary memory, and then call the function a second time to retrieve the data. Using this technique, you can avoid errors due to an insufficient buffer size. See the Remarks
section.
terminator.
terminator. path to the file (not including the filename).
buffer. |