<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 38, comments - 9, trackbacks - 0, articles - 1

    參加.Net培訓筆記三

    Posted on 2005-04-11 12:32 大阿福 閱讀(327) 評論(0)  編輯  收藏

    windows develop:
    1.System.Windows
    1) MDI form:
    2) Controls:
    3) right mouse menu:
    access system clipboad:
    2.GDI+
    System.Drawing
    dumpbin.exe

    DC -> Graphics

    scale transform:

    3. File System:
    System.IO
    1)file/dir: copy/move/delete/create

    Directory/DirectoryInfo:

    File/FileInfo:

    2)read/write files:
    Stream:
    FileStream/Networkstream/MemoryStream/BufferedStream/CryptoStream

    string handle:

    string is fixed.

    4. NetWork:
    System.Net -> WinSocket API
    TCP/IP ->  Scoket IP:portnumber (80/25/110/21...) 1-1024

    http:
    smtp: RFC 822

    helo servername
    mail from:<email>
    rcpt to:<target email>
    data
    .

    pop3:

    5.windows services:
    process -> multi-services
    1)Create window service project
    2)Add onstart/onstop code
    3)Add installer
    4)use installutil.exe to install the service.

    6. interaction with OS:
    1).NET Framework: System.Diagnostics

    monitor window services:
    a)sockets -> 80(http)/25(smtp)
    b)non-sockets -> monitor all threads of that process.


    System.Security.Principle

                bool returnValue = LogonUser(userName, domainName, Console.ReadLine(),
                    LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT,
                    ref tokenHandle);


                WindowsIdentity newId = new WindowsIdentity(dupeTokenHandle);
                WindowsImpersonationContext impersonatedUser = newId.Impersonate();

               // do something

                impersonatedUser.Undo();


    2)API
    System.Runtime.InteropServices

    platform invoke -> P/Invoke

    Hook

    3)COM
    RCW: tlbimp.exe/vs.net

    CCW: tlbexp.exe

    4)WMI:windows management instrumentation
    System.management

    5)Access registry:


    Serialization: DeSerialization -> binary/xml

    object/objectRef -> stream.
    1)allocate an unique ID for an object.
    2)descript the relationships of all the objects
    3)save object's memeber fields.


    lab:
    1. create file explorer.
    2. create dotnet notepad that similiars to the windows's notepad
    3. create SQL Management tools that allow us to monitor the size of database and log files.
    4. create TcpServer that can get http header from client's IE.

    April 16/17


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 一级做性色a爰片久久毛片免费| 亚洲一级毛片免费观看| 男女一边桶一边摸一边脱视频免费 | 亚洲精品无码久久千人斩| 国产精品亚洲а∨天堂2021| 99re6在线精品免费观看| 亚洲AV成人潮喷综合网| 国产成人亚洲精品电影| 又粗又黄又猛又爽大片免费| 成人婷婷网色偷偷亚洲男人的天堂| 毛片免费观看视频| 亚洲熟妇中文字幕五十中出| av片在线观看永久免费| 亚洲中文无码永久免费| 亚洲一区二区三区久久| 成人国产精品免费视频| 久久亚洲国产午夜精品理论片 | 亚洲男人天堂影院| 日日狠狠久久偷偷色综合免费| 免费人成网站在线高清| 国产精品永久免费| 亚洲狠狠婷婷综合久久久久| 久久青草国产免费观看| 亚洲国产夜色在线观看| 无码日韩人妻av一区免费| 亚洲中文字幕无码久久2020| 四虎精品视频在线永久免费观看 | 亚洲精品第一国产综合精品99| 亚洲伊人久久大香线蕉在观| 少妇高潮太爽了在线观看免费| 亚洲欧洲无码一区二区三区| 日本一线a视频免费观看| 成人精品综合免费视频| 亚洲AV无码久久| a毛片在线看片免费| 亚洲美免无码中文字幕在线| 四虎影视免费在线| 国产精品高清视亚洲精品| 国产精品公开免费视频| 成全视频免费观看在线看| 久久国产成人亚洲精品影院|