FileDocCategorySizeDatePackage
MsrpcShareEnum.javaAPI DocJCIFS 1.3.17 API2051Tue Oct 18 15:26:24 BST 2011jcifs.dcerpc.msrpc

MsrpcShareEnum

public class MsrpcShareEnum extends srvsvc.ShareEnumAll

Fields Summary
Constructors Summary
public MsrpcShareEnum(String server)

        super("\\\\" + server, 1, new srvsvc.ShareInfoCtr1(), -1, 0, 0);
        ptype = 0;
        flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG;
    
Methods Summary
public FileEntry[]getEntries()

        /* The ShareInfo1 class does not implement the FileEntry
         * interface (because it is generated from IDL). Therefore
         * we must create an array of objects that do.
         */
        srvsvc.ShareInfoCtr1 ctr = (srvsvc.ShareInfoCtr1)info;
        MsrpcShareInfo1[] entries = new MsrpcShareInfo1[ctr.count];
        for (int i = 0; i < ctr.count; i++) {
            entries[i] = new MsrpcShareInfo1(ctr.array[i]);
        }
        return entries;