Text Services Framework
- other webpage : http://windowssdk.msdn.microsoft.com/en-gb/library/ms629032.aspx
Text Services Framework
Overview of text services framework for theTablet PC.
When the Text Services Framework (TSF) is enabled on a control with a PenInputPanel object attached, it allows the PenInputPanel object to insert text directly. If the control does not support Text Services Framework (TSF), the PenInputPanel object must resort to using the SendInput function to insert text.
The ability to insert text directly becomes very important on East Asian systems, where using the SendInput function can produce incorrect characters.
TSF provides an interface for correcting recognition errors enabling the end user to correct, rewrite, or even dictate the proper text.
TSF is enabled by calling the EnableTsf method with the enable parameter set to TRUE.
[C#]
PenInputPanel thePenInputPanel = new PenInputPanel(theControl);
//...
thePenInputPanel.EnableTsf(true);
A PenInputPanel object attached to a InkEdit Read the rest of this entry »
Telephony Application Programming Interface
The Telephony Application Programming Interface (TAPI) is an API, which enables PCs running Microsoft Windows to use telephone services. Different versions of TAPI are available on different versions of Windows. TAPI was introduced in 1993 as the result of joint development by Microsoft and Intel. The first publicly available version of TAPI was version 1.3, which was released as a patch on top of Microsoft Windows 3.1. Version 1.3 is no longer supported, although some MSDN development library CDs still contain the files and patch.
With Microsoft Windows 95, TAPI was integrated into the operating system. The first version on Windows 95 was TAPI 1.4. That version was not very different from 1.3. The biggest enhancement of TAPI 1.4 was support for 32-bit applications.
The TAPI standard supports both connections from individual computers and LAN connections serving any number of computers.
TAPI 2.0 was introduced with Windows NT 4.0. Version 2.0 was the first version on the Windows NT platform. It made a nice step forward by supporting some ACD and PBX specific functionality.
In 1997, Microsoft released TAPI version 2.1. This version of TAPI was available as a downloadable update and was the first version to be supported on both the Microsoft Windows 95 and NT/2000 platforms.
TAPI 3.0 was released in 1999 together with Windows 2000. This version enables IP telephony by providing simple and generic methods for making connections between two (using H.323) or more (using IP Multicast) computers and now also offers the ability to access any media streams involved in the connection.
The release of Windows XP included TAPI 3.1. TAPI 3.1 supports the Microsoft Component Object Model and provides a set of COM objects to application programmers. This version uses File Terminals which allow applications to record streaming data to a file and play this recorded data back to a stream. A USB Phone TSP (TAPI Service Provider) was also included which allows an application to control a USB phone and use it as a streaming endpoint.
The Telephony Server Application Programming Interface (TSAPI) is a similar standard developed by Novell for NetWare servers.
[edit]
TAPI 2.x vs TAPI 3.x
It is a common error to think that TAPI 3.0 (or TAPI 3.1) is the “improved” version of TAPI 2.x. The fact is that TAPI 2.x is written in C/C++ so that it could be accessible from C/C++ or unmanaged code. On the other hand, TAPI 3.x is designed with the COM (Component Object Model) interface, with the intention of making it accessible from managed code (.NET environment). TAPI 3.x has a slightly different set of functions and does not neccessarily support all functionalities that TAPI 2.x does. One of the most noticeable differences between those two are the supports to Phone class (speakerphone volume control in particular), for that TAPI 2.x appears to be the better choice for programmer.
[edit]
TAPI compliant hardware
Telephony hardware that supports TAPI includes most voice modems and some telephony cards such as Dialogic boards.
TAPI
|
TAPI[태피]는 전화나 비디오폰을 통해 사용자나 컴퓨터가 전세계 어디에 있는 사람들(또는 전화에 연결된 자원들)과도 통화를 할 수 있도록 해주는 프로그램의 표준 인터페이스를 말한다. 자신의 컴퓨터에 TAPI가 장착되어 있고, 관련 응용 프로그램과 하드웨어 설정이 올바르게 되어있다고 가정하면, 다음과 같이 해 볼 수 있을 것이다.
인텔과 마이크로소프트가 협력하여 개발한 TAPI는 윈도우95/98 및 NT 운영체계에 포함되어 있다. TAPI를 사용하면, 프로그래머들은 보통의 PSTN, 디지털 ISDN 그리고 사설교환기 등을 포함한 다른 전화 시스템들에 대해 자세한 내용을 알지 못하더라도 된다는 장점이 있다. 각 전화시스템 하드웨어 제공자 (예를 들어 모뎀 제작자나 ISDN 카드 제작자)가 자신의 하드웨어와 직접 접속할 수 있도록 특유한 소프트웨어 드라이버를 제공한다. |
|
TAPI는 다이얼링과 통화 단절에 관한 고급 인터페이스를 제공한다. 다이얼링을 위해 ATDT 스트링을, 전화를 끊기 위해 ATH 스트링을 인코드하는 대신, 프로그래머는 보다 간단한 “function call”을 사용하면 된다.
TAPI는 응용프로그램 인터페이스에 추가하여, 드라이버 소프트웨어를 작성하는 하드웨어 공급자들을 위해 SPI (Service Provider Interface)를 포함하고 있다. TAPI DLL이 API를 SPI에 사상시키고 입출력 량을 조화시킨다.
[command]Date
Displays the current system date setting. Used without parameters, date displays the current system date setting and prompts you to type a new date.
Syntax
date [mm-dd-yy] [/t]
Parameters
mm-dd-yy : Sets the date specified where mm is month, dd is day, and yy is year.
/t : Displays the current date without prompting you for a new date.
/? : Displays help at the command prompt.
Remarks
| • | You must separate values for mm, dd, and yy with periods (.), hyphens (-), or slash marks (/). |
| • | Valid mm values are 1 through 12. |
| • | Valid dd values are 1 through 31. |
| • | Valid yy values are 80 through 99, or 1980 through 2099. |
| • | Windows XP changes the month and year automatically, whether the month has 28, 29, 30, or 31 days. |
Examples
To change the date to August 3, 2000, type any of the following:
08.03.00
08-03-00
08/03/00
To display the current system date, type:
date /t
Formatting legend
| Format | Meaning |
[command] Time
Displays or sets the system time. Used without parameters, time displays the system time and prompts you to enter a new time.
Syntax
time [/t] [/time] [hours:[minutes[:seconds[.hundredths]]][{A|P}]]
Parameters
/t : Displays the current system time, without prompting you to enter a new time.
/time : Same as /t.
hours : Specifies the hour. Valid values are in the range 0 through 23.
minutes : Specifies minutes. Valid values are in the range 0 through 59.
seconds : Specifies seconds. Valid values are in the range 0 through 59.
hundredths : Specifies hundredths of a second. Valid values are in the range 0 through 99.
{A|P} : Specifies A.M or P.M. for the 12-hour time format. If you type a valid 12-hour time but do not type A or P, time uses A for A.M.
/? : Displays help at the command prompt.
Remarks
| • | When using time without parameters, press ENTER to keep the same time. |
| • | Using the /t parameter
The /t command-line option is only available if command extensions are enabled (that is, the default). For more information about enabling and disabling command extensions, see cmd in Related Topics. |
| • | Specifying an invalid time format
If you specify the time in an invalid format the following message is displayed and the system then waits for you to enter the time in the correct format: Invalid time Enter new time:_ |
| • | Changing the time format
You can change the time format by changing the setting in Date and Time in Control Panel. For just the MS-DOS subsystem, change the country setting in your Config.nt file. Depending on the Country/Region selected, time is displayed in the 12-hour format or the 24-hour format. If you are setting the time in the 12-hour format, specify P for hours after noon. |
Examples
To set your computer clock to 1:36 P.M., type either of the following commands:
time 13:36
time 1:36P
명령행에서 컴퓨터 이름 변경하기
source: http://qaos.com/article.php?sid=1902
며칠전 윈도우즈 게시판에 컴퓨터 이름 변경을 명령행에서 하고 싶습니다.라는 글이 올라왔다. 갑작스러운 열풍인지 모르지만 요즘 게시판에 올라오는 글들을 보면 명령행에 관한 질문이 많다. 사실 배치파일은 누구나 작성하기 쉽고, 작고 단순한 유틸리티주1만 있으면 못하는 작업이 없기때문에 상당히 유용한 기능이다. 명령행에서 컴퓨터의 이름을 변경하는 것은 사실은 아주 쉽다. 별도의 유틸리티도 필요없으며, XP 자체의 기능을 그대로 이용하면 된다. article()
XP 에서 컴퓨터의 이름은 근본적으로 레지스트리에 저장된다. 이 레지스트리만 변경하면 컴퓨터의 이름은 바로 변경된다. 따라서 레지스트 파일(.REG)을 사용하는 경우 컴퓨터 이름에 관련된 레지스트리만 추가하면 되며, 실행시 컴퓨터의 이름을 입력해서 변경하고 싶다면 다음과 갈은 간단한 배치파일을 사용하면된다.
@echo off REM 지역변수 활성화 setlocal REM 코드페이지 한글로 변경 chcp 949:message REM 컴퓨터 이름 입력 set /p ren=변경할 컴퓨터 이름: REM 컴퓨터 이름이 NUL인 경우 종료 if /i [%ren%]==[] goto end :rename REM 사용자가 입력한 이름으로 컴퓨터 이름 변경 echo y|reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip \Parameters /v Hostname /t REG_SZ /d %ren% > nul echo y|reg add HKLM\SYSTEM\CurrentControlSet\Services\Tcpip \Parameters /v "NV Hostname" /t REG_SZ /d %ren% > nul echo y|reg add HKLM\SYSTEM\CurrentControlSet\Control\ComputerName \ComputerName /v ComputerName /t REG_SZ /d %ren% > nul echo. echo 컴퓨터 이름이 %ren%로 변경되었습니다!!! :end endlocal
사이 이 배치파일에서 가장 핵심적인 부분은 사용자의 입력을 받아 들이는 부분과 사용자 입력으로 컴퓨터의 이름을 변경하는 부분이다. 사용자 입력을 받아들이는 부분은
set /p ren=변경할 컴퓨터 이름:
로 보다 자세한 설명은 배치 파일에서 사용자 입력 받아들이기를 참조하기 바란다. 사용자 입력을 이용해서 컴퓨터의 이름을 변경하는 것은 명령행 유틸리티, REG.EXE를 이용한다. 일반적으로 컴퓨터 이름은 다음 레지스트리에 저장된다.
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
따라서 다음 두 명령은 Parameters 키에 REG_SZ 형의 Hostname과 NV Hostname 값의 값 데이타를 사용자 입력(%ren%)으로 변경하게된다.
echo y|reg add "REG Key" /v Hostname /t REG_SZ /d %ren% > nul echo y|reg add "REG Key" /v "NV Hostname" /t REG_SZ /d %ren% > nul
추가정보: 다음 압축파일에는 예에서 사용된 배치 파일, RenameCompNameCMD.cmd가 포함되어 있다. 테스트를 원하는 경우 다운받아 사용하기 바란다. 다운로드: RenameCompNameCMD.zip
taskmanager에서 프로세스를 죽이지 않고 커맨드 라인으로 죽이기
taskkill /IM 죽일프로세스명
XP/XPE 방화벽 참조 URl
http://msdn.microsoft.com/embedded/community/community/tips/xp/firewall/default.aspx
xpe의 방화벽 설정 컴포넌트는 core networking의 settings의 Windows Firewall/Internet Connection Sharing (ICS)