forked from spencerhakim/RTSSSharedMemoryNET
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOSD.h
More file actions
43 lines (33 loc) · 1012 Bytes
/
OSD.h
File metadata and controls
43 lines (33 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// OSD.h
#pragma once
#include "Structs.h"
using namespace System;
using namespace System::Collections::Generic;
using namespace System::Runtime::InteropServices;
namespace RTSSSharedMemoryNET {
public ref class OSD
{
private:
LPCSTR m_entryName;
DWORD m_osdSlot;
bool m_disposed;
public:
OSD(String^ entryName);
~OSD();
!OSD();
static property System::Version^ Version
{
System::Version^ get();
}
void Update(String^ text);
void UpdatePosition(DWORD x, DWORD y);
void UpdateColor(DWORD argb);
static array<OSDEntry^>^ GetOSDEntries();
static array<AppEntry^>^ GetAppEntries();
private:
static void openSharedMemory(HANDLE* phMapFile, LPRTSS_SHARED_MEMORY* ppMem);
static void closeSharedMemory(HANDLE hMapFile, LPRTSS_SHARED_MEMORY pMem);
static DateTime timeFromTickcount(DWORD ticks);
};
LPCWSTR MBtoWC(const char* str);
}