test: globals.c Source File

Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

# globals.c

Go to the documentation of this file.

    00001 /****************************** Module Header ******************************\
    00002 * Module Name: global.c
    00003 *
    00004 * Copyright (c) 1985 - 1999, Microsoft Corporation
    00005 *
    00006 * Contains global data for the imm32 dll
    00007 *
    00008 * History:
    00009 * 03-Jan-1996 wkwok    Created
    00010 \**************************************************************************/
    00011 #include "precomp.h"
    00012 #pragma hdrstop
    00013
    00014 /*
    00015  * We get this warning if we don't explicitly initalize gZero:
    00016  *
    00017  * C4132: 'gZero' : const object should be initialized
    00018  *
    00019  * But we can't explicitly initialize it since it is a union. So
    00020  * we turn the warning off.
    00021  */
    00022 #pragma warning(disable:4132)
    00023 CONST ALWAYSZERO gZero;
    00024 #pragma warning(default:4132)
    00025
    00026 BOOLEAN gfInitialized;
    00027 HINSTANCE  ghInst;
    00028 PVOID pImmHeap;
    00029 PSERVERINFO gpsi = NULL;
    00030 SHAREDINFO gSharedInfo;
    00031 ULONG_PTR gHighestUserAddress;
    00032
    00033 PIMEDPI gpImeDpi = NULL;
    00034 CRITICAL_SECTION gcsImeDpi;
    00035
    00036
    00037 POINT gptRaiseEdge;
    00038 UINT  guScanCode[0xFF];          // scan code for each virtual key
    00039
    00040 #ifdef LATER
    00041 CONST WCHAR gszRegKbdLayout[]  = L"Keyboard Layouts\\";
    00042 CONST INT sizeof_gszRegKbdLayout = sizeof gszRegKbdLayout;
    00043 #else
    00044     // current
    00045 CONST WCHAR gszRegKbdLayout[]  = L"System\\CurrentControlSet\\Control\\Keyboard Layouts";
    00046 #endif
    00047
    00048 CONST WCHAR gszRegKbdOrder[]   = L"Keyboard Layout\\Preload";
    00049 CONST WCHAR gszValLayoutText[] = L"Layout Text";
    00050 CONST WCHAR gszValLayoutFile[] = L"Layout File";
    00051 CONST WCHAR gszValImeFile[]    = L"Ime File";