win-capture: Expose helper funcs to get win. class/title

master
jp9000 2016-07-30 11:24:39 -07:00
parent 2a343955a2
commit 383c96744e
2 changed files with 4 additions and 2 deletions

View File

@ -104,7 +104,7 @@ fail:
return true; return true;
} }
static void get_window_title(struct dstr *name, HWND hwnd) void get_window_title(struct dstr *name, HWND hwnd)
{ {
wchar_t *temp; wchar_t *temp;
int len; int len;
@ -119,7 +119,7 @@ static void get_window_title(struct dstr *name, HWND hwnd)
free(temp); free(temp);
} }
static void get_window_class(struct dstr *class, HWND hwnd) void get_window_class(struct dstr *class, HWND hwnd)
{ {
wchar_t temp[256]; wchar_t temp[256];

View File

@ -14,6 +14,8 @@ enum window_search_mode {
}; };
extern bool get_window_exe(struct dstr *name, HWND window); extern bool get_window_exe(struct dstr *name, HWND window);
extern void get_window_title(struct dstr *name, HWND hwnd);
extern void get_window_class(struct dstr *class, HWND hwnd);
extern void fill_window_list(obs_property_t *p, enum window_search_mode mode); extern void fill_window_list(obs_property_t *p, enum window_search_mode mode);