上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 27 下一页
  2009年10月14日
摘要: 核心代码如下:#include "StdAfx.h"#include "Function.h"CString GetDiskNumber(CString name){ HKEY hkey; char sz[256]; DWORD dwtype,sl = 256; int number=0; // 确定选择的磁盘 for(int i=1;i<8;i++) { if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SYSTEM//CurrentControlSet//Services//Disk//Enum",/ 阅读全文
posted @ 2009-10-14 10:45 Yincheng 阅读(283) 评论(0) 推荐(0) 编辑
  2009年9月23日
摘要: 基于Windows Embedded Standard以及Windows Embedded XP,如果需要添加语音识别,语音朗读功能,需要下列组件的支持。Speech Control Panel:添加该组件可以在控制面中添加语音控制图标,我们可以通过这个功能来选择或者配置Speech recognition(SR-语音识别)或者 text-to-speech engine(TTS-文本语音转化引擎)。 这些设置取决与可选择的语言,声音输出和声音质量, 也包括可选择的麦克风输入。 在语音属性中可以制定和更新用户配置文件。通过用户配置文件,使语音识别引擎能够更好地认识到一个发言者的习惯和在一个特定 阅读全文
posted @ 2009-09-23 10:22 Yincheng 阅读(1053) 评论(0) 推荐(0) 编辑
  2009年9月12日
摘要: //Microsoft Speech SDK Version 5.1 #endregion private SpeechLib.SpSharedRecoContext objRecoContext = null; #region ISpeechRecoGrammar说明 //The ISpeechRecoGrammar automation interface enables applications to manage the words and phrases for the SR engine. //为语音识别引擎自动管理应用程序单词和短语 /* 属性 Id Property R... 阅读全文
posted @ 2009-09-12 12:10 Yincheng 阅读(3125) 评论(0) 推荐(0) 编辑
  2009年9月9日
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Speech;using System.Speech.Recognition;using System.Speech.Synthesis;using System.Speech.AudioFormat;using System.Speech.Recognit 阅读全文
posted @ 2009-09-09 13:29 Yincheng 阅读(773) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Windows;using System.Speech.Recognition;namespace Speech_Recognition{ public partial class Window1 : System.Windows.Window { public Window1() { InitializeComponent(); SpeechRecognizer recognizer = new SpeechRecognizer(); GrammarBuilder builder = new GrammarBuilder(); builde 阅读全文
posted @ 2009-09-09 13:17 Yincheng 阅读(421) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Speech.Synthesis;namespace Speech_Synthesis{ public partial class Window1 : System.Windows.Window { public Window1() { InitializeComponent(); SpeechSynthesizer synthesizer = new SpeechSynthesizer(); PromptBuilder promptBuilder = new PromptBuilder(); promptBuilder.AppendText 阅读全文
posted @ 2009-09-09 13:12 Yincheng 阅读(1545) 评论(0) 推荐(1) 编辑
  2009年8月26日
摘要: 加载模块核心源码#include "Loader.h"BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved){hinst = hinstDLL;switch(fdwReason){case DLL_PROCESS_ATTACH://MessageBox(NULL,"DLL_PROCESS_ATTACH","",MB_OK);//SetHook();break;case DLL_THREAD_ATTACH://MessageBox(NUL 阅读全文
posted @ 2009-08-26 13:43 Yincheng 阅读(218) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include <stdio.h>#include <windows.h>int main(int argc, char* argv[]){char temp[256];DWORD ret;LPCTSTR szRegKey="SOFTWARE//Microsoft//Windows NT//CurrentVersion//Image File Execution Options"; //定义字符串指针,保存映像劫持的键位HKEY h_KEY;if(argc!=1) //如果参数不是1个,提取 阅读全文
posted @ 2009-08-26 13:41 Yincheng 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <windows.h>int ReadStream( HANDLE hFile, bool bIsDirectory, char* FileName ){//数据流文件名查找////输入:// 已打开的文件句柄// bIsDirectory// 文件名, 用于显示数据流在哪个文件中//结果:// 直接在函数中输出//返回:// Count:数据流的个数WIN32_STREAM_ID sid;//数据流头结构LPVOID lpContext = NULL;//环境指针,读取数据流时,必须为空DWORD dwRead = 阅读全文
posted @ 2009-08-26 13:38 Yincheng 阅读(246) 评论(0) 推荐(0) 编辑
摘要: // NatCheck.cpp : Defines the entry point for the console application.//#include "stdafx.h" #include <process.h> #include <stdio.h> #include <afx.h>#include "winsock2.h" #include "./Include/packet.h"#pragmacomment(lib,"./lib/wininet.lib") #pr 阅读全文
posted @ 2009-08-26 13:30 Yincheng 阅读(412) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 27 下一页