msdn

Microsoft's CodeView format specs

此生再无相见时 提交于 2020-01-01 10:58:51
问题 I've been looking for a Microsoft document from the 1990's called CodeView Symbolic Debug Information Specification . It's referenced by Microsoft in their PE/COFF spec. Information about this document is sparse, and every lead I come across ends in a 404. Unfortunately I don't have any old MSDN CD's, which seemed to end the search for a few people. Does anyone have a copy, or know where I could find any related specs? 回答1: The one Matt Pietrek linked to, but which is not available at the

Mouse speed not changing by using SPI_SETMOUSESPEED

烈酒焚心 提交于 2019-12-31 04:38:10
问题 Why mouse speed is not changing after execution of the following program ? Is it due to SPI_SETMOUSESPEED or due to unable to change the winini file by SPIF_UPDATEINIFILE , SPIF_SENDCHANGE and SPIF_SENDCHANGE parameters ? Compiler : g++ , OS : Windows 8 . #include <iostream> #include <windows.h> #include<winuser.h> #pragma comment(lib, "user32.lib") using namespace std ; int main() { int i = 0 , *MouseSpeed = &i ; bool x ; // Retrieving the mouse speed . x = SystemParametersInfo( SPI

MSDN documentation error? “If the procedure is Shared, all its local variables are automatically shared. This includes the Static variables.”

江枫思渺然 提交于 2019-12-31 03:40:52
问题 I was reviewing the MSDN documentation on VB.Net's little-used Static keyword for local variables. My question is not about how Static works (I personally plan to avoid using it as it seems like it could cause grief to future programmers who don't notice the side-effects.) My question is about this statement in the docs : The behavior of any local variable depends on whether it is declared in a Shared procedure. If the procedure is Shared, all its local variables are automatically shared.

How exactly are files removed during MSI uninstall?

孤人 提交于 2019-12-30 11:18:11
问题 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

Unexpected behaviour of Process.MainWindowHandle

邮差的信 提交于 2019-12-28 17:46:55
问题 I've been trying to understand Process.MainWindowHandle. According to MSDN; "The main window is the window that is created when the process is started. After initialization, other windows may be opened, including the Modal and TopLevel windows, but the first window associated with the process remains the main window ." (Emphasis added) But while debugging I noticed that MainWindowHandle seemed to change value... which I wasn't expecting, especially after consulting the documentation above. To

Unexpected behaviour of Process.MainWindowHandle

一世执手 提交于 2019-12-28 17:45:25
问题 I've been trying to understand Process.MainWindowHandle. According to MSDN; "The main window is the window that is created when the process is started. After initialization, other windows may be opened, including the Modal and TopLevel windows, but the first window associated with the process remains the main window ." (Emphasis added) But while debugging I noticed that MainWindowHandle seemed to change value... which I wasn't expecting, especially after consulting the documentation above. To

check floppy Drive

让人想犯罪 __ 提交于 2019-12-23 20:31:27
问题 To get the removable drives i have used GetDriveType ( ) function Is it possible to check whether a drive is floppy drive or not ? Please let me know your suggestions on this... Thank you dor any help 回答1: Internally Microsoft Windows hold so named characteristics flags (defined in wdm.h) for every device. If device which corresponds the drive letter has flag FILE_FLOPPY_DISKETTE , then the drive is a floppy drive: // // Define the various device characteristics flags (defined in wdm.h) //

Any references / MSDN tutorials to show support for either “if (!condition)” or “if (condition == false)”? [closed]

不想你离开。 提交于 2019-12-23 17:43:04
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . For those who misread the question: let's pretend we're on Wikipedia. I'm not looking for “the right way”, I'm looking for verifiable

How to pass a Environment Pointer to Windows CreateProcess in Java (using jna)

醉酒当歌 提交于 2019-12-23 17:05:10
问题 I am calling Kernel32.Instance.CreateProcess to start a detached process. One issue I am facing is attempting to pass a environment block to CreateProcess each time I do the process does not start. I first used Advapi32Util.getEnvironmentBlock(environment) to create the block, then to make a Pointer (needed by CreateProcess ( I used: public static Pointer asPointer(String string) { byte[] data; try { data = Native.toByteArray(string, "UTF-8"); } catch (UnsupportedEncodingException e) { throw

List of all files inside the folder and its subfolders in Windows

流过昼夜 提交于 2019-12-23 04:24:08
问题 I want to list all the files that run under Task Scheduler by accessing all the files in the "C:\windows\system32\Tasks" Directory. The program should recursively keep opening subfolders in the directory and list all the files. I currently use Windows OS . I tried using the COM library but it doesn't display the tasks in the subfolders. I have 60 tasks but it displays only 12. So, I'm trying to iterate through the Tasks folder instead. #include <stdio.h> #include <dirent.h> int main(void) {