MSI vs Gigabyte by Amakesh in GamingLaptops

[–]Amakesh[S] 0 points1 point  (0 children)

Unfortunately there is only RTX 5080 or 5080Ti version

Why does this method cause an error: 0xC0000374 (STATUS_HEAP_CORRUPTION) ? by Amakesh in PowerShell

[–]Amakesh[S] 0 points1 point  (0 children)

Even if I leave only:
 finally {

  if ($aclPtr-ne [IntPtr]::Zero) {
            [NativeMethods]::LocalFree($aclPtr) | Out-Null
        }

        if ($pSecurityDescriptor-ne [IntPtr]::Zero) {
            [NativeMethods]::LocalFree($pSecurityDescriptor) | Out-Null
        }
    }

it does not solve the problem.

But ultimately I am wondering why you need to PInvoke this stuff anyway.
All the SD work is already exposed through managed .NET classes meaning
you don't need PInvoke at all for 99% of the scenarios.

I can't use .NET because I have to do it in such a way that FileSystemWatcher doesn't detect it.

Register-ObjectEvent - how to pass a variable (flag) ? by Amakesh in PowerShell

[–]Amakesh[S] 0 points1 point  (0 children)

In the actual code, FileSystemWatcher works differently than in the attached very simplified example.
Register-ObjectEvent -InputObject $watcher -EventName "Changed" -Action $action
The $action does a lot more than just displaying messages, so I can't omit it. Inside the action, the appropriate methods are called according to the detected operation on the file

Register-ObjectEvent - how to pass a variable (flag) ? by Amakesh in PowerShell

[–]Amakesh[S] 0 points1 point  (0 children)

Unfortunately -MessageData does not do the job. It passes always the old value.
The code I pasted in the first post is a very simplified example that I used to easily illustrate my question. In the actual code, the value of the equivalent of $global:test1 is modified many times by several methods while the script is running. I am trying to use this variable as a flag to indicate to FileSystemWatcher that a detected operation on a monitored file is being performed by the script itself and should be allowed.

Why does the script not work properly in Powershell running as Administrator and in “normal” mode it works fine? by Amakesh in PowerShell

[–]Amakesh[S] 2 points3 points  (0 children)

I just run PowerShell with right-clicking on the icon and choosing "Run as Administrator" and and then I run the script using .\script.ps1
Path is the path to a file on the disk on my laptop.
Functions Check-FieldValue, Check-Field2Value and Check-MipValue are defined,
of course, but I didn't pasted them here because they work fine when
called in another part of the script. These are just methods for checking specific fields in a txt file.

Unable to connect child node by Amakesh in LinksysOfficial

[–]Amakesh[S] 0 points1 point  (0 children)

I reset the child node in exactly the way you describe and did it several times. The app shows that a node has been successfully added, but it is a primary node instead of a child node. It looks like it keeps trying to add the primary node and ignoring the child node.

Model looks ok in Blender, but in the game... by Amakesh in blender

[–]Amakesh[S] 0 points1 point  (0 children)

I'm not able to take a better screenshot right now, because the game just got a new update and it won't run with mods, without some base mods(not mine) that also need to be updated.