亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bindery.c

?? 網絡打印機及文件共享 C程序源代碼 用于網絡通信
?? C
?? 第 1 頁 / 共 3 頁
字號:
#include <stdio.h>
#include <conio.h>
#include <string.h>
#include <stdlib.h>
#include <dos.h>

union  REGS    ipregs;
union  REGS    opregs;
struct SREGS   spregs;

struct DoubleWord
{
   unsigned int HiWord;
   unsigned int LoWord;
};
union  LongToWord
{
   unsigned long    dw;
   struct  DoubleWord w;
};

int  IntSwap();
long LongSwap();
void prin_secu();
int AddBinderyObjectToSet();
int ChangeBinderyObjectPassword();
int ChangeBinderySecurity();
int ChangePropertySecurity();
int CreateBinderyObject();
int CreateProperty();
int DeleteBinderyObject();
int DeleteBinderyObjectFromSet();
int DeleteProperty();
int GetBinderyObjectID();
int GetBinderyObjectName();
int ISBinderyObjectInSet();
int RenameBinderyObject();
int ReadPropertyValue();
int ScanBinderyObject();
int ScanProperty();
int VerifyBinderyObjectPassword();
int WritePropertyValue();
int CloseBindery();
int OpenBindery();
int GetBinderyAccessLevel();

