CreateFile named pipes RRS feed

  • Question

  • Hello guys,

    I'am trying create SafeFileHandle to server named pipe. PipeHandle still return IsInvalid state and, when I use throw new Win32Exception() I got =>

    1008 error code = An attempt was made to reference a token that does not exis.

    Thanks for any ideas.


    Monday, May 23, 2011 6:26 AM


  • I'm assuming you used CreateNamedPipe(.....). I hope the current used has a FILE_CREATE_PIPE_INSTANCE access.

    And if you are using Vista or Win7 you can refer to the guidance provided at

    • Marked as answer by Tomas.Ducky Monday, May 23, 2011 11:22 AM
    Monday, May 23, 2011 9:41 AM