TAILIEUCHUNG - Lecture Computer organization and assembly language: Chapter 29 - Dr. Safdar Hussain Bouk

This chapter continues our survey of process and thread scheduling. We begin with an examination of issues raised by the availability of more than one processor. A number of design issues are explored. | CSC 221 Computer Organization and Assembly Language Lecture 29: Win32 Console Programming-02 Lecture 28: Review Macros Introducing Macros Defining Macros Invoking Macros Windows 32 Console Programming Background Information Win32 Console Programs API and SDK Windows Data Types Standard Console Handles Console Input Console Output Lecture Outline Win32 API Functions that create, read, and write to files: CreateFile ReadFile WriteFile SetFilePointer Console Window Manipulation Functions Screen buffer Console window Controlling the cursor Controlling the text color Lecture Outline Time and Date Functions GetLocalTime, SetLocalTime GetTickCount, Sleep GetDateTime SYSTEMTIME Structure Creating a Stopwatch Timer Graphical Window Functions POINT, RECT Structures MSGStruct, WNDCLASS Structures MessageBox Function WinMain, WinProc Procedures (cont.) File Manipulation Win32 API Functions that create, read, and write to files: CreateFile ReadFile WriteFile SetFilePointer CreateFile (1 of 5) CreateFile either creates a new file or opens an existing file. If successful, it returns a handle to the open file; otherwise, it returns a special constant named INVALID_HANDLE_VALUE. Prototype: CreateFile PROTO, pFilename:PTR BYTE, ; ptr to filename desiredAccess:DWORD, ; access mode shareMode:DWORD, ; share mode lpSecurity:DWORD, ; ptr to security attribs creationDisposition:DWORD, ; file creation options flagsAndAttributes:DWORD, ; file attributes htemplate:DWORD ; handle to template file If the file was created successfully, EAX contains a valid file handle. CreateFile (2 of 5) Parameter Description lpFileName Points to a null-terminated string containing either a partial or fully qualified filename (drive:\path\filename). dwDesiredAccess Specifies how the file will be accessed (reading or writing). dwShareMode Controls the ability for multiple programs to access the file while it is open. lpSecurityAttributes Points to a security structure controlling security rights. .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.