How to detect OS of Win7 Home Premium, Win7 Professional, Win7 Enterprise or Win7 ultimate?
How to detect OS of Win7 Home Premium, Win7 Professional, Win7 Enterprise or Win7 ultimate? ...
How to detect OS of Win7 Home Premium, Win7 Professional, Win7 Enterprise or Win7 ultimate? ...
I'm printing using CreateDC, passing in a valid DEVMODE structure and getting NULL returned which indicates an error but GetLastError returns 0. m_hDC = ::CreateDC(L"WINSPOOL", PrinterName, NULL, pDevMode); if (m_hDC == NULL) { throw Exception(GetLastError(), __LINE__, _T(__FILE__)); } This is working for all of my customers apart f...
Does anybody know where can I find a list of GetExitCodeProcess' process termination status codes? I've done some search in the internet and haven't been able to find one. I'm receiving a 33102 code from a GetExitCodeProcess call and I don't understand why. I hope getting a description for this error code will help me sorting this out. ...
Not a terribly good question, sorry. I have a program that needs to be alerted when a file is opened from explorer (i.e. ShellExecute(A/W) is called). Unfortunately, Microsoft removed the COM interface (IShellExecuteHook) that allows you to hook these events in Vista and up, supposedly because older code could cause a crash due to chan...
Hi there! I'm writing an app in C using win32 API. When I try to enlarge the size of my array, using the HeapRealloc() function, it changes my current values in the array, instead of copying them. The code I use to reallocate memory: BOOL ChangeFeedArraySize(UINT newSize) { char tempChar[20] = ""; PFEED tempArr; if (newSi...
I am using VFW unit from JEDI wrapper on WinAPI. The code I am writing is intended to search user drives and detect warez. We do MP3, WMA and some graphic file search. Now we want to detect illegal movies. I want to open AVI file, read some details from it and close it. I have the following code: uses WFV; //from JEDI api wrappers pro...
If I have an IShellFolder interface pointer, how might I obtain its PIDL? I can see how to enumerate its children, and I can see how to use it to compare any two children... but how might I get its own pidl? I ask because I'd like to know "Is this IShellFolder == Another IShellFolder". I can use IShellFolder::CompareIDs() - but I have...
I am using Windows XP pro SP3. Standard english keyboard. I live in the USA; never touched the keyboard settings. Stock install. So, when I press check the scancodes my program is returning they are as follows: A = 30 S = 31 D = 32 F = 33 G = 34 When I check the microsoft specification (page 11 of the document:: http://download.micr...
I have a .dll file and the .lib file for it. The DLL talks to an electronic key reader, and allows you to read/write the key ID. This is the only documentation that comes with: DLL Usage: boolean = object.DevicePresent (PROPERTY: true if the device is present) boolean = object.KeyPresent (PROPERTY: true if a key is in the device) long...
I'm using boost::filesystem for cross-platform path manipulation, but this breaks down when calls need to be made down into interfaces I don't control that won't accept UTF-8. For example when using the Windows API, I need to convert to UTF-16, and then call the wide-string version of whatever function I was about to call, and then conve...
How is a program (e.g. C or C++) arranged in computer memory? I kind of know a little about segments, variables etc, but basically I have no solid understanding of the entire structure. Since the in-memory structure may differ, let's assume a C++ console application on Windows. Some pointers to what I'm after specifically: Outline of...
I am using VFW unit from JEDI wrapper on WinAPI. The code I am writing is intended to search user drives and detect warez (note: deciding if some file is legal or not is beyond scope of this question). We do MP3, WMA and some graphic file search. Now we want to detect illegal movies. I want to open AVI file, read some details from it an...
Consider a complex, memory hungry, multi threaded application running within a 32bit address space on windows XP. Certain operations require n large buffers of fixed size, where only one buffer needs to be accessed at a time. The application uses a pattern where some address space the size of one buffer is reserved early and is used to...
Hi, I'm adapting an application for touch screen interface and we're want to use the tablet text input panel included in windows vista/7, specifically its keyboard. I want to show and hide it as appropriate for my app. Basically I want ShowKeyboad() and HideKeyboard() functions. What's the best way to control this. I looked at the ITex...
I have a MFC class derived from CStdioFile declared as follows // Datafile.h class CDataFile : public CStdioFile { public: CDataFile(void); ~CDataFile(void); int OpenFile(LPCWSTR FileName); } After my OpenFile function is called the FileName variable is being corrupted. int CDataFile::OpenFile(LPCWSTR FileName) { m_OpenFl...
In what situations does Windows allow you to overwrite an open file? Is that ever allowed? This includes renaming a different file to the same name as an open file. ...
I am using the Win32 API and MS Visual C++ 6 to build a tree view of a directory structure, with check boxes associated with each tree view item. My goal is to be able to check a parent folder, and have that automatically check all of its associated children. However, after digging through MSDN, I have not been able to find a control...
I'm looking for a good way to find the process ID of a particular Windows Service. In particular, I need to find the pid of the default "WebClient" service that ships with Windows. It's hosted as a "local service" within a svchost.exe process. I see that when I use netstat to see what processes are using what ports it lists [WebClient] ...
Basically what I am trying to do is write my own pseudo task bar in C++. The program needs to idle until another program is started up, at which point it needs to visually depict that the other program is running. For each other program that is running, the user should be able to click on the visual representation and have Windows switch...
I'd like to persist pidls between sessions, so that my application can remember the users' folder selections, wherever they may be in the namespace, even if they're not file-system folders. I have a feeling that the way to do this is to write out the binary contents of the ITEMIDLIST itself, but I can't confirm this for sure, since thes...