MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / watcher_windows_copy_self

Function watcher_windows_copy_self

tests/test_watcher.c:865–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863}
864
865static bool watcher_windows_copy_self(const char *destination) {
866 wchar_t source[32768];
867 DWORD source_length =
868 GetModuleFileNameW(NULL, source, (DWORD)(sizeof(source) / sizeof(source[0])));
869 wchar_t *destination_wide = cbm_utf8_to_wide(destination);
870 bool copied = source_length > 0 &&
871 source_length < (DWORD)(sizeof(source) / sizeof(source[0])) && destination_wide &&
872 CopyFileW(source, destination_wide, TRUE) != 0;
873 free(destination_wide);
874 return copied;
875}
876
877static bool watcher_windows_capture_image_identity(const char *path,
878 watcher_windows_image_identity_t *identity) {

Callers 1

test_watcher.cFile · 0.85

Calls 1

cbm_utf8_to_wideFunction · 0.85

Tested by

no test coverage detected