I just read this question and this question, and since then I have been trying to call SHGetSetSettings in Delphi. This is a function of shell32.dll, but is not defined in ShlObj.pas, so we need to write our own definition.
First we need to translate the SHELLSTATE structure. Now I have only limited experience in C, but I suppose that "...
Hi,
I'm looking for a way to get an etched border style for a window under win32. I have tried DrawEdge with the EDGE_ETCHED flag, which does give me that, but I'm not sure how obtain the same style for a scrollable window. SetWindowLong with GWL_EXSTYLE and WS_EX_STATICEDGE gives me something close, but I haven't found any other style ...
I'm coding a custom background non rectangular window with buttons such as minimize and close in bitmaps.
Here is my code just for now
The problem is the custom window does not receive mouse messages while hovering over non zero alpha regions.
...
Hi,
Nowadays open source projects are almost everywhere, especially for compilers, c++ compilers, pascal compilers, even for d language, go language, but why there is not a c# compiler, which works on native windows? Is there any legal restrictions, or any technical barrier? or no market requirement?
I was wondering on this question fo...
Hi guys,
Is there any tool that can monitor/capture/sniff named pipe traffic?
Even when max instance = 1?
...
Hello,
CryptGenRandom is a random number generator function in CryptoAPI in Windows. How much entropy has that random number generator ? I have already looked a lot, but I couldn't find it. Thanks in advance.
...
Is there a way to ensure that all WM_KEYDOWN events find their way into my main window regardless of who has focus? this is mainly for global things such as Delete, and hotkeys such as CTRL A and CTRL S. The problem is if another control has focus, all of these stop working. Is there maybe a better way of doing this than putting them in ...
I need to recognize and fire an event when a file is going to be executed or run by an application. I know I can do it by hooking windows procedures, but I don't know what procedure or event of windows fires.
For example, when an autorun file going to execute, my application should recognize it, Like an antivirus application.
I'm not su...
My application has a static control which inside has a tab control. It looks like this:
and I want to handle the topbar's paint event so that after it has drawn itself (and its children), have it floodfill to look more like this:
Given that I'v subclassed the topbar and can override any of its events, how could I do this?
Thanks
...
I am using Visual Studio 2008 C++ project (Visa 32 bit).
I have the following #include directive in my source code.
#include <example/header.h>
In my include path I specify the parent directory of 'example', i.e.
C:/.../include
where the full path to the header looks like
C:/.../include/example/header.h
However, 'example' is a ...
I'm trying to copy a file from one location to another using SHFileOperation:
SHFILEOPSTRUCT fileop;
fileop.hwnd = 0;
fileop.wFunc = FO_COPY;
fileop.pFrom = L"C:\\SomeDirectory\\SomeName.jpg\0";
fileop.pTo = L"C:\\SomeOtherDirectory\\SomeName.jpg\0";
fileop.fFlags = FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_SILENT;
fileop.fAnyOperationsA...
Is it possible, (via some shell extension or similar) to customize the Windows shell (explorer.exe) to accomplish the following?
Make it, upon navigating to a predefined path:
draw over its surface - custom background, or even add custom forms for data input
display custom listview items based on the "virtual" path provided (something...
Hello all
im porting c code to windows 32 bit using visual studio express
now i have 3 functions that i can't find any alternatives in windows
they are:
alarm
bzero
bcopy
what are the equivalent methods in C win32 ?
...
Hi, maybe stupid question, but i dont know answer. What is difference between using GetModuleHandle or LoadLibrary to load dll(and then to use function of that dll) and to include directly desired header. For example, with using GetModuleHandle:
typedef void (WINAPI *PGNSI)(LPSYSTEM_INFO);
// Call GetNativeSystemInfo if supported or Ge...
I am creating a named pipe in windows service running on local syastem account with security attribute as Intptr.Zero in CreateNamedPipe() method of Windows API.
The problem is that this named pipe is not accesible to the user account running the client application and calling CreateFile() method.
Now I have googled a lot and found ou...
how to find MyMusic Folder of other users ?
...
I'm using low level hooks, but I can't determine what key was pressed. Values are the same for every single key. Is here something I'm doing wrong?
Hook method
void hook() {
/** this part is probably not important since I use global WH_KEYBOARD_LL, is that right? */
HWND hwnd = FindWindow(NULL, "Vertices.exe");
HINSTANCE i...
The LoadLibrary function is returning to me the error code 182. From MSDN:
ERROR_INVALID_ORDINAL: "The operating system cannot run %1"
Does anyone have a better description of what this error is?
...
If I use the Win32 API LoadLibrary to load the same DLL 3 times in a row it should return 3 distinct handles and the functions in each library should all have different addresses correct? (Or does it do something "smart" and detect if the dll has already been loaded for the process and just point to the same module?)
...
I have a struct:
struct s
{
UINT_PTR B_ID;
};
s d;
d.B_ID=0x1;
That works fine, but I want d.B_ID to be constant. I tried to use (const) but it didn't work. So after I put a value to d.B_ID, then I want make it a constant.
Any ideas?
EDIT
ok i don't want the whole struct a constant.
when i set timer and use the b.B_ID as an i...