示例#1
0
文件: Editors.c 项目: chrisdone/hugs
BOOL CalcSyn(LPTSTR Buffer)
{
    Buffer[0] = '\"';
    if (!RegGet(HKEY_CURRENT_USER,
        "Software\\Ascher\\Syn", &Buffer[1])) return FALSE;
    strcat(Buffer, "\" -line %d \"%s\"");
    return TRUE;
}
示例#2
0
文件: Editors.c 项目: chrisdone/hugs
BOOL CalcVim(LPTSTR Buffer)
{
    // x = HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Vim.Application\CLSID
    // vi = HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\$x$\LocalServer32
    // cmd = "$vi$" +%d %s
    char Buf2[1000];

    if (!RegGet(HKEY_LOCAL_MACHINE,
	"SOFTWARE\\Classes\\Vim.Application\\CLSID",
	Buffer)) return FALSE;

    sprintf(Buf2, "SOFTWARE\\Classes\\CLSID\\%s\\LocalServer32", Buffer);
    if (!RegGet(HKEY_LOCAL_MACHINE, Buf2, &Buffer[1]))
	return FALSE;

    Buffer[0] = '\"';
    strcat(Buffer, "\" --remote-silent +%d %s");
    return TRUE;
}
示例#3
0
文件: Editors.c 项目: chrisdone/hugs
BOOL CalcTextpad(LPTSTR Buffer)
{
    //[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\TextPad.exe]
    //@="D:\\Program Files\\TextPad 4\\TextPad.exe"

    char* s;
    if (!RegGet(HKEY_LOCAL_MACHINE,
	"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\TextPad.exe",
	Buffer)) return FALSE;

    s = strrchr(Buffer, '\\');
    if (s == NULL) return FALSE;
    strcpy(&s[1], "System\\DDEOPN32.EXE TextPad %s(%d)");
    return TRUE;
}
示例#4
0
//-----------< FUNCTION: SpiIsBusy >-----------------------------------------
// Purpose:    polls the SPI busy state
// Parameters: none
// Returns:    TRUE if there is an I/O in progress
//             FALSE otherwise
//---------------------------------------------------------------------------
BOOL SpiIsBusy ()
{
   // busy if the interrupt is enabled
   return RegGet(SPCR, SPIE);
}