Outlook Classic, Schalter für Outlook new verbieten. Registry Hack von Microsoft. Auf meiner Webseite gibt es das Delphi Programm mit der Prüfung Schlüssel gesetzt, passendes Offce überhaupt vorhanden.... KI Verschlag Hardware: Lifebook 5511 64 GB RAM Prozessor 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2803 MHz, 4 Kern(e), 8 logische(r) Prozessor(en) LM Studio mit openai/gpt-oss-20b Create a C program with this registry key [HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options\General] "HideNewOutlookToggle"=dword:00000001 Need to provide C code that sets that registry key/value. Use RegCreateKeyEx and RegSetValueEx with REG_DWORD. Provide minimal program. Below is a **stand‑alone C program** that creates (or updates) the exact key/value you asked for: ``` HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options\General HideNewOutlookToggle = dword:00000001 ``` It uses only the Win32 API – no external libraries are required. ```c /********************************************************************* * Program: OutlookHideNew.c * * Purpose: Write the DWORD value 1 to * HKCU\Software\Microsoft\Office\16.0\Outlook\Options\General * under the name HideNewOutlookToggle. * * Build: * cl /EHsc OutlookHideNew.c (MSVC) * gcc -o OutlookHideNew.exe OutlookHideNew.c (MinGW/Cygwin) *********************************************************************/ #include #include /* ------------------------------------------------------------------ */ /* Configuration – these are the exact strings you requested */ /* ------------------------------------------------------------------ */ #define REG_ROOT HKEY_CURRENT_USER #define REG_PATH TEXT("Software\\Microsoft\\Office\\16.0\\Outlook\\Options\\General") #define VALUE_NAME TEXT("HideNewOutlookToggle") #define VALUE_DATA_DWORD 1u /* DWORD value to write */ /* ------------------------------------------------------------------ */ /* Helper – print a Win32 error message */ /* ------------------------------------------------------------------ */ static void PrintLastError(const char *msg) { DWORD err = GetLastError(); LPVOID lpMsgBuf; FormatMessageA( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPSTR)&lpMsgBuf, 0, NULL); fprintf(stderr, "%s failed: %lu (%s)\n", msg, err, (char*)lpMsgBuf); LocalFree(lpMsgBuf); } /* ------------------------------------------------------------------ */ /* Main routine */ /* ------------------------------------------------------------------ */ int main(void) { HKEY hKey; LONG rc; /* 1. Create / open the key. REG_OPTION_NON_VOLATILE means it will persist after reboot. KEY_SET_VALUE gives us write access. */ rc = RegCreateKeyExW( REG_ROOT, // Root key (HKCU) REG_PATH, // Sub‑key path 0, // Reserved NULL, // Class string (unused) REG_OPTION_NON_VOLATILE, KEY_SET_VALUE, // Desired access NULL, // Security attributes &hKey, // Receives the key handle NULL); // Disposition (optional) if (rc != ERROR_SUCCESS) { PrintLastError("RegCreateKeyExW"); return 1; } /* 2. Write the DWORD value. */ rc = RegSetValueExW( hKey, // Handle to key VALUE_NAME, // Value name 0, // Reserved REG_DWORD, // Type of data (const BYTE*)&VALUE_DATA_DWORD, sizeof(VALUE_DATA_DWORD)); if (rc != ERROR_SUCCESS) { PrintLastError("RegSetValueExW"); RegCloseKey(hKey); return 1; } /* 3. Clean up */ RegCloseKey(hKey); printf("Successfully wrote %s = %u to\n" "HKCU\\%ls\n", VALUE_NAME, VALUE_DATA_DWORD, REG_PATH); return 0; } ``` ### How to compile & run | Compiler | Command | |----------|---------| | MSVC (Developer Command Prompt) | `cl /EHsc OutlookHideNew.c` | | MinGW / Cygwin GCC | `gcc -o OutlookHideNew.exe OutlookHideNew.c` | Run the resulting executable. It will create or update the key/value pair you specified. No administrative rights are required because it writes under **HKEY_CURRENT_USER**. ### Verify Open *Registry Editor* (`regedit`) and navigate to: ``` HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options\General ``` You should see the entry `HideNewOutlookToggle` with the value `1`.