msdn

ReadProcessMemory on a 64 bit proces always returns Error 299

前提是你 提交于 2019-12-01 20:57:09
I'm having some trouble with ReadProcessMemory My code is 64 bit I can read the memory of any 32 bit process , but ReadProcessMemory always fails with error code 299 (Partial read) returning 0 bytes read. Done my research and most answers were relate to privilges , but I have Debugging token enabled and running as admin , The address i read the the ImageBase in the PE optional header I tried to check the page status using VirtualQueryEx and got access denied! Note : The code runs perfectly on any 32 bit process. Any Ideas what maybe be causing this ? HANDLE hProcess; DWORD pid; EnableDebugPriv

MSDN links in Visual Studio

依然范特西╮ 提交于 2019-12-01 19:07:53
I'm looking for a plugin or way to simply go from any namespace, type, method, property, etc in my .Net code to the MSDN page that covers it via a context menu item or hyperlink-like mechanism. Does anyone know of anything that will do that? The "Go to Definition" option when you right click almost covers this, but it doesn't quite work well enough - no support for namespaces and you often end up at an ugly metadata page. I'm still on vs2005, so if vs2008 is better at this I'd like to know about it. Have you tried F1. This will automatically open the help to the appropriate method or object.

POCO - if POCO means pure .net class with only properties, where i can write validations in MVC

亡梦爱人 提交于 2019-12-01 14:07:25
Very new to POCO, find some google links but found many different stories. Some connected with Entity framework, lazy loading etc. Some says its a pure .det class. Atleast MSDN. LINK FOR DEFINE POCO FROM MSDN: msdn.microsoft.com/en-us/library/dd456872.aspx I trust MSDN(a simple defination), and assume that it is a pure .NET Class. Now let me come to the point. IF it is pure .net class with only properties inside it than it is equilateral to "MODEL" in MVC. example. [Required(ErrorMessage = "Full Name required.")] [StringLength(20, ErrorMessage = "Username must be under 20 chars.")] public

How exactly are files removed during MSI uninstall?

大兔子大兔子 提交于 2019-12-01 11:30:24
I'd like to know what exactly happens to installed files / components during the uninstall procedure. For the install and upgrade procedure, reliable documentation exists at MSDN (see File Versioning Rules and Default File Versioning , for example). Anyways, I couldn't find a documentation of the uninstall remove logic at MSDN or at WiX´s documentation. So, my question is simple: I would like to know when exactly a file is removed from the system (which isn't always the case - for example if a SharedDLLRefCount exists/remains for that file). The closest I found was the following MSDN link ,

Driver's uninstall button is disabled

被刻印的时光 ゝ 提交于 2019-12-01 09:36:17
I've written my fairly simple first driver for a virtual device. It also has a .inf and I install the driver using devcon.exe . It install fine and functions properly but my problem is when I try to uninstall it: devcon.exe can't uninstall it and in Device Manager, the Uninstall, Roll Back and Disable buttons for the driver are disabled. My main concern for now is the Uninstall button. My driver implements the DriverObject->DriverUnload . I've look in the msdn docs, and for now I can't find any DDUninstall INF section for drivers. When I look in the %WinDir%\inf\setupapi.app.log I see the

Driver's uninstall button is disabled

时间秒杀一切 提交于 2019-12-01 08:46:48
问题 I've written my fairly simple first driver for a virtual device. It also has a .inf and I install the driver using devcon.exe. It install fine and functions properly but my problem is when I try to uninstall it: devcon.exe can't uninstall it and in Device Manager, the Uninstall, Roll Back and Disable buttons for the driver are disabled. My main concern for now is the Uninstall button. My driver implements the DriverObject->DriverUnload . I've look in the msdn docs, and for now I can't find

How to use named pipes over network?

醉酒当歌 提交于 2019-12-01 06:36:23
问题 I'm trying to create a connection over network via named pipes. I'm doing it as it says in msdn. I create pipes server side with function. CreateNamedPipe( "\\\\.\\pipe\\myNamedPipe", DUPLEX | FILE_FLAG_OVERLAPPED, 0, 255, BUFFER_SIZE, BUFFER_SIZE, 0, IntPtr.Zero); and trying to connect via CreateFile() function CreateFile( "\\\\10.0.0.29\\pipe\\myNamedPipe", GENERIC_READ | GENERIC_WRITE, 0, IntPtr.Zero, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, IntPtr.Zero); 10.0.0.29 is server machines ip. If I

WinAPI: InternetCloseHandle function closes the handle but not the connection

烈酒焚心 提交于 2019-12-01 00:07:38
I call wininet\InternetOpenUrlA , then wininet\InternetReadFile and when I'm done I call wininet\InternetCloseHandle which returns True. That means that the handle successfully closed, but the connection is still in established state. Why doesn't the connection close when I call wininet\InternetCloseHandle ? WinInet can cache and reuse connections for future requests to the same server. WinInet tries to re-use sockets where it can, so even when you release the handle it can choose to keep the socket active, ready for the next call to InternetOpen. Most of the time this is a good thing and you

MSDN charts changing point values realtime?

独自空忆成欢 提交于 2019-11-30 22:33:52
I want to use MSDN charts to represent realtime data i'm getting from a telnet application. For testing purpose i have added a button to alter the chart manually. I manually made the chart and it has 0 to 5 points on the X axis with values different values on the X. The series is named by it's default "Series1". I tried the following: chart1.Series["Series1"].Points.ElementAt(0).SetValueY(40); //Nothing happens chart1.Series["Series1"].Points.ElementAt(1).SetValueXY(1, 20); //Nothing happens chart1.Series["Series1"].Points[0].SetValueY(40); //Nothing happens chart1.Series["Series1"].Points

Why is using [DataMember(EmitDefaultValue = false)] not recommended?

无人久伴 提交于 2019-11-30 13:36:56
问题 In WCF you can define a contract using the [DataContract] and [DataMember] attributes, like this: [DataContract] public class Sample { [DataMember(EmitDefaultValue = false, IsRequired = false)] public string Test { get; set; } } This article on the MSDN states that using EmitDefaultValue = false is not recommended: However, i like to use this, because the XML that is generated using this construction is cleaner. Not specifying this setting results in: <Sample> <Test xsi:nil="true"/> </Sample>