CommConfigDialog function
Displays a driver-supplied configuration dialog box.
Syntax
BOOL WINAPI CommConfigDialog( _In_ LPCTSTR lpszName, _In_ HWND hWnd, _Inout_ LPCOMMCONFIG lpCC );
Parameters
- lpszName [in]
-
The name of the device for which a dialog box should be displayed. For example, COM1 through COM9 are serial ports and LPT1 through LPT9 are parallel ports.
- hWnd [in]
-
A handle to the window that owns the dialog box. This parameter can be any valid window handle, or it should be NULL if the dialog box is to have no owner.
- lpCC [in, out]
-
A pointer to a COMMCONFIG structure. This structure contains initial settings for the dialog box before the call, and changed values after the call.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The CommConfigDialog function requires a dynamic-link library (DLL) provided by the communications hardware vendor.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | CommConfigDialogW (Unicode) and CommConfigDialogA (ANSI) |
See also