Recent content by sjbesenski

  1. 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.
  2. S

    USB Enable Selective Suspend

    Can you do this without recursion
  3. S

    USB Enable Selective Suspend

    FILETIME is ambiguous
  4. 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...
  5. 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
  6. 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
  7. 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...
  8. 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...
  9. 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)] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +...
  10. 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 ...
  11. S

    USB Enable Selective Suspend

    Please give me the full script
  12. 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 +...
  13. 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...
  14. 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...
  15. 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...
Back
Top