Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can you give me a programatical example of the function CreateFile for PIPES.

I want to give user authentication.

Please help me

my email id [email removed]
Posted
Updated 5-Oct-10 21:23pm
v2
Comments
LittleYellowBird 6-Oct-10 3:23am    
Hi, I have removed your email address so that you don't get loads of spam, you will get an email automatically when someone reponds. :)

See here[^].
 
Share this answer
 
Comments
patilvaibhavrao 8-Oct-10 3:05am    
Thanks Rechards for providing me valuable information
alse provide me for such information about SharedMemory
BOOL bResult = WriteFile(
hPipe, // handle to pipe
szBuffer, // buffer to write from
strlen(szBuffer)+1, // number of bytes to write, include the NULL
&cbBytes, // number of bytes written
NULL); // not overlapped I/O



BOOL bResult = ReadFile(
hPipe, // handle to pipe
szBuffer, // buffer to receive data
sizeof(szBuffer), // size of buffer
&cbBytes, // number of bytes read
NULL); // not overlapped I/O


hPipe-Handle to NamedPipe instance

szBuffer-Buffer to which we are writing and reading from server and clientside



for more information


<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365150(v=VS.85)">http://msdn.microsoft.com/en-us/library/windows/desktop/aa365150(v=VS.85)</a>[<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365150(v=VS.85)" target="_blank" title="New Window">^</a>]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900