-
S
Getting an error with Showdialog
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.- sjbesenski
- Thread
- debugging winforms unhandled exception user32 windows compatibility winforms showdialog
- Replies: 2
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
Can you do this without recursion- sjbesenski
- Post #136
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
FILETIME is ambiguous- sjbesenski
- Post #134
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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...- sjbesenski
- Post #132
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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- sjbesenski
- Post #130
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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- sjbesenski
- Post #128
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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...- sjbesenski
- Post #125
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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...- sjbesenski
- Post #123
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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)] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +...- sjbesenski
- Post #121
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
Cannot index into a null array. At C:\Users\kioskuser2\Documents\Disable_FTDI_Selective_Suspend.ps1:185 char:40 + ... ($i=0; $i -lt 4; $i++) { if ($bytes[$i] -ne $desiredBytes[$i]) { $nee ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo ...- sjbesenski
- Post #119
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
Please give me the full script- sjbesenski
- Post #117
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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 +...- sjbesenski
- Post #115
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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...- sjbesenski
- Post #113
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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...- sjbesenski
- Post #111
- Forum: Windows Help and Support
-
S
USB Enable Selective Suspend
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...- sjbesenski
- Post #109
- Forum: Windows Help and Support