<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ⅴ网站| 麻豆国产入口在线观看免费| 亚洲精品视频免费| 亚洲高清一区二区三区电影| 夜夜嘿视频免费看| 亚洲一线产品二线产品| 九九九精品成人免费视频| 亚洲一区二区三区四区视频| 免费看黄视频网站| 亚洲天堂2016| 国产精品成人四虎免费视频| 国产亚洲综合视频| 亚洲日本在线观看视频| 中文无码日韩欧免费视频| 亚洲午夜久久久久久久久电影网 | 亚洲国产美女精品久久久| 日韩免费观看的一级毛片| 理论亚洲区美一区二区三区| 亚洲国产成人影院播放| 中文字幕免费观看全部电影| 亚洲国产精品一区二区久久hs| 无码国产精品一区二区免费16| 亚洲国产精品综合久久2007| 在线免费视频一区二区| 牛牛在线精品免费视频观看| 亚洲乱码精品久久久久..| 1000部免费啪啪十八未年禁止观看| 亚洲一级毛片在线播放| 免费国产不卡午夜福在线 | 99久久精品免费精品国产| 亚洲伊人精品综合在合线| 国产成人免费一区二区三区| 久久久精品国产亚洲成人满18免费网站 | 亚洲国产电影av在线网址| 污污网站免费观看| 亚洲一线产品二线产品| 亚洲愉拍99热成人精品热久久| 亚洲卡一卡2卡三卡4卡无卡三| 一个人在线观看视频免费| 免费国产黄网站在线观看动图| 久久亚洲精品国产精品|