IOperationsProgressDialog::SetMode method
Sets progress dialog operations mode.
Syntax
HRESULT SetMode(
[in] PDMODE mode
);
Parameters
- mode [in]
-
Type: PDMODE
Specifies the operation mode. The following are valid values.
-
0x00000000. Use the default progress dialog operations mode.
-
0x00000001. The operation is running.
-
0x00000002. The operation is gathering data before it begins, such as calculating the predicted operation time.
-
0x00000004. The operation is rolling back due to an Undo command from the user.
-
0x00000008. Error dialogs are blocking progress from continuing.
-
0x00000010. The length of the operation is indeterminate. Do not show a timer and display the progress bar in marquee mode.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps only] |
|
Header |
|
|
IDL |
|