-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OMv15: JSON moved to %userprofile%\OmniMIDI\lists\OmniMIDI_A.json, an…
…d removed pch.h
- Loading branch information
bribi5940
committed
Jun 30, 2023
1 parent
4b39a52
commit 51f75af
Showing
13 changed files
with
133 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include "Utils.h" | ||
|
||
bool WinUtils::SysPath::GetFolderPath(const GUID FolderID, wchar_t* P, size_t PS) { | ||
PWSTR Dir; | ||
HRESULT SGKFP = SHGetKnownFolderPath(FolderID, 0, NULL, &Dir); | ||
bool Success = SUCCEEDED(SGKFP); | ||
|
||
if (Success) | ||
StringCchPrintfW(P, PS, L"%ws", Dir); | ||
|
||
CoTaskMemFree((LPVOID)Dir); | ||
|
||
return Success; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef _UTILS_H | ||
#define _UTILS_H | ||
|
||
#pragma once | ||
|
||
#include <Windows.h> | ||
#include <guiddef.h> | ||
#include <ShlObj_core.h> | ||
#include <strsafe.h> | ||
|
||
namespace WinUtils { | ||
class SysPath { | ||
public: | ||
bool GetFolderPath(const GUID FolderID, wchar_t* String, size_t StringLen); | ||
}; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
*/ | ||
|
||
#include "pch.h" | ||
#include "WDMDrv.h" | ||
|
||
#ifdef _WIN32 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.