Im trying to use the WriteFile function. Ive been working off this example
http://msdn.microsoft.com/en-us/library/ms900134.aspx
Here the buffer that is passed to WriteFile is filled from ReadFile. But I dont want to do it that way. I just want to write a string like “Example text testing WriteFile” or something. But im not sure what values the parameters should have. Ive tried looking around on google but couldnt find anything. Anyone know how i do this?
From MSDN:
strlen(str).DWORDvariable that will receive the number of bytes actually written.You use it like this:
If
WriteFilereturnsFALSEthen there was an error. Use theGetLastErrorfunction to find out the error code.