Windows

Getting the cursor size on Windows

Getting the cursor size in Windows is a trivial task, but it can be a bit confusing. Windows API does not provide a direct function to get the current size of the mouse cursor as it is configured in the system settings and it is not easily accessible via code. The cursor size is defined in the Windows registry, under the key HKEY_CURRENT_USER\Control Panel\Cursors. #include <Windows.h> int GetCursorSize() { // Open the registry key for cursor settings HKEY hKey; if (RegOpenKeyEx(HKEY_CURRENT_USER, L"Control Panel\Cursors", 0, KEY_READ, &hKey) !

Obtendo o tamanho do cursor no Windows (pt-BR)

Obter o tamanho do cursor no Windows é uma tarefa tão simples, mas que pode ser um pouco confusa. A API do Windows não fornece uma função direta para obter o tamanho atual do cursor do mouse. O tamanho do cursor do mouse é definido nas configurações do sistema e não é facilmente acessível programaticamente. O tamanho do cursor é definido no registro do Windows, na chave HKEY_CURRENT_USER\Control Panel\Cursors. #include <Windows.

Usando outro cliente NPT no windows (pt-br)

Seguindo o descrito na página: https://www.satsignal.eu/ntp/setup.html Instalando o software: https://www.meinbergglobal.com/english/sw/ntp.htm Conferindo o estado com o comando: > ntpq -pn <pre class="wp-block-syntaxhighlighter-code">C:\Users\json>ntpq -pn remote refid st t when poll reach delay offset jitter ============================================================================== 168.96.251.197 .PTP0. 1 u 32 64 1 268.070 -9.595 0.000 *200.160.7.186 .ONBR. 1 u 12 64 377 23.897 -7.562 19.512 +2a0b:4341:1500: 200.160.7.186 2 u 11 64 377 256.323 -0.893 17.435 -198.251.86.68 173.162.192.156 2 u 10 64 377 155.

Apagando pastas vazias (pt-br)

Basta ir para o diretório raiz e executar a linha de código. O arquivo vai apagando diretório vazio atrás de diretório vazio. Cygnus (Windows): find -depth -type d -empty -exec rmdir {} ; Linux: find -depth -type d -empty -exec rmdir {} ; OS X: find ./ -depth -type d -empty -exec rmdir {} ;