13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ThrowThis function restores the execution environment to the values saved inthe buffer pointed to by the IpCatchBuf parameter. The executionenvironment is the state of all system registers and the instruction counter.Execution continues at the Catch function that copied the environmentpointed to by IpCatchBuf. The nThrowBack parameter is passed as thereturn value to the Catch function. It can be a nonzero value.Parameters IpCatchBuf LPCATCHBUF Points to an array that contains the executionenvironment.Return valueCommentsnThrowBack int Specifies the value to be returned to the Catch function.None.The Throw function is similar to the C run-time LongJmp function (whichis incompatible with the Windows environment).ToAscii 3.0Syntaxint ToAscii(wVirtKey, wScanCode, lpKeyState, lpChar, wFlags)function ToAscii(VirtKey, ScanCode: Word; KeyState: PChar; Char:Pointer; Flags: Word): Integer;This function translates the virtual-key code specified by the wVirtKeyparameter and the current keyboard state specified by the IpKeyStateparameter to the corresponding ANSI character or characters.Parameters wVirtKey WORD Specifies the virtual-key code to be translated.Return valuewScanCodeIpKeyStateIpCharwFlagsWORD Specifies the "hardware" raw scan code of the key tobe translated. The high-order bit of this value is set if the keyis up.LPSTR Points to an array of 256 bytes, each of whichcontains the state of one key. If the high-order bit of the byteis set the key is down.LPVOID Points to a 32-bit buffer which receives thetranslated ANSI character or characters.WORD The bit a flag's menu display.The return value specifies the number of characters copied to the bufferidentified by the IpChar parameter. The return value is negative if the keywas a dead key. Otherwise, it is one of the following values:Chapter 4, Functions directory 559

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!