~stomato463/+junk/nvdajp

« back to all changes in this revision

Viewing changes to nvdaHelper/local/nvdaControllerInternal.c

  • Committer: Masataka Shinke
  • Date: 2011-10-25 12:35:26 UTC
  • mfrom: (4185 jpmain)
  • mto: This revision was merged to the branch mainline in revision 4211.
  • Revision ID: mshinke@users.sourceforge.jp-20111025123526-ze527a2rl3z0g2ky
lp:~nishimotz/nvdajp/main : 4185 をマージ

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <windows.h>
 
1
/*
 
2
This file is a part of the NVDA project.
 
3
URL: http://www.nvda-project.org/
 
4
Copyright 2006-2010 NVDA contributers.
 
5
    This program is free software: you can redistribute it and/or modify
 
6
    it under the terms of the GNU General Public License version 2.0, as published by
 
7
    the Free Software Foundation.
 
8
    This program is distributed in the hope that it will be useful,
 
9
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
11
This license can be found at:
 
12
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 
13
*/
 
14
 
2
15
#include "nvdaControllerInternal.h"
3
16
 
4
 
__declspec(dllexport) error_status_t(__stdcall *_nvdaControllerInternal_inputLangChangeNotify)(const long, const unsigned long, const wchar_t*);
 
17
error_status_t __stdcall nvdaControllerInternal_getNVDAProcessID(long* pProcessID) {
 
18
        *pProcessID=GetCurrentProcessId();
 
19
        return RPC_S_OK;
 
20
}
 
21
 
 
22
error_status_t(__stdcall *_nvdaControllerInternal_inputLangChangeNotify)(const long, const unsigned long, const wchar_t*);
5
23
error_status_t __stdcall nvdaControllerInternal_inputLangChangeNotify(const long threadID, const unsigned long hkl, const wchar_t* layoutString) {
6
24
        return _nvdaControllerInternal_inputLangChangeNotify(threadID,hkl,layoutString);
7
25
}
8
26
 
9
 
__declspec(dllexport) error_status_t(__stdcall *_nvdaControllerInternal_logMessage)(const long, const long, const long, const wchar_t*, const wchar_t*, const long, const wchar_t*);
10
 
error_status_t __stdcall nvdaControllerInternal_logMessage(const long processID, const long threadID, const long level, const wchar_t* fileName, const wchar_t* funcName, const long lineNo, const wchar_t* message) {
11
 
        return _nvdaControllerInternal_logMessage(processID,threadID,level,fileName,funcName,lineNo,message);
 
27
error_status_t(__stdcall *_nvdaControllerInternal_typedCharacterNotify)(const long, const wchar_t); 
 
28
error_status_t __stdcall nvdaControllerInternal_typedCharacterNotify(const long threadID, const wchar_t ch) {
 
29
        return _nvdaControllerInternal_typedCharacterNotify(threadID,ch);
 
30
}
 
31
 
 
32
error_status_t(__stdcall *_nvdaControllerInternal_logMessage)(const long, const long, const wchar_t*);
 
33
error_status_t __stdcall nvdaControllerInternal_logMessage(const long level, const long processID, const wchar_t* message) {
 
34
        return _nvdaControllerInternal_logMessage(level,processID,message);
 
35
}
 
36
 
 
37
error_status_t(__stdcall *_nvdaControllerInternal_displayModelTextChangeNotify)(const long, const long, const long, const long, const long);
 
38
error_status_t __stdcall nvdaControllerInternal_displayModelTextChangeNotify(const long hwnd, const long left, const long top, const long right, const long bottom) { 
 
39
        return _nvdaControllerInternal_displayModelTextChangeNotify(hwnd,left,top,right,bottom);
12
40
}