1 17 package org.alfresco.filesys.smb.dcerpc; 18 19 22 public class Srvsvc 23 { 24 25 27 public static final int NetrServerGetInfo = 0x15; 28 public static final int NetrServerSetInfo = 0x16; 29 public static final int NetrShareEnum = 0x0F; 30 public static final int NetrShareEnumSticky = 0x24; 31 public static final int NetrShareGetInfo = 0x10; 32 public static final int NetrShareSetInfo = 0x11; 33 public static final int NetrShareAdd = 0x0E; 34 public static final int NetrShareDel = 0x12; 35 public static final int NetrSessionEnum = 0x0C; 36 public static final int NetrSessionDel = 0x0D; 37 public static final int NetrConnectionEnum = 0x08; 38 public static final int NetrFileEnum = 0x09; 39 public static final int NetrRemoteTOD = 0x1C; 40 41 47 public final static String getOpcodeName(int opCode) 48 { 49 50 String ret = ""; 51 switch (opCode) 52 { 53 case NetrServerGetInfo: 54 ret = "NetrServerGetInfo"; 55 break; 56 case NetrServerSetInfo: 57 ret = "NetrServerSetInfo"; 58 break; 59 case NetrShareEnum: 60 ret = "NetrShareEnum"; 61 break; 62 case NetrShareEnumSticky: 63 ret = "NetrShareEnumSticky"; 64 break; 65 case NetrShareGetInfo: 66 ret = "NetrShareGetInfo"; 67 break; 68 case NetrShareSetInfo: 69 ret = "NetrShareSetInfo"; 70 break; 71 case NetrShareAdd: 72 ret = "NetrShareAdd"; 73 break; 74 case NetrShareDel: 75 ret = "NetrShareDel"; 76 break; 77 case NetrSessionEnum: 78 ret = "NetrSessionEnum"; 79 break; 80 case NetrSessionDel: 81 ret = "NetrSessionDel"; 82 break; 83 case NetrConnectionEnum: 84 ret = "NetrConnectionEnum"; 85 break; 86 case NetrFileEnum: 87 ret = "NetrFileEnum"; 88 break; 89 case NetrRemoteTOD: 90 ret = "NetrRemoteTOD"; 91 break; 92 } 93 return ret; 94 } 95 } 96 | Popular Tags |