utils/rpccheck.c

ソースコードを見る。

関数

 main ()


関数

main ( void   ) 

rpccheck.c23 行で定義されています。

参照先 ctxDEBUGLEVELprintf()prs_init()samr_io_r_query_userinfo()setup_logging()strchr_m()talloc_init().

00024 {
00025         char filter[]="0123456789ABCDEF";
00026 
00027         char s[128];
00028         char d=0;
00029         int x=0;
00030         prs_struct ps;
00031         TALLOC_CTX *ctx;
00032 
00033         /* change that struct */
00034         SAMR_R_QUERY_USERINFO rpc_stub;
00035         
00036         ZERO_STRUCT(rpc_stub);
00037 
00038         setup_logging("", True);
00039         DEBUGLEVEL=10;
00040 
00041         ctx=talloc_init("main");
00042         if (!ctx) exit(1);
00043 
00044         prs_init(&ps, 1600, 4, ctx, MARSHALL);
00045 
00046         while (scanf("%s", s)!=-1) {
00047                 if (strlen(s)==2 && strchr_m(filter, *s)!=NULL && strchr_m(filter, *(s+1))!=NULL) {
00048                         d=strtol(s, NULL, 16);
00049                         if(!prs_append_data(&ps, &d, 1))
00050                                 printf("error while reading data\n");
00051                 }
00052         }
00053         
00054         prs_switch_type(&ps, UNMARSHALL);
00055         prs_set_offset(&ps, 0);
00056         
00057         /* change that call */  
00058         if(!samr_io_r_query_userinfo("", &rpc_stub, &ps, 0))
00059                 printf("error while UNMARSHALLING the data\n");
00060 
00061         printf("\n");
00062 }


Sambaに対してSat Aug 29 21:24:37 2009に生成されました。  doxygen 1.4.7