mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* build: update to yarn v4
(cherry picked from commit 6adec744f3)
* chore: fixup types after yarn v4 migration
* chore: update nan yarn.lock patch
* build: automatically install git for dugite
15 lines
256 B
C++
15 lines
256 B
C++
#include "impl.h"
|
|
|
|
#include <windows.h>
|
|
|
|
namespace impl {
|
|
|
|
bool IsValidWindow(char* handle, size_t size) {
|
|
if (size != sizeof(HWND))
|
|
return false;
|
|
HWND window = *reinterpret_cast<HWND*>(handle);
|
|
return ::IsWindow(window);
|
|
}
|
|
|
|
} // namespace impl
|