win-capture: Expose helper funcs to get win. class/title
parent
2a343955a2
commit
383c96744e
|
@ -104,7 +104,7 @@ fail:
|
|||
return true;
|
||||
}
|
||||
|
||||
static void get_window_title(struct dstr *name, HWND hwnd)
|
||||
void get_window_title(struct dstr *name, HWND hwnd)
|
||||
{
|
||||
wchar_t *temp;
|
||||
int len;
|
||||
|
@ -119,7 +119,7 @@ static void get_window_title(struct dstr *name, HWND hwnd)
|
|||
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];
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ enum window_search_mode {
|
|||
};
|
||||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue