none
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.

    Tomas

    Monday, May 23, 2011 6:26 AM

Answers

  • 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 http://social.msdn.microsoft.com/Forums/en/windowssecurity/thread/9bd7c2de-ec7f-4141-980a-260689d02745

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