On pcs recently transitioned to windows 11 when calling a new forms.ShowDialog I am getting an Unhandled exception at 0x76FC6233 (user32.dll) how can I fix or debug what the real issue is.
Can you fix this c++ function to enumerate through all the FTDIBUS devices and get the value of the DWORD key ConfigData
bool Fix_FTDI_Selective_Suspend(void)
{
char achKey[255];
DWORD cbName;
DWORD cSubKeys = 0;
DWORD cbMaxSubKey;
DWORD cchMaxClass;
DWORD cValues...
This is an example of where the ConfigData paramter is Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS\VID_0403+PID_6001+B0B35ZOXA\0000\Device Parameters
But check all values in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS
start fresh create a script that reads in the current value of DWORD ConfigData for all Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\FTDIBUS devices in Device Parameters change only the first 4 bytes of the DWORD to 01 00 3F 3F
At C:\Users\kioskuser2\Documents\Disable_FTDI_Selective_Suspend.ps1:172 char:31
+ if ($cfgRaw -is [byte[]) {
+ ~
Missing ] at end of attribute or type literal.
At C:\Users\kioskuser2\Documents\Disable_FTDI_Selective_Suspend.ps1:173 char:26
+ $bytes...
At C:\Users\kioskuser2\Documents\Disable_FTDI_Selective_Suspend.ps1:46 char:40
+ if ($null -eq $value) { return [byte[]@() }
+ ~
Missing ] at end of attribute or type literal.
At C:\Users\kioskuser2\Documents\Disable_FTDI_Selective_Suspend.ps1:47 char:24...
Cannot find the type for custom attribute 'byte[]'. Make sure that the assembly that contains this type is loaded.
At C:\Users\kioskuser2\Documents\Disable_FTDI_Selective_Suspend.ps1:41 char:17
+ $desiredBytes = [byte[](0x01,0x00,0x3F,0x3F)]
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+...
At C:\Users\spencer.besenski\Documents\Disable_Selective_Suspend.ps1:147 char:31
+ if ($cfgRaw -is [byte[]) {
+ ~
Missing ] at end of attribute or type literal.
At C:\Users\spencer.besenski\Documents\Disable_Selective_Suspend.ps1:148 char:26
+...
At C:\Users\spencer.besenski\Documents\Disable_Selective_Suspend.ps1:41 char:46
+ $desiredBytes = [byte[] (0x01,0x00,0x3F,0x3F)
+ ~
Missing ] at end of attribute or type literal.
At C:\Users\spencer.besenski\Documents\Disable_Selective_Suspend.ps1:157...
At C:\Users\spencer.besenski\Documents\Disable_Selective_Suspend.ps1:42 char:46
+ $desiredBytes = [byte[] (0x01,0x00,0x3F,0x3F)
+ ~
Missing ] at end of attribute or type literal.
At C:\Users\spencer.besenski\Documents\Disable_Selective_Suspend.ps1:156...
Can you add to this script to read in the contents of DWORD ConfigData and check if the first 4 bytes of ConfigData are 01 00 3F 3F and if they aren't changes only those bytes to 01 00 3F 3F.
# Run elevated<br>$WhatIf = $false # set $true to dry-run<br>$ForceReboot = $false # set $true to...