Visual Studio Code – error C2440: initialization: unable to convert "const char [10]" to "LPSTR"
I have this code: MyService: #define _CRT_SECURE_NO_WARNINGS #include <windows.h> #include <stdio.h> #define PIPE_NAME TEXT("\\.\pipe\MyNamedPipe") SERVICE_STATUS_HANDLE g_ServiceStatusHandle = NULL; SERVICE_STATUS g_ServiceStatus = { 0 }; HANDLE g_hStopEvent = NULL; void WINAPI ServiceMain(DWORD argc, LPTSTR* argv); void WINAPI ServiceCtrlHandler(DWORD CtrlCode); void ReportServiceStatus(DWORD…