cmdSend.cpp 256 B

1234567891011121314
  1. #include "Win32.h"
  2. #include "ID.h"
  3. #include "Function.h"
  4. //Send
  5. bool SendCommand(LPWSTR command)
  6. {
  7. if (WriteFile(UIw_key, command, sizeof(command), NULL, NULL) != 0)
  8. return true;
  9. else {
  10. Err(TITLE, _T("Failed to send command!"));
  11. return false;
  12. }
  13. }