CreateFileMapping fails with Access denied after impersonating a regular user
Hi,I have an application running in debug mode, from under MS Visual Studio 2010 launched to run as administrator, on Windows 7 SP1 (x64).This Application runs another proxy helper app, and it...
View ArticleMicrosoft Visual C++ Redistributable for Visual Studio 2012 Update 4...
I need to install Microsoft Visual C++ Redistributable for Visual Studio 2012 Update 4 but when I run it, it opens it a Asian language even though I selected English. I have tried in three different...
View ArticleIcmpSendEcho2 broken in Windows 2008 Server?
Testing some existing code with Windows 2008 Server. IcmpSendEcho2 seems to crash on Windows 2008 Server.I tried the code sample from the SDK and I saw the same issue (see code below). The exact sample...
View ArticleDetours, simple Hooking try
Hi all,I' going to start hooking with Detorus. I've written a small Console32 application, which will only create a file using the CreateFileA from kernel32.dll. I created a DLL library which will hook...
View ArticleHow to make Compiling C++ VS 2010 Win32 code on Windows 7 64 the same as on...
I have been using VS2010 on Windows XP 32 bit for awhile to compile my C++ code. I am now moving to Windows 7 64 bit and I still want to create 32 bit binaries. I have applied all of the same VS2010...
View ArticleADO Connection Event 'ExecuteComplete' does not fire with 'adAsyncExecute' flag
Hi,I'm trying to catch the 'ExecuteComplete' ADO Connection event. It fires when I don't run the Execute asynchronously. However, when I run asynchronously (using the adSyncExecute flag) the...
View ArticleDWM, Win7, How about MDI ?
DWM, Win7, How about DwmDefFrameProc ? it has been so much time since this DWM came along and nobody asked about (dead ?) MDI ...I can't make it work right for a MDI application, drawing artifacts, no...
View Articleentering multiple data at once
in my code i am righting i am inputting an algorithm all at once, but currently it will only accept single digits ( so if it sees a number such as 14 it will read it as 1 and 4).heres the current code...
View ArticleCButton's WS_VISIBLE style bit is set to false during OnInitDialog but the...
Hi,I have encountered the following problem. I have set the WS_VISIBLE style bit of a CButton control on my MFC dialog to not visible during OnInitDialog() via the following call:...
View ArticleSATA drive detection
Hi,I would like to detect a SATA hard drive that is formatted in different type format (LINEAR FILE SYSTEM) which windows wont recognize. Then I want to read the directory block and display file...
View ArticleSending a message to cell phone using bluetooth
Hey guys I am in urgent need of your help. I just want to transmit a simple message say Hi from my laptop to my phone using bluetooth. My phone nexus 4 does not support file transfer by default. I am...
View ArticleMFC button can not receive touch event
The list control can receive the touch event, but the push button or textedit can not receive the touch event, it always receive the mouse move event.code like below can tell if it is a mouse or touch...
View ArticleRegarding FTP Client/Server Communication in WIN32
Hi, I have developed simple app in win32,which upload the files from the local machine to remote server & also download some file vice versa.I read somewhere that FTP uses two ports , 20...
View ArticleMailslot Enumeration in Windows 7
Hi All,I've developed below code to enumerate the mailslot available in the System. This code is successfully enumerating the mailslot information in Windows XP & 2003 whereas it is failing in...
View Article_CRT_SECURE_NO_WARNINGS,error C4996, warning C4996?
Hi all,In VS2012, when we create a new project and use memset,strcpy, we will get "error C4996: 'strcpy': This function or variable may be unsafe..." So we have to define _CRT_SECURE_NO_WARNINGS in the...
View ArticleSend Message to Remote Private Queue using C++
I need to send a message to remote private queue. I am using mqapitst sample shipped with Windows SDK. I am using "Direct=OS:XXXX-w7\\private$\\QueuName" as format name with MQOpenQueue() it returns...
View Articlevc++ 6 winsock1.SendData() problem
I'm using vc++6 winsock control, while debbugging i see that "count ???" for which i added the bytearray. I couldn't see the array index and data. could you please provide the sample code snippet for...
View ArticleSize of a wstring returns its maximum size or capacity.
Hello. something is wrong in the .size () function of a wstring. Instead of returning the actual size, it returns the maximum size or the capacity. For example if the wstring has the value : "Hello",...
View ArticleCan we enforce shell extension to call...
We read a registry key in GetOverlayInfo() and IsMemberOf() methods to determine whether to show the overlay icons or not. From both of these methods we return S_FALSE if registry key is not set....
View ArticleVS 2008 atlhttp.inl Bug
I believe I have found a bug in atlhttp.inl. When I receive a chunked data response from the server, on occasion the chunk ends with the final "\n" character in the following chunk, which causes the...
View Article