Create File Map to share memory https://docs.microsoft.com/en-us/windows/win32/memory/creating-named-shared-memory
| 3 | //Create File Map to share memory |
| 4 | //https://docs.microsoft.com/en-us/windows/win32/memory/creating-named-shared-memory |
| 5 | int LRConfigFileMap::WrtieConfigFileMap(LRProfile *profile) |
| 6 | { |
| 7 | SetEnvironmentVariableW(L"LRCodePage", (LPCWSTR)&profile->CodePage); |
| 8 | SetEnvironmentVariableW(L"LRLCID", (LPCWSTR)&profile->LCID); |
| 9 | SetEnvironmentVariableW(L"LRBIAS", (LPCWSTR)&profile->Bias); |
| 10 | SetEnvironmentVariableW(L"LRHookIME", (LPCWSTR)&profile->HookIME); |
| 11 | SetEnvironmentVariableW(L"LRHookLCID", (LPCWSTR)&profile->HookLCID); |
| 12 | return 0; |
| 13 | } |
| 14 | |
| 15 | int LRConfigFileMap::ReadConfigFileMap(LRProfile* profile) |
| 16 | { |