FileSystemWatcher class does not fire Change events when NotifyFilters.Size is used

Hi all,   A customer of mine was trying to monitor a .log file in a specific folder with .NET’s FileSystemWatcher class and a code like the following:     static void Main(string[] args) { FileSystemWatcher fsw = new FileSystemWatcher(@”C:\mypath”, “myfile.log”); fsw.NotifyFilter = NotifyFilters.Size | NotifyFilters.LastWrite; fsw.Changed += new FileSystemEventHandler(MyChangedMethod); fsw.Error += new ErrorEventHandler(MyErrorMethod); fsw.EnableRaisingEvents =…

1

SetWindowsHookEx fails with error ERROR_MOD_NOT_FOUND

Hi all, Some time ago a customer of mine was trying to add some global hooks (i.e. WH_CALLWNDPROC, WH_CALLWNDPROCRET, WH_SYSMSGFILTER, WH_GETMESSAGE) to his system by calling SetWindowsHookEx, but he kept getting error 126 or ERROR_MOD_NOT_FOUND. Those global hooks were included in the same dll. He had several other dlls with global hooks which hooks had been successfully added…

2

ERROR_INVALID_DATA decrypting keyMaterial info from WiFi profile

Hi all, As you may know, you can use Native WiFi API to access WiFi profile data on a Windows system. WlanGetProfile function can be used to get an Xml document with this data. The element within this document at path MSM/security/sharedKey/keyMaterial contains the WiFi network encrypted key. You can decrypt this key by following the…

0

SendInput doesn’t work but it doesn’t return an error

Hi all, The other day a customer of mine was trying to use SendInput to simulate mouse and keyboard input on WinLogon desktop. The API was returning successfully, but it was not doing anything at all. He had no issues to use the API on Default desktop (more info on Desktops here). SendInput will just ignore our actions…

0