* bình thường có nghĩa là một số loại dữ liệu chuyển đổi sau trong tiến trình. Các khái niệm của một void * để đại diện cho một con trỏ của một loại không rõ. Tóm lại, IntPtr cho phép lưu mô tả bằng cách sử dụng một cuộc gọi như SetFileSecurity (). | Using Cursors and Fonts The code for the SetEnvironmentVariable function is surprisingly simple which is why it s a wonder that Microsoft didn t add it to the .NET Framework. As you can see the function requires a key value pair input. The first string contains the key while the second string contains the value. Figure shows the output from this example. Figure Setting environmental strings is easy just supply a key and a value. Using Cursors and Fonts Many people think that they re stuck with the cursor and font originally presented in the console window others simply don t think too much about the option of changing either item. However it pays to know about both cursor and font manipulation for those times when you want to emphasize something on screen. The GetConsoleCursorInfo and SetConsoleCursorInfo functions help you with the console cursor. The GetConsoleFontSize function enables you to work with the font. You can specify the index of the current font or ask for the dimensions of any font supported by the console window. This function can help you perform tasks like size the console window for a specific font. When you only want to know about the current font you can use the GetCurrentConsoleFont function. You also need to use the GetCurrentConsoleFont function to obtain a font index number for the GetConsoleFontSize function. The GetCurrentConsoleFont function can retrieve the current console font or the font for the maximum window supported by the current window settings and the machine. If you feel that the console needs a bit of color you can use the FillConsoleOutputAttribute or the SetConsoleTextAttribute functions. You ll use the cursor-related functions relatively often because the console offers little in the way of console control otherwise. The example in Listing shows you how to move the cursor around. The example in this section will show you how to obtain and change the cursor characteristics. Console applications can use these .