WriteFile input as Boolean

Hi,
Would like to ask a simple question. I'm using NamedPipes to connect in between server and client, and I want my client to send boolean to the server to remotely change some parameter in the server, as I know about NamedPipes, it uses WriteFile API to send data to the server, as all the example in the internet only send string, any idea how to send a boolean instead? Or maybe my understanding about NamedPipes isn't enough?

Thanks.
if you do cin>>boolalpha; It will accept "true" as true, and everything else as false.
Topic archived. No new replies allowed.