Location:
Search - LoadString
Search list
Description: NT环境下进程隐藏的实现 补充:把ThreadMain的代码给丢了,在这补上: DWORD ThreadMain(HINSTANCE hInst) { TCHAR szModule[256], szText[512], szFormat[256] LoadString(hInst, IDS_FORMAT, szFormat, sizeof(szFormat) / sizeof(TCHAR)) GetModuleFileName(NULL, szModule, 256) _stprintf(szText, szFormat, szModule) MessageBox(NULL, szText, _T(\"远程线程\"), MB_OK MB_ICONINFORMATION) return 0 }-NT environment to achieve the hidden process added : ThreadMain put in the code to be thrown in this supplement : DWORD ThreadMain (HINSTANCE hInst) (TCHAR szModule [256], szText [512], [256] szFormat LoadString (hInst, IDS_FORMAT, szFormat, sizeof (szFormat) / sizeof (TCHAR)) GetModuleFileName (NULL, szModule, 256) _stprintf (szText, szFormat, szModule) MessageBox (NULL, szText, found ( "Remote threads"), MB_OK MB_ICONINFORMATION) return 0 )
Platform: |
Size: 32682 |
Author: dsfd |
Hits:
Description: 1、我想调用 SetWindowsHookEx 来设置 WH_CBT 钩子,但我了解到 MFC 也安装了这个钩子,也就是在一个线程中安装了两次 WH_CBT,这样做能行吗?
2、我正在将一个现有的 C++ 类库转换为托管扩展,以便能在 .NET 框架客户端使用它们。我的代码调用了 API 函数,这些函数需要当前运行模块的 HINSTANCE。我不想使用我的 DLL 的 HINSTANCE;我想让调用者提供 EXE 的 HINSTANCE,该 EXE 调用我的 DLL。我能将 HINSTANCE 声明为一个 IntPtr,但我的基于 .NET 的客户端如何让应用程序的 HINSTANCE 传递给我的函数?在 C# 中是如何做的?
3、我要如何将 MFC CString 转换为托管 C++ 中的 String?我有一个函数是这样的:
int ErrMsg::ErrorMessage(CString& msg) const
{
msg.LoadString(m_nErrId)
msg += _T(\"::Error\")
return -1
}
我如何用托管 C++ 重写这个函数,并用 String 替换参数中的 CString?我不知道如何声明参数,如何处理 const,以及如何从资源文件中加载托管 String。我看了文档说 String 是不能被修改的,因为它们是不可变的,但我有想修改传递的字符串。
-one, I would like to call to set up WH_CBT SetWindowsHookEx hook, but I also understand that MFC installation of the hook, which is in a thread installed two WH_CBT. do exercise? Two, I was one of the existing C libraries into custody expansion, in order to be able.NET framework of the client to use them. I called the code API function, these functions need to run the current module HINSTANCE. I do not want to use my HINSTANCE DLL; I want to call to provide the HINSTANCE EXE, I called the EXE DLL. I can HINSTANCE statement for a IntPtr. but I based.NET client applications how the HINSTANCE passed to the function? In C# and how is it done? Three, I want to redeem MFC how to care for the conversion of C String? I have a function like this : int ErrMsg : : ErrorMessage (redeem
Platform: |
Size: 101679 |
Author: 阳广元 |
Hits:
Description: 1、我想调用 SetWindowsHookEx 来设置 WH_CBT 钩子,但我了解到 MFC 也安装了这个钩子,也就是在一个线程中安装了两次 WH_CBT,这样做能行吗?
2、我正在将一个现有的 C++ 类库转换为托管扩展,以便能在 .NET 框架客户端使用它们。我的代码调用了 API 函数,这些函数需要当前运行模块的 HINSTANCE。我不想使用我的 DLL 的 HINSTANCE;我想让调用者提供 EXE 的 HINSTANCE,该 EXE 调用我的 DLL。我能将 HINSTANCE 声明为一个 IntPtr,但我的基于 .NET 的客户端如何让应用程序的 HINSTANCE 传递给我的函数?在 C# 中是如何做的?
3、我要如何将 MFC CString 转换为托管 C++ 中的 String?我有一个函数是这样的:
int ErrMsg::ErrorMessage(CString& msg) const
{
msg.LoadString(m_nErrId)
msg += _T(\"::Error\")
return -1
}
我如何用托管 C++ 重写这个函数,并用 String 替换参数中的 CString?我不知道如何声明参数,如何处理 const,以及如何从资源文件中加载托管 String。我看了文档说 String 是不能被修改的,因为它们是不可变的,但我有想修改传递的字符串。-one, I would like to call to set up WH_CBT SetWindowsHookEx hook, but I also understand that MFC installation of the hook, which is in a thread installed two WH_CBT. do exercise? Two, I was one of the existing C libraries into custody expansion, in order to be able.NET framework of the client to use them. I called the code API function, these functions need to run the current module HINSTANCE. I do not want to use my HINSTANCE DLL; I want to call to provide the HINSTANCE EXE, I called the EXE DLL. I can HINSTANCE statement for a IntPtr. but I based.NET client applications how the HINSTANCE passed to the function? In C# and how is it done? Three, I want to redeem MFC how to care for the conversion of C String? I have a function like this : int ErrMsg : : ErrorMessage (redeem
Platform: |
Size: 561890 |
Author: toke |
Hits:
Description: vc+sqlCOleSafeArray CWnd CDialog CDataExchange GetWindowRect EndDialog SetWindowText GetWindowText MessageBox CString CTime CCmdTarget CWinApp COleTemplateServer COleObjectFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ShowWindow WinExec -vc sqlCOleSafeArray CWnd CDialog CDataEx change GetWindowRect EndDialog SetWindowTex t GetWindowText MessageBox CString CTime CCmd Target CWinApp COleTemplateServer COleObjec tFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintD C SendMessage function GetSystemMetrics CRect GetClie ntRect DrawIcon ShowWindow WinExec
Platform: |
Size: 3143724 |
Author: hedda |
Hits:
Description: CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ZeroMemory
Platform: |
Size: 1702 |
Author: 鲜跃明 |
Hits:
Description: 相关函数/类:
CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu SetTextColor IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon CFileDialog CFile MessageBox
Platform: |
Size: 14769 |
Author: 地方法 |
Hits:
Description: COleSafeArray CWnd CDialog CDataExchange CTime GetWindowRect MessageBox GetWindowText SetWindowText GetDlgItem SetDlgItemText CString EndDialog CCmdTarget GetDlgItemText CWinApp COleTemplateServer COleObjectFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu EnableWindow IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ShowWindow WinExec
Platform: |
Size: 28729 |
Author: 美眉 |
Hits:
Description:
LoadLibrary GetProcAddress FreeLibrary LocalFree GetVersionEx CloseHandle MapViewOfFile UnmapViewOfFile ExitProcess SetUnhandledExceptionFilter CWinApp OpenMutex CreateMutex CreateThread DeviceIoControl CString GetLogicalDrives GetDriveType CreateFile GetSystemDirectory FindFirstFile GetLastError CopyFile FindClose Sleep CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon DefWindowProc ShowWindow
Platform: |
Size: 10214 |
Author: 王中才 |
Hits:
Description: CFile CWinApp CString CloseHandle GetCurrentProcessId CallNextHookEx GetForegroundWindow SendMessage GetAsyncKeyState ZeroMemory GetKeyNameText SetWindowsHookEx UnhookWindowsHookEx EnumWindowsProc GetProp EnumWindows LoadLibrary GetProcAddress ShowWindow CDialog CDataExchange CWnd DestroyIcon LoadIcon SetProp GetSystemMenu CMenu LoadString AppendMenu CFileFind CreateFile IsIconic CPaintDC GetSystemMetrics CRect GetClientRect DrawIcon GetModuleFileName RegOpenKey RegSetValueEx
Platform: |
Size: 1428 |
Author: gulin |
Hits:
Description: Rectangle GetDC SetROP2 ReleaseDC CreateRectRgn SelectClipRgn DeleteObject SelectObject CreatePen CreateSolidBrush SetTextColor SetBkColor SetRect LockResource UnlockResource GetCursor LoadCursor GetStockObject LineTo SetCursor ShowCursor DrawText LoadString MessageBox CreateFontIndirect GetTextMetrics ClientToScreen SetCursorPos GetMessageTime GetKeyState GetClientRect SetWindowPos BeginPaint EndPaint DefWindowProc
Platform: |
Size: 95919 |
Author: 安新军 |
Hits:
Description: NT环境下进程隐藏的实现 补充:把ThreadMain的代码给丢了,在这补上: DWORD ThreadMain(HINSTANCE hInst) { TCHAR szModule[256], szText[512], szFormat[256] LoadString(hInst, IDS_FORMAT, szFormat, sizeof(szFormat) / sizeof(TCHAR)) GetModuleFileName(NULL, szModule, 256) _stprintf(szText, szFormat, szModule) MessageBox(NULL, szText, _T("远程线程"), MB_OK MB_ICONINFORMATION) return 0 }-NT environment to achieve the hidden process added : ThreadMain put in the code to be thrown in this supplement : DWORD ThreadMain (HINSTANCE hInst) (TCHAR szModule [256], szText [512], [256] szFormat LoadString (hInst, IDS_FORMAT, szFormat, sizeof (szFormat)/sizeof (TCHAR)) GetModuleFileName (NULL, szModule, 256) _stprintf (szText, szFormat, szModule) MessageBox (NULL, szText, found ( "Remote threads"), MB_OK MB_ICONINFORMATION) return 0 )
Platform: |
Size: 32768 |
Author: dsfd |
Hits:
Description: 1、我想调用 SetWindowsHookEx 来设置 WH_CBT 钩子,但我了解到 MFC 也安装了这个钩子,也就是在一个线程中安装了两次 WH_CBT,这样做能行吗?
2、我正在将一个现有的 C++ 类库转换为托管扩展,以便能在 .NET 框架客户端使用它们。我的代码调用了 API 函数,这些函数需要当前运行模块的 HINSTANCE。我不想使用我的 DLL 的 HINSTANCE;我想让调用者提供 EXE 的 HINSTANCE,该 EXE 调用我的 DLL。我能将 HINSTANCE 声明为一个 IntPtr,但我的基于 .NET 的客户端如何让应用程序的 HINSTANCE 传递给我的函数?在 C# 中是如何做的?
3、我要如何将 MFC CString 转换为托管 C++ 中的 String?我有一个函数是这样的:
int ErrMsg::ErrorMessage(CString& msg) const
{
msg.LoadString(m_nErrId)
msg += _T("::Error")
return -1
}
我如何用托管 C++ 重写这个函数,并用 String 替换参数中的 CString?我不知道如何声明参数,如何处理 const,以及如何从资源文件中加载托管 String。我看了文档说 String 是不能被修改的,因为它们是不可变的,但我有想修改传递的字符串。
-one, I would like to call to set up WH_CBT SetWindowsHookEx hook, but I also understand that MFC installation of the hook, which is in a thread installed two WH_CBT. do exercise? Two, I was one of the existing C libraries into custody expansion, in order to be able.NET framework of the client to use them. I called the code API function, these functions need to run the current module HINSTANCE. I do not want to use my HINSTANCE DLL; I want to call to provide the HINSTANCE EXE, I called the EXE DLL. I can HINSTANCE statement for a IntPtr. but I based.NET client applications how the HINSTANCE passed to the function? In C# and how is it done? Three, I want to redeem MFC how to care for the conversion of C String? I have a function like this : int ErrMsg : : ErrorMessage (redeem
Platform: |
Size: 101376 |
Author: 阳广元 |
Hits:
Description: vc+sqlCOleSafeArray CWnd CDialog CDataExchange GetWindowRect EndDialog SetWindowText GetWindowText MessageBox CString CTime CCmdTarget CWinApp COleTemplateServer COleObjectFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ShowWindow WinExec -vc sqlCOleSafeArray CWnd CDialog CDataEx change GetWindowRect EndDialog SetWindowTex t GetWindowText MessageBox CString CTime CCmd Target CWinApp COleTemplateServer COleObjec tFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintD C SendMessage function GetSystemMetrics CRect GetClie ntRect DrawIcon ShowWindow WinExec
Platform: |
Size: 3143680 |
Author: |
Hits:
Description: CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ZeroMemory -CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ZeroMemory
Platform: |
Size: 1024 |
Author: 鲜跃明 |
Hits:
Description: 相关函数/类:
CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu SetTextColor IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon CFileDialog CFile MessageBox -Correlation function/category: CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu SetTextColor IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon CFileDialog CFile MessageBox
Platform: |
Size: 618496 |
Author: 地方法 |
Hits:
Description: COleSafeArray CWnd CDialog CDataExchange CTime GetWindowRect MessageBox GetWindowText SetWindowText GetDlgItem SetDlgItemText CString EndDialog CCmdTarget GetDlgItemText CWinApp COleTemplateServer COleObjectFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu EnableWindow IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ShowWindow WinExec -COleSafeArray CWnd CDialog CDataExchange CTime GetWindowRect MessageBox GetWindowText SetWindowText GetDlgItem SetDlgItemText CString EndDialog CCmdTarget GetDlgItemText CWinApp COleTemplateServer COleObjectFactory DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu EnableWindow IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon ShowWindow WinExec
Platform: |
Size: 28672 |
Author: 美眉 |
Hits:
Description: Rectangle GetDC SetROP2 ReleaseDC CreateRectRgn SelectClipRgn DeleteObject SelectObject CreatePen CreateSolidBrush SetTextColor SetBkColor SetRect LockResource UnlockResource GetCursor LoadCursor GetStockObject LineTo SetCursor ShowCursor DrawText LoadString MessageBox CreateFontIndirect GetTextMetrics ClientToScreen SetCursorPos GetMessageTime GetKeyState GetClientRect SetWindowPos BeginPaint EndPaint DefWindowProc
Platform: |
Size: 2931712 |
Author: 安新军 |
Hits:
Description: 用c++编写的的中国联通SGIP协议,内容挺全。
MultiByteToWideChar WideCharToMultiByte CString CFile CFileException CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu SetWindowText SetTimer IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon PostMessage PostQuitMessage GetLastError CTime wsprintf KillTimer WinExec GetPrivateProfileString WritePrivateProfileString SetTextColor CAsyncSocket -With c++ Prepared by the China Unicom SGIP agreement, the contents of the whole ting. MultiByteToWideChar WideCharToMultiByte CString CFile CFileException CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu SetWindowText SetTimer IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon PostMessage PostQuitMessage GetLastError CTime wsprintf KillTimer WinExec GetPrivateProfileString WritePrivateProfileString SetTextColor CAsyncSocket
Platform: |
Size: 646144 |
Author: tw |
Hits:
Description: Visual C++ 创建纯资源 DLL 包含资源(如图标、位图、字符串和对话框)的 DLL。
纯资源 DLL 的应用程序应调用loadLibrary 来显式链接到 DLL。若要访问资源,请调用资源特定的函数之一:LoadBitmap,LoadImage,LoadCursor,LoadIcon,LoadString //资源ID不加 “”。使用完资源后,应用程序应调用 FreeLibrary。
LoadDllRes.rar 演示了全过程。
-Visual C++ to create pure resource DLL that contains resources [such as icons, bitmaps, strings, and dialog box] the DLL. Pure resource DLL application should call LoadLibrary to explicitly link to the DLL. To access resources, please call one of the resources specific function: LoadBitmap, LoadImage, LoadCursor, LoadIcon, LoadString// resource ID without " ." End the use of resources, the application should call FreeLibrary. LoadDllRes.rar demonstrated the entire process.
Platform: |
Size: 9118720 |
Author: xuyucheng |
Hits:
Description: 这是个很好的学习数据结构的文档,有题目,并且通过上机可以很好的进行练习,绝对值得学习-CWinApp CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu CString LoadString AppendMenu CRect GetWindowRect SetWindowPos IsIconic CPaintDC SendMessage GetSystemMetrics GetClientRect DrawIcon SetTextColor SetBkColor CFileDialog CreateThread CloseHandle WaitForMultipleObjects CFile DeleteFile WaitForSingleObject InterlockedIncrement CTime CListCtrl
Platform: |
Size: 111616 |
Author: 王喆 |
Hits: