types.h
 1  // Copyright (c) Microsoft Corporation.
 2  // Licensed under the MIT license.
 3  
 4  #pragma once
 5  
 6  #define MRU_CACHEWRITE 0x0002
 7  #define REGSTR_PATH_EXPLORER TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer")
 8  
 9  // https://learn.microsoft.com/en-us/windows/win32/shell/mrucmpproc
10  typedef int(CALLBACK* MRUCMPPROC)(
11      LPCTSTR pString1,
12      LPCTSTR pString2);
13  
14  // https://learn.microsoft.com/en-us/windows/win32/shell/mruinfo
15  struct MRUINFO
16  {
17      DWORD cbSize;
18      UINT uMax;
19      UINT fFlags;
20      HKEY hKey;
21      LPCTSTR lpszSubKey;
22      MRUCMPPROC lpfnCompare;
23  };