31 IDirectInputDevice8W * pDev =
NULL;
37 DWORD dwManufacturerID;
67 szText[(
sizeof(szText) /
sizeof(
WCHAR))-1] =
L'\0';
69 Item.pszText = szText;
87 wsprintfW(szText,
L"0x%04X", dwManufacturerID);
100 szText[(
sizeof(szText)/
sizeof(
WCHAR))-1] =
L'\0';
111 hResult = pDev->lpVtbl->GetCapabilities(pDev, &DevCaps);
113 if (hResult ==
DI_OK)
137 TypeName.diph.dwSize =
sizeof(TypeName);
140 hResult = pDev->lpVtbl->GetProperty(pDev, DIPROP_GETPORTDISPLAYNAME, (
LPDIPROPHEADER)&TypeName);
177 szText[(
sizeof(szText) /
sizeof(
WCHAR))-1] =
L'\0';
189 IDirectInput8W * pObj;
192 if (hResult !=
DI_OK)
201 pObj->lpVtbl->Release(pObj);
#define DIRECTINPUT_VERSION
#define IDS_DEVICE_STATUS_ATTACHED
#define IDS_DEVICE_STATUS_MISSING
#define IDS_NOT_APPLICABLE
#define IDS_DEVICE_STATUS_UNKNOWN
HRESULT WINAPI DECLSPEC_HOTPATCH DirectInput8Create(HINSTANCE hinst, DWORD version, REFIID iid, void **out, IUnknown *outer)
#define UNREFERENCED_PARAMETER(P)
#define LVS_EX_FULLROWSELECT
#define LVM_INSERTCOLUMNW
#define LVM_SETEXTENDEDLISTVIEWSTYLE
WCHAR tszProductName[MAX_PATH]
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ WDFCOLLECTION _In_ WDFOBJECT Item
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SWP_NOOWNERZORDER
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)