1 17 package org.alfresco.filesys.smb.server; 18 19 23 public class NamedPipeTransaction 24 { 25 26 28 public static final int CallNamedPipe = 0x54; 29 public static final int WaitNamedPipe = 0x53; 30 public static final int PeekNmPipe = 0x23; 31 public static final int QNmPHandState = 0x21; 32 public static final int SetNmPHandState = 0x01; 33 public static final int QNmPipeInfo = 0x22; 34 public static final int TransactNmPipe = 0x26; 35 public static final int RawReadNmPipe = 0x11; 36 public static final int RawWriteNmPipe = 0x31; 37 38 44 public final static String getSubCommand(int subCmd) 45 { 46 47 49 String ret = ""; 50 51 switch (subCmd) 52 { 53 case CallNamedPipe: 54 ret = "CallNamedPipe"; 55 break; 56 case WaitNamedPipe: 57 ret = "WaitNamedPipe"; 58 break; 59 case PeekNmPipe: 60 ret = "PeekNmPipe"; 61 break; 62 case QNmPHandState: 63 ret = "QNmPHandState"; 64 break; 65 case SetNmPHandState: 66 ret = "SetNmPHandState"; 67 break; 68 case QNmPipeInfo: 69 ret = "QNmPipeInfo"; 70 break; 71 case TransactNmPipe: 72 ret = "TransactNmPipe"; 73 break; 74 case RawReadNmPipe: 75 ret = "RawReadNmPipe"; 76 break; 77 case RawWriteNmPipe: 78 ret = "RawWriteNmPipe"; 79 break; 80 } 81 return ret; 82 } 83 } 84 | Popular Tags |