|
[求助]一个Bitmap(IStream *stream, BOOL useIcm)函数问题
我的代码如下: char buf[100] = {0}; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. GdiplusStartupInput m_gdiplusStartupInput; ULONG_PTR m_pGdiToken; HRESULT hr; Status sta= GenericError; IStorage *pstgNew = 0; IStream *pstream = 0;; IStream *pstream1 = 0;; HBITMAP *hbitmap; ULONG dwBytes; STATSTG statstg; GdiplusStartup(&m_pGdiToken,&m_gdiplusStartupInput,NULL); hr = StgOpenStorage(L"Thumbs.db", 0, 0x20, NULL, 0, &pstgNew); if(S_OK != hr) MessageBox(0,"error",0,0); IEnumSTATSTG *penum; pstgNew->EnumElements(0, 0, 0, &penum); hr = penum->Next( 1, &statstg, 0 ); while (S_OK == hr) { if( STGTY_STREAM == statstg.type && L'\005' != statstg.pwcsName[0]) { MessageBoxW(0, statstg.pwcsName, L"STREAM", 0); pstgNew->OpenStream(statstg.pwcsName, 0, STGM_READ | STGM_SHARE_EXCLUSIVE, 0, &pstream); break; } else { MessageBoxW(0, statstg.pwcsName, L"NO STREAM", 0); } hr = penum->Next( 1, &statstg, 0 ); } if (pstream == 0) { MessageBox(0, "pstream 0", 0, 0); } _asm int 3 Bitmap bitmap(pstream, TRUE); sta = bitmap.GetLastStatus();//这里总是2,说明前面的初始化没有成功,是因为参数无效 GdiplusShutdown(m_pGdiToken); return 0; } |
|
字符串函数的汇编代码是怎样的
谢谢各位,我知道答案了 |
|
问一个关于od中f7步入的问题
抱歉可能是我问错了,我问的是最终什么样的函数按f7就进不去了,是内核函数吗?一般是什么样的? |
|
字符串函数的汇编代码是怎样的
比如在c代码中调用了strcpy函数,那么汇编码是直接展开,还是直接调用了api? |
|
字符串函数的汇编代码是怎样的
是所有windows字符串函数都直接展开吗 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值