well, for example, i could get the exit code from mysql.exe (executed with shellExecuteEx from my visual c++ application) with

Code:
BOOL GetExitCodeProcess(
  HANDLE hProcess,     // handle to the process
  LPDWORD lpExitCode   // address to receive termination status
);
the problem is i cant find the exit codes for that program, so is there any other way to know if the execution of mysql.exe and its parameter was successfull?

Code:
C:\backup>mysqldump sdlfkj
-- MySQL dump 8.22
--
-- Host: localhost    Database: sdlfkj
---------------------------------------------------------
-- Server version       3.23.51-max-nt
mysqldump: Got error: 1044: Access denied for user: '@localhost' to database 'sdlfkj' when selecting the database
here is an error example from mysqldump, with this parameter (purposefully wrong) it sends error 1044, is there a list of this errors somewhere?

how can i know if something went wrong from my visual c++ application?