例子:struct context { uint edi; uint esi; uint ebx; uint ebp; uint eip;}; ...p->context = (struct context*)sp;p->context->eip = (uint)forkret;结构体成...
分类:
编程语言 时间:
2014-06-28 17:26:51
阅读次数:
172
1 DX中的创建字体的函数
HRESULT D3DXCreateFont(
__in LPDIRECT3DDEVICE9 pDevice,
__in INT Height,
__in UINT Width,
__in UINT Weight,
__in UINT MipLevels,
__in BOOL Italic,
__in DWO...
分类:
其他好文 时间:
2014-06-28 09:26:30
阅读次数:
226
#include "stdafx.h"#include "TestGidPlus.h"LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE ...
驱动代码内部相关关键字等如KillTimer、 LPVOID —指针、BOOL和bool、NEW分配内存
、HWND、UNIT、、__cdecl 、_stdcall、PASCAL 、_fastcall、_thiscall的区别与联系、
typedef LONG_PTR LPARAM;typedef UINT_PTR WPARAM;等...
分类:
其他好文 时间:
2014-06-22 21:18:54
阅读次数:
244
问题定义这个问题来自网上看到的百度算法题,感觉很不错,问题定义如下:假定有20个有序数组,每个数组有500个数字,降序排列,数字类型32位uint数值,现在需要取出这10000个数字中最大的500个,怎么做?解决方法这里其实有很多解决方法,笨拙的或者巧妙的。这里介绍一个非常不错的方法,使用最大堆堆排...
分类:
其他好文 时间:
2014-06-21 11:28:25
阅读次数:
188
//独立看门口的时钟来源 内部低速时钟 128khz 除以2 即64khz//选择 IWDG_Prescaler_128//64/128 =0.5 khz 2ms周期#define IWDG_500MS_REST (uint8)250#define IWDG_400MS_REST (uint...
分类:
其他好文 时间:
2014-06-20 22:51:46
阅读次数:
215
typedef BOOL (WINAPI *_ChangeWindowMessageFilter)( UINT , DWORD); BOOL AllowMeesageForWin7(UINT uMessageID, BOOL bAllow)//注册Win7全局消息 { BOOL bResul...
函数原型:int MultiByteToWideChar(UINT CodePage,DWORD dwFlags,LPCSTR lpMultiByteStr,int cchMultiByte,LPWSTR lpWideCharStr,int cchWideChar);补充:如果ANSI代码页允许在不...
分类:
其他好文 时间:
2014-06-18 10:33:15
阅读次数:
493
函数原型:int WideCharToMultiByte( UINT CodePage, DWORD dwFlags, LPWSTR lpWideCharStr, int cchWideChar, LPCSTR lpMultiByteStr, int cchMultiByte, LPCS...
分类:
其他好文 时间:
2014-06-18 10:08:58
阅读次数:
166
atlctrls.h中是对控件的封装。第1249行增加: void GetMargins(UINT& nLeft, UINT& nRight) const { ATLASSERT(::IsWindow(m_hWnd)); DWORD dwRet = (DWORD)::SendMessage(m_.....
分类:
其他好文 时间:
2014-06-14 08:25:42
阅读次数:
385