<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培訓(xùn)筆記三

    Posted on 2005-04-11 12:32 大阿福 閱讀(323) 評(píng)論(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


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     
    主站蜘蛛池模板: 亚洲国产精品久久久天堂| 久久精品中文字幕免费| 99久久久国产精品免费牛牛 | 成年免费大片黄在线观看岛国 | 情人伊人久久综合亚洲| 亚洲大片免费观看| 午夜免费福利在线| 国产久爱免费精品视频| 亚洲国产精品白丝在线观看| 日本亚洲欧洲免费天堂午夜看片女人员 | 无码中文在线二区免费| 免费观看又污又黄在线观看| 亚洲国产精品久久66| 日韩在线视频免费看| 精品国产一区二区三区免费| 亚洲欧美第一成人网站7777| 日韩欧毛片免费视频| 中文字幕亚洲精品无码| 亚洲精品一品区二品区三品区| 黄色片在线免费观看| 中文字幕不卡免费视频| 亚洲AV日韩精品久久久久久久 | 在线观看片免费人成视频无码 | 亚洲AV永久无码精品网站在线观看 | 亚洲午夜电影在线观看| 18国产精品白浆在线观看免费| 丰满少妇作爱视频免费观看| 亚洲91精品麻豆国产系列在线| 国产亚洲A∨片在线观看| 免费看的黄色大片| 亚洲网站免费观看| 中文字幕在线视频免费| 亚洲精品色在线网站| 亚洲国产91精品无码专区| 日本成年免费网站| 99久久免费观看| 一区二区三区无码视频免费福利| 国产亚洲精品免费| 国产国拍亚洲精品mv在线观看| 免费国产在线观看| 日本免费中文字幕|