void main()
{int choice,exitsign;
 char object_name[48],searchObjectName[48],new_object_name[48],member_object_name[48];
 char property_name[16],searchPropertyName[16];
 unsigned long object_ID,sequenceNumber;
 int object_type,searchObjectType, member_object_type,return_code;
 char object_flag,property_flag,is_set,objectHasProperties,propertyHasValue;
 char object_security,property_security,secu_low,secu_hign,access_level;
 char segmentNumber,moreSegments,propertyValue[128],erase_remaining_segments;
 char password[128],oldPassword[128], newPassword[128],ch;

 exitsign=0;
 while (exitsign==0)
 {
 clrscr();
 printf("\n\n\n                      The example for bindery DOS call\n\n\n");
 printf("   1. create a bindery object;        2. delete a bindery object;\n");
 printf("   3. Get bindery object ID;          4. Get bindery object name;\n");
 printf("   5. Scan bindery for object;        6. Rename bindery object;\n");
 printf("   7. Change bindery object security; 8. Create property;\n");
 printf("   9. Delete property;                10.Change property security;\n");
 printf("   11.Scan for property;              12.Read property value;\n");
 printf("   13.Write property value;           14.Verity bindery object passward;\n");
 printf("   15.change bindery object passward; 16.Add bindery object to set;\n");
 printf("   17.Delete bindery object from set; 18.Is bindery object in set;\n");
 printf("   19.Close bindery;                  20.Open bindery;\n");
 printf("   21.Get bindery access level;       22.Exit.\n\n\n\n\n");
 printf("                          Input your choice(1-22):");
 choice=0;
 scanf("%d",&choice);
 clrscr();
 switch (choice)
 {
 case 1:
    printf("\n\n                          Add a bindery object\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
    scanf("%d",&object_type);
	printf("\nobject_flag(0-static/1-active):");
    scanf("%d",&object_flag);
	printf("\nobject_security:");
	printf("\nWho can read(0-anyone/1-logged_user/2-object_oneself/3-supervisor):");
    scanf("\n%c",&secu_low);
	printf("\nWho can write(0-anyone/1-logged_user/2-object_oneself/3-supervisor):");
    scanf("\n%c",&secu_hign);
	object_security=((secu_hign-0x30)<<4)|(secu_low-0x30);
	return_code=CreateBinderyObject(object_name, object_type, object_flag, object_security);
	if (return_code==0)
	   printf("\n\n                    Success,Press any key to continue!" );
	else
	   printf("\n\n                    Failure,Press any key to continue!");
	ch=getch();
    break;
 case 2:
    printf("\n\n                       Delete a bindery object\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
    scanf("%d",&object_type);
	return_code=DeleteBinderyObject(object_name, object_type);
	if (return_code==0)
	   printf("\n\n                      Success,Press any key to continue!" );
	else
	   printf("\n\n                      Failure,Press any key to continue!");
	ch=getch();
	break;
 case 3:
    printf("\n\n                         Get bindery object ID\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
    scanf("%d",&object_type);
	return_code=GetBinderyObjectID(object_name, object_type,&object_ID);
	if (return_code==0)
	   {printf("\n\nobject_ID:%lx",object_ID );
	   printf("\n\n                      Success,Press any key to continue!" );
	   }
	else
	   printf("\n\n                      Failure,Press any key to continue!");
	ch=getch();
	break;
 case 4:
    printf("\n\n                         Get bindery object name\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_id:");
	scanf("%lx",&object_ID);
	return_code=GetBinderyObjectName(object_ID, object_name, object_type);
	if (return_code==0)
	   {printf("\n\nobject_name:%s",object_name );
	    printf("\n\n                     Success,Press any key to continue!" );
	   }
	else
	   printf("\n\n                      Failure,Press any key to continue!");
	ch=getch();
	break;
 case 5:
    printf("\n\n                         Scan bindery for object \n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",searchObjectName);
	printf("\nobject_type(1-user/2-group):");
    scanf("%d",&searchObjectType);
	object_ID=0xffffffff;
	ch='n';
	do
	{
	return_code=ScanBinderyObject(searchObjectName, searchObjectType, &object_ID, object_name,
		    &object_type, &objectHasProperties, &object_flag, &object_security);
	if (return_code==0)
	   {if (ch=='y')
           {printf("\n\nPress any key to show another object\n\n");
            ch=getch();
           }
        printf("\n\nobject_ID:%lx",object_ID );
	    printf("\n\nobject_name:%s",object_name );
	    switch (object_type)
	    {case 1:printf("\n\nobject_type:user");break;
	     case 2:printf("\n\nobject_type:group");break;
	     }
        if (object_flag==0)
     		printf("\n\nThe object is static!");
        else
	    	printf("\n\nThe object is dynatic!");
	    printf("\n\nobject_security:");
        prin_secu(object_security);
	    if (objectHasProperties==0)
		   printf("\n\nThe object has not properties!");
	    else
		   printf("\n\nThe object has properties!");
	    ch='y';
	   }
	}
    while (return_code==0);
	if (ch=='y')
	   printf("\n\n                        Success,Press any key to continue!" );
	else
	   printf("\n\n                        Failure,Press any key to continue!");
	ch=getch();
	break;
 case 6:
    printf("\n\n                           Rename a bindery object\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
    scanf("%d",&object_type);
	printf("\nnew_object_name:");
	scanf("%s",new_object_name);
	return_code=RenameBinderyObject(object_name, new_object_name, object_type);
    if (return_code==0)
	   printf("\n\n                           Success,Press any key to continue!" );
	else
	   printf("\n\n                           Failure,Press any key to continue!");
	ch=getch();
	break;
 case 7:
    printf("\n\n                              Change bindery object security\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
    scanf("%d",&object_type);
	printf("\nnew_object_security:");
	printf("\nWho can read(0-anyone/1-logged_user/2-object_oneself/3-supervisor):");
    scanf("\n%c",&secu_low);
	printf("\nWho can write(0-anyone/1-logged_user/2-object_oneself/3-supervisor):");
    scanf("\n%c",&secu_hign);
	object_security=((secu_hign-0x30)<<4)|(secu_low-0x30);
	return_code=ChangeBinderySecurity(object_name, object_type, object_security);
    if (return_code==0)
	   printf("\n\n                            Success,Press any key to continue!" );
	else
	   printf("\n\n                            Failure,Press any key to continue!");
	ch=getch();
    break;
 case 8:
    printf("\n\n                               Create property;\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
	scanf("%d",&object_type);
	printf("\nproperty_name:");
	scanf("%s",property_name);
	printf("\nproperty_flag(0-static/1-active):");
	scanf("%d",&property_flag);
	printf("property_flag(0-item/1-set):");
	scanf("%d",&is_set);
	property_flag+=is_set<<1;
	printf("\nproperty_security:");
	printf("\nWho can read(0-anyone/1-logged_user/2-object_oneself/3-supervisor/4-netware):");
    scanf("\n%c",&secu_low);
	printf("\nWho can write(0-anyone/1-logged_user/2-object_oneself/3-supervisor/4-netware):");
    scanf("\n%c",&secu_hign);
	property_security=((secu_hign-0x30)<<4)|(secu_low-0x30);
	return_code=CreateProperty(object_name, object_type, property_name,
			      property_flag, property_security);
    if (return_code==0)
	   printf("\n\n                         Success,Press any key to continue!" );
	else
	   printf("\n\n                         Failure,Press any key to continue!");
	ch=getch();
	break;
 case 9:
    printf(" \n\n                           Delete property;\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
	scanf("%d",&object_type);
	printf("\nproperty_name:");
	scanf("%s",property_name);
	return_code=DeleteProperty(object_name, object_type, property_name);
    if (return_code==0)
	   printf("\n\n                         Success,Press any key to continue!" );
	else
	   printf("\n\n                         Failure,Press any key to continue!");
	ch=getch();
	break;
 case 10:
    printf("\n\n                           Change property security;\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
	scanf("%d",&object_type);
	printf("\nproperty_name:");
	scanf("%s",property_name);
	printf("\nnew_property_security:");
	printf("\nWho can read(0-anyone/1-logged_user/2-object_oneself/3-supervisor/4-netware):");
    scanf("\n%c",&secu_low);
	printf("\nWho can write(0-anyone/1-logged_user/2-object_oneself/3-supervisor/4-netware):");
    scanf("\n%c",&secu_hign);
	property_security=((secu_hign-0x30)<<4)|(secu_low-0x30);
	return_code=ChangePropertySecurity(object_name,object_type,property_name,property_security);
    if (return_code==0)
	   printf("\n\n                           Success,Press any key to continue!" );
	else
	   printf("\n\n                           Failure,Press any key to continue!");
	ch=getch();
	break;
 case 11:
    printf(" \n\n                             Scan for property;\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
	scanf("%d",&object_type);
	printf("\nsearchproperty_name:");
	scanf("%s",searchPropertyName);
	sequenceNumber=0xffffffff;
	ch='n';
	do
	{
	return_code=ScanProperty(object_name,object_type,searchPropertyName,&sequenceNumber,property_name, &property_flag, &property_security, &propertyHasValue);
	if (return_code==0)
	   {if (ch=='y')
           {printf("\n\nPress any key to show another property\n\n");
            ch=getch();
           }
        ch='y';
	    printf("\n\nproperty_name:%s",property_name);
	    if (property_flag==0)
		   printf("   \nThe property is static!");
	    else
		   printf("   \nThe property is dynatic!");
	    printf("   \n\nproperty_security:");
        prin_secu(property_security);
	    if (propertyHasValue==0)
		   printf("   \n\n The property has not value!");
	    else
		   printf("    \n\nThe property has value!");
	   }
	}
	while (return_code==0);
	if (ch=='y')
	   printf("\n\n                         Success,Press any key to continue!" );
	else
	   printf("\n\n                         Failure,Press any key to continue!");
	ch=getch();
    break;
 case 12:
    printf("\n\n                            Read property value;\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
	scanf("%d",&object_type);
	printf("\nproperty_name:");
	scanf("%s",property_name);
	segmentNumber=1;
	printf("\nproperty_value:");
	do
	{
	return_code=ReadPropertyValue(object_name, object_type, property_name, segmentNumber,
		      propertyValue, &moreSegments, &property_flag);
	if (return_code==0) printf("%s",propertyValue);
	segmentNumber+=1;
	}
	while ((return_code==0)&&(moreSegments==-1));
	if (return_code==0)
	   {if (property_flag==0)
		   printf("\nThe property is static!");
	    else
		   printf("\nThe property is dynatic!");
	    printf("\n\n                        Success,Press any key to continue!" );
	   }
	else
	   printf("\n\n                         Failure,Press any key to continue!");
	ch=getch();
	break;
 case 13:
    printf("\n\n                            Write property value;\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
	scanf("%d",&object_type);
	printf("\nproperty_name:");
	scanf("%s",property_name);
	printf("\nerase remaining segments(y/n)?");
	ch=getch();
	if (ch=='Y'||ch=='y')
	   erase_remaining_segments=0;
	else
	   erase_remaining_segments=1;
	segmentNumber=1;
	do
	{
	printf("\nproperty_value:(128byte)");
	scanf("%s",propertyValue);
	return_code=WritePropertyValue(object_name, object_type, property_name,
		       segmentNumber, propertyValue,erase_remaining_segments);
	segmentNumber+=1;
	if (return_code==0)
	    {printf("\nIs there more value?(y/n)");
	     ch=getch();
	     if (ch=='Y'||ch=='y')
    		moreSegments=1;
	     else
	    	moreSegments=0;
	    }
	}
	while ((return_code==0)&&(moreSegments==1));
    if (return_code==0)
	   printf("\n\n                     Success,Press any key to continue!" );
	else
	   printf("\n\n                     Failure,Press any key to continue!");
	ch=getch();
	break;
 case 14:
    printf("\n\n                        Verity Bindery Object Password\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
	scanf("%d",&object_type);
	printf("\npassword:");
	scanf("%s",password);
	return_code=VerifyBinderyObjectPassword(object_name, object_type, password);
    if (return_code==0)
	   printf("\n\n                     Success,Press any key to continue!" );
	else
	   printf("\n\n                     Failure,Press any key to continue!");
	ch=getch();
	break;
 case 15:
    printf("\n\n                        Change Bindery Object Password\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
	scanf("%d",&object_type);
	printf("\nold_password:");
	scanf("%s",oldPassword);
	printf("\nnew_password:");
	scanf("%s",newPassword);
	return_code=ChangebinderyObjectPassword(object_name, object_type,
                                oldPassword, newPassword);
    if (return_code==0)
	   printf("\n\n                         Success,Press any key to continue!" );
	else
	   printf("\n\n                         Failure,Press any key to continue!");
	ch=getch();
	break;
 case 16:
    printf("\n\n                         Add bindery object to set\n\n\n");
	printf("Please input the following datas: ");
	printf("\n\nobject_name:");
	scanf("%s",object_name);
	printf("\nobject_type(1-user/2-group):");
    scanf("%d",&object_type);
	printf("\nproperty_name:");
	scanf("%s",property_name);
	printf("\nmember_object_name:");
	scanf("%s",member_object_name);
	printf("\nmember_object_type(1-user/2-group):");
	scanf("%d",&member_object_type);
	return_code=AddBinderyObjectToSet(object_name, object_type,

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧洲一区二区三区在线| 99久久精品国产一区二区三区| 91视频在线观看| 亚洲成在线观看| 丁香网亚洲国际| 91精品久久久久久蜜臀| 亚洲婷婷国产精品电影人久久| 久久国产精品第一页| 日本高清无吗v一区| 国产欧美一区二区精品久导航| 日精品一区二区三区| 色噜噜狠狠成人网p站| 中文字幕国产一区二区| 国产一区二区三区四区五区美女| 91精品蜜臀在线一区尤物| 亚洲精品ww久久久久久p站| 国产成人精品一区二| 日韩免费高清视频| 日韩av电影天堂| 欧美唯美清纯偷拍| 悠悠色在线精品| 99久久免费精品| 国产精品黄色在线观看| 国产福利一区二区三区视频在线| 欧美本精品男人aⅴ天堂| 性做久久久久久久久| 色偷偷久久一区二区三区| 国产精品第五页| 福利电影一区二区| 国产偷国产偷亚洲高清人白洁| 久久精品国产色蜜蜜麻豆| 制服丝袜激情欧洲亚洲| 午夜视频在线观看一区| 欧美日韩一级片网站| 亚洲国产成人av| 欧美亚一区二区| 亚洲一区在线电影| 欧美色图免费看| 亚洲电影在线免费观看| 91官网在线观看| 一级特黄大欧美久久久| 在线这里只有精品| 亚洲国产精品久久久男人的天堂| 欧美亚州韩日在线看免费版国语版| 亚洲精品ww久久久久久p站| 日本久久电影网| 亚洲成人自拍偷拍| 欧美久久一区二区| 日韩精品一二三| 欧美一区二区不卡视频| 裸体歌舞表演一区二区| 精品国产一区二区三区av性色| 日本人妖一区二区| 日韩一区二区不卡| 极品少妇xxxx精品少妇| 久久久一区二区三区捆绑**| 国产精品12区| 中文字幕在线一区二区三区| 色综合一区二区| 国产伦精品一区二区三区免费迷| 欧美xxxxx牲另类人与| 国内一区二区视频| 国产精品久久久久久久浪潮网站| 91麻豆国产福利精品| 亚洲国产一区在线观看| 91精品久久久久久久91蜜桃| 精品无人码麻豆乱码1区2区 | 久久久午夜精品| 顶级嫩模精品视频在线看| 亚洲精品亚洲人成人网| 6080午夜不卡| 国产一区二区三区综合| 亚洲欧洲三级电影| 欧美日韩在线亚洲一区蜜芽| 久久精品国产久精国产爱| 国产午夜精品一区二区三区视频| 99久久国产综合精品女不卡| 亚洲成人精品一区| 久久综合九色综合欧美亚洲| 不卡电影免费在线播放一区| 亚洲永久精品国产| 欧美mv日韩mv国产网站| 成人h动漫精品| 午夜激情久久久| 久久久久国产精品厨房| 91麻豆精东视频| 日本 国产 欧美色综合| 国产欧美精品一区aⅴ影院| 在线亚洲欧美专区二区| 蜜臀av性久久久久蜜臀aⅴ四虎| 中文字幕高清不卡| 欧美区一区二区三区| 国产精品一线二线三线精华| 一区二区三区精品视频| 26uuu国产电影一区二区| 91麻豆免费视频| 久久国产精品99久久人人澡| 亚洲视频在线一区| 精品国产污网站| 色综合久久88色综合天天6| 久久国内精品自在自线400部| 亚洲桃色在线一区| 欧美电影免费观看高清完整版在| 99精品视频一区二区三区| 免费观看成人鲁鲁鲁鲁鲁视频| 中文字幕欧美一区| 欧美大黄免费观看| 色婷婷久久一区二区三区麻豆| 久久成人18免费观看| 亚洲一区二区三区四区在线| 国产欧美视频在线观看| 91精品一区二区三区在线观看| 波多野结衣91| 久久国产综合精品| 亚洲午夜在线电影| 国产精品国产三级国产aⅴ入口 | 成人av第一页| 麻豆中文一区二区| 亚洲在线观看免费视频| 国产精品理伦片| 久久蜜桃av一区二区天堂| 欧美日韩视频在线第一区| 99久久er热在这里只有精品66| 九九国产精品视频| 天天操天天色综合| 亚洲精品精品亚洲| 国产精品入口麻豆原神| 精品乱人伦小说| 337p亚洲精品色噜噜狠狠| 国产精品全国免费观看高清| 精品久久久久久久人人人人传媒| 欧美性一区二区| 91色porny| 成人高清在线视频| 国产夫妻精品视频| 久草热8精品视频在线观看| 婷婷综合另类小说色区| 一区二区三区日本| 亚洲欧美日韩一区二区三区在线观看| 国产亚洲1区2区3区| 精品国产精品网麻豆系列| 7777精品伊人久久久大香线蕉最新版| 91国产成人在线| 色婷婷亚洲综合| 91久久奴性调教| 91麻豆精东视频| 色综合婷婷久久| 色呦呦网站一区| 91香蕉视频污在线| 91猫先生在线| 色哟哟亚洲精品| 日本道精品一区二区三区| 色老汉一区二区三区| 色婷婷精品久久二区二区蜜臀av| gogo大胆日本视频一区| 不卡的av在线| av在线这里只有精品| 99综合电影在线视频| 91视频一区二区三区| 色婷婷综合久久久久中文一区二区 | 久久精品男人天堂av| 久久久久88色偷偷免费| 国产亚洲成年网址在线观看| 国产视频一区在线播放| 日本一区二区高清| 中文字幕中文字幕一区二区| 综合激情网...| 亚洲一区二区欧美激情| 亚洲午夜久久久久久久久电影院| 亚洲成av人片| 免费精品视频最新在线| 国内精品伊人久久久久影院对白| 黄色精品一二区| 成人免费视频播放| 97se亚洲国产综合自在线观| 色综合久久天天| 欧美三级日韩在线| 日韩西西人体444www| 精品乱码亚洲一区二区不卡| 国产欧美日韩精品a在线观看| 国产精品麻豆99久久久久久| 一区二区在线免费| 天天做天天摸天天爽国产一区| 日本sm残虐另类| 国产成人精品亚洲777人妖 | 久久精品99国产国产精| 国产精品一区二区在线观看不卡 | 日本成人超碰在线观看| 国产伦精品一区二区三区视频青涩 | 亚洲精品一区二区三区福利| 久久综合99re88久久爱| 国产精品麻豆视频| 亚洲国产精品麻豆| 狠狠色丁香久久婷婷综合_中| www.成人网.com| 欧美日韩精品免费观看视频| 精品国产三级a在线观看| 日韩一区在线看| 日韩高清中文字幕一区| 国产aⅴ精品一区二区三区色成熟|