46 'L',
'P',
'T',
'P',
'o',
'r',
't',
47 'C',
'o',
'm',
'm',
'a',
'n',
'd',
'O',
'K',0};
48static const WCHAR cmd_DeletePortW[] = {
'D',
'e',
'l',
'e',
't',
'e',
'P',
'o',
'r',
't',0};
50 'D',
'e',
'f',
'a',
'u',
'l',
't',
51 'C',
'o',
'm',
'm',
'C',
'o',
'n',
'f',
'i',
'g',0};
53 'T',
'r',
'a',
'n',
's',
'm',
'i',
's',
's',
'i',
'o',
'n',
54 'R',
'e',
't',
'r',
'y',
'T',
'i',
'm',
'e',
'o',
'u',
't',0};
55static const WCHAR cmd_PortIsValidW[] = {
'P',
'o',
'r',
't',
'I',
's',
'V',
'a',
'l',
'i',
'd',0};
57 'D',
'e',
'f',
'a',
'u',
'l',
't',
58 'C',
'o',
'm',
'm',
'C',
'o',
'n',
'f',
'i',
'g',0};
67static const WCHAR XcvMonitorW[] = {
',',
'X',
'c',
'v',
'M',
'o',
'n',
'i',
't',
'o',
'r',
' ',0};
68static const WCHAR XcvPortW[] = {
',',
'X',
'c',
'v',
'P',
'o',
'r',
't',
' ',0};
122 shortname[
len-1] =
'\0';
184 res_PortExistsW[0] =
'\0';
210 res_InvalidNameW[0] =
'\0';
235 res_nothingW[0] =
'\0';
291 if (!
data->portname) {
448 TRACE(
"%p for OPEN_ALWAYS\n", hfile);
512 debugstr_w(pMonitorName), ppPortName, ppPortName ? *ppPortName :
NULL);
523 if (ppPortName) *ppPortName =
NULL;
632 if ((!pPortName) || (!pPortName[0])) {
675 TRACE(
"=> %p\n", &mymonitorui);
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define ERROR_INVALID_PARAMETER
#define DLL_PROCESS_ATTACH
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
#define FILE_ATTRIBUTE_NORMAL
#define ERROR_INVALID_NAME
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
BOOL WINAPI CommConfigDialogW(LPCWSTR lpszDevice, HWND hWnd, LPCOMMCONFIG lpCommConfig)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
static IN DWORD IN LPVOID lpvReserved
#define IDS_INVALIDNAME_MAXLEN
#define IDS_LOCALPORT_MAXLEN
#define IDS_PORTEXISTS_MAXLEN
#define IDS_NOTHINGTOCONFIG
#define IDS_NOTHINGTOCONFIG_MAXLEN
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
#define memcpy(s1, s2, n)
#define ERROR_ALREADY_EXISTS
#define FILE_FLAG_DELETE_ON_CLOSE
struct _MONITORUI MONITORUI
_Check_return_ _CRTIMP int __cdecl wcsncmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
ACCESS_MASK DesiredAccess
#define FIELD_OFFSET(t, f)
static const WCHAR portname_LPT[]
static void dlg_nothingtoconfig(HWND hWnd)
static const WCHAR cmd_GetDefaultCommConfigW[]
static BOOL WINAPI localui_ConfigurePortUI(PCWSTR pName, HWND hWnd, PCWSTR pPortName)
static const WCHAR portname_CUPS[]
static BOOL dlg_configure_lpt(HANDLE hXcv, HWND hWnd)
static void dlg_port_already_exists(HWND hWnd, LPCWSTR portname)
static const WCHAR XcvMonitorW[]
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
static BOOL dlg_configure_com(HANDLE hXcv, HWND hWnd, PCWSTR pPortName)
static void dlg_invalid_portname(HWND hWnd, LPCWSTR portname)
static INT_PTR CALLBACK dlgproc_lptconfig(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static const WCHAR portname_LPR[]
static BOOL open_monitor_by_name(LPCWSTR pPrefix, LPCWSTR pPort, HANDLE *phandle)
static void dlg_win32error(HWND hWnd, DWORD lasterror)
static const WCHAR portname_FILE[]
static INT_PTR CALLBACK dlgproc_addport(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static const WCHAR XcvPortW[]
static LPWSTR strdupWW(LPCWSTR pPrefix, LPCWSTR pSuffix)
static const WCHAR cmd_PortIsValidW[]
PMONITORUI WINAPI InitializePrintMonitorUI(void)
static BOOL WINAPI localui_DeletePortUI(PCWSTR pName, HWND hWnd, PCWSTR pPortName)
static DWORD get_type_from_name(LPCWSTR name)
static const WCHAR cmd_SetDefaultCommConfigW[]
static HINSTANCE LOCALUI_hInstance
static const WCHAR portname_COM[]
static const WCHAR fmt_uW[]
static const WCHAR cmd_AddPortW[]
static const WCHAR cmd_ConfigureLPTPortCommandOKW[]
struct tag_lptconfig_t lptconfig_t
static const WCHAR cmd_DeletePortW[]
static const WCHAR cmd_GetTransmissionRetryTimeoutW[]
struct tag_addportui_t addportui_t
static BOOL WINAPI localui_AddPortUI(PCWSTR pName, HWND hWnd, PCWSTR pMonitorName, PWSTR *ppPortName)
UINT WINAPI GetDlgItemTextW(HWND hDlg, int nIDDlgItem, LPWSTR lpString, int nMaxCount)
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_ALLOCATE_BUFFER
#define ERROR_UNKNOWN_PORT
#define SERVER_ACCESS_ADMINISTER
WINBOOL WINAPI OpenPrinterW(LPWSTR pPrinterName, LPHANDLE phPrinter, LPPRINTER_DEFAULTSW pDefault)
WINBOOL WINAPI ClosePrinter(HANDLE hPrinter)
WINBOOL WINAPI XcvDataW(HANDLE hXcv, PCWSTR pszDataName, PBYTE pInputData, DWORD cbInputData, PBYTE pOutputData, DWORD cbOutputData, PDWORD pcbOutputNeeded, PDWORD pdwStatus)
#define GetWindowLongPtrW
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL)
#define MB_ICONINFORMATION
UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL)
#define MAKEINTRESOURCEW(i)
#define SetWindowLongPtrW
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)