39 WCHAR szDeviceInstanceId[256];
60 switch (ProblemNumber)
221 if (lpMachineName !=
NULL)
229 if (lpDeviceID !=
NULL)
243 if (lpMachineNameW !=
NULL)
249 if (lpDeviceIDW !=
NULL)
291 if (lpDeviceID ==
NULL)
299 if (hComCtl32 !=
NULL)
430 (uMaxString + 1) *
sizeof(
WCHAR));
521 WCHAR szInfo[] =
L"FIXME";
583 sizeof(StringIDs) /
sizeof(StringIDs[0]),
592 sizeof(StringIDs) /
sizeof(StringIDs[0]),
599 if (uMaxString != 0 && uMaxString >= dwRet)
INT LengthOfStrResource(IN HINSTANCE hInst, IN UINT uID)
#define CM_PROB_REGISTRY_TOO_LARGE
#define CM_PROB_REINSTALL
#define CM_PROB_BOOT_CONFIG_CONFLICT
#define CM_PROB_FAILED_ADD
#define CM_PROB_INVALID_DATA
#define CM_PROB_HELD_FOR_EJECT
#define CM_PROB_DRIVER_BLOCKED
#define CM_PROB_HARDWARE_DISABLED
#define CM_PROB_NO_SOFTCONFIG
#define CM_PROB_TRANSLATION_FAILED
#define CM_PROB_PARTIAL_LOG_CONF
#define CM_PROB_REENUMERATION
#define CM_PROB_NORMAL_CONFLICT
#define CM_PROB_NEED_RESTART
#define CM_PROB_UNKNOWN_RESOURCE
#define CM_PROB_DEVICE_NOT_THERE
#define CM_PROB_DRIVER_SERVICE_KEY_INVALID
#define CM_PROB_FAILED_FILTER
#define CM_PROB_WILL_BE_REMOVED
#define CM_PROB_DEVLOADER_FAILED
#define CM_PROB_FAILED_START
#define CM_PROB_DRIVER_FAILED_LOAD
#define CM_PROB_FAILED_INSTALL
#define CM_PROB_OUT_OF_MEMORY
#define CM_PROB_NOT_VERIFIED
#define CM_PROB_FAILED_POST_START
#define CM_PROB_SYSTEM_SHUTDOWN
#define CM_PROB_NO_VALID_LOG_CONF
#define CM_PROB_IRQ_TRANSLATION_FAILED
#define CM_PROB_DRIVER_FAILED_PRIOR_UNLOAD
#define CM_PROB_LACKED_ARBITRATOR
#define CM_PROB_FAILED_DRIVER_ENTRY
#define CM_PROB_DEVLOADER_NOT_READY
#define CM_PROB_DISABLED_SERVICE
#define CM_PROB_DEVLOADER_NOT_FOUND
#define CM_PROB_TOO_EARLY
#define CM_PROB_DUPLICATE_DEVICE
#define CM_PROB_LEGACY_SERVICE_NO_DEVICES
#define CM_PROB_ENTRY_IS_WRONG_TYPE
#define CM_PROB_CANT_SHARE_IRQ
#define CM_Connect_Machine
CONFIGRET WINAPI CM_Disconnect_Machine(_In_opt_ HMACHINE hMachine)
CONFIGRET WINAPI CM_Get_DevNode_Status_Ex(_Out_ PULONG pulStatus, _Out_ PULONG pulProblemNumber, _In_ DEVINST dnDevInst, _In_ ULONG ulFlags, _In_opt_ HMACHINE hMachine)
static HINSTANCE hDllInstance
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#define ERROR_NOT_ENOUGH_MEMORY
BOOL WINAPI DeviceProblemWizardA(IN HWND hWndParent OPTIONAL, IN LPCSTR lpMachineName OPTIONAL, IN LPCSTR lpDeviceID)
static const UINT ProblemStringId[NUM_CM_PROB]
BOOL WINAPI DeviceProblemWizardW(IN HWND hWndParent OPTIONAL, IN LPCWSTR lpMachineName OPTIONAL, IN LPCWSTR lpDeviceID)
BOOL ShowDeviceProblemWizard(IN HWND hWndParent OPTIONAL, IN HDEVINFO hDevInfo, IN PSP_DEVINFO_DATA DevInfoData, IN HMACHINE hMachine OPTIONAL)
UINT WINAPI DeviceProblemTextW(IN HMACHINE hMachine OPTIONAL, IN DEVINST dnDevInst, IN ULONG uProblemId, OUT LPWSTR lpString, IN UINT uMaxString)
UINT WINAPI DeviceProblemTextA(IN HMACHINE hMachine OPTIONAL, IN DEVINST dnDevInst, IN ULONG uProblemId, OUT LPSTR lpString, IN UINT uMaxString)
#define ERROR_INVALID_PARAMETER
#define INVALID_HANDLE_VALUE
#define HeapFree(x, y, z)
#define WideCharToMultiByte
BOOL WINAPI InstallDevInst(IN HWND hWndParent, IN LPCWSTR InstanceId, IN BOOL bUpdate, OUT LPDWORD lpReboot)
LPWSTR ConvertMultiByteToUnicode(IN LPCSTR lpMultiByteStr, IN UINT uCodePage)
DWORD LoadAndFormatStringsCat(IN HINSTANCE hInstance, IN UINT *uID, IN UINT nIDs, OUT LPWSTR *lpTarget,...)
HINSTANCE LoadAndInitComctl32(VOID)
#define IDS_DEV_NO_VALID_LOG_CONF
#define IDS_DEV_FAILED_POST_START
#define IDS_DEV_NOT_VERIFIED
#define IDS_DEV_FAILED_FILTER
#define IDS_DEV_ENTRY_IS_WRONG_TYPE
#define IDS_DEV_DEVLOADER_NOT_FOUND
#define IDS_DEV_FAILED_INSTALL
#define IDS_DEV_SETPROPERTIES_FAILED
#define IDS_DEV_HELD_FOR_EJECT
#define IDS_DEV_OUT_OF_MEMORY
#define IDS_DEV_FAILED_DRIVER_ENTRY
#define IDS_DEV_DRIVER_SERVICE_KEY_INVALID
#define IDS_DEV_TOO_EARLY
#define IDS_DEV_FAILED_START
#define IDS_DEV_UNKNOWN_RESOURCE
#define IDS_DEV_LACKED_ARBITRATOR
#define IDS_DEV_SYSTEM_SHUTDOWN
#define IDS_DEV_INVALID_DATA
#define IDS_DEV_CANT_SHARE_IRQ
#define IDS_DEV_FAILED_ADD
#define IDS_DEV_NO_PROBLEM
#define IDS_DEV_REGISTRY_TOO_LARGE
#define IDS_DEV_DRIVER_FAILED_PRIOR_UNLOAD
#define IDS_DEV_REENUMERATION
#define IDS_DEV_DISABLED_SERVICE
#define IDS_DEV_TRANSLATION_FAILED
#define IDS_DEV_IRQ_TRANSLATION_FAILED
#define IDS_DEV_WILL_BE_REMOVED
#define IDS_DEV_HARDWARE_DISABLED
#define IDS_DEV_NOT_CONFIGURED
#define IDS_DEV_NORMAL_CONFLICT
#define IDS_DEV_DEVLOADER_NOT_READY
#define IDS_DEV_BOOT_CONFIG_CONFLICT
#define IDS_DEV_BIOS_TABLE
#define IDS_DEV_REINSTALL
#define IDS_DEV_DEVLOADER_FAILED
#define IDS_DEV_DRIVER_BLOCKED
#define IDS_DEV_DRIVER_FAILED_LOAD
#define IDS_DEV_PARTIAL_LOG_CONF
#define IDS_DEV_NEED_RESTART
#define IDS_DEV_DUPLICATE_DEVICE
#define IDS_DEV_DEVICE_NOT_THERE
#define IDS_DEV_NO_SOFTCONFIG
#define IDS_DEV_LEGACY_SERVICE_NO_DEVICES
BOOL WINAPI SetupDiDestroyDeviceInfoList(HDEVINFO devinfo)
static const WCHAR Cleanup[]
HLOCAL NTAPI LocalFree(HLOCAL hMem)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
#define SetupDiOpenDeviceInfo
#define SetupDiGetDeviceInstanceId
#define SetupDiCreateDeviceInfoListEx
struct _SP_DEVINFO_DATA SP_DEVINFO_DATA
PULONG MinorVersion OPTIONAL