Skip to content

Instantly share code, notes, and snippets.

@luser
Created January 20, 2015 18:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luser/d65dc5d9bfedfbf30449 to your computer and use it in GitHub Desktop.
Save luser/d65dc5d9bfedfbf30449 to your computer and use it in GitHub Desktop.
wchar_t name[32];
wcsprintf(name, "SaveGeckoProfile%d", pid)
HANDLE event = OpenEvent(EVENT_MODIFY_STATE, FALSE, name);
if (!event) {
printf("Error\n");
return 1;
}
SetEvent(event);
CloseHandle(event);
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment