I'm trying to develop a keyboard emulator, controlled by the mouse, but with only partial success. The first mouse click on my keyboard emulator window kills the focus of the keyboard receiving window. After returning the focus (SetForegroundWindow()) some programs lose possition of the cursor...
At first, may be somebody knows some easy way to know, am I privileged user or not? Until now I tryed to write to certain registry key in HKEY_LOCAL_MACHINE, in case of success I decided I am an admin. Now, in Vista, it does not work - Vista allows for everybody to write to system area of...
It's a repeated question, now to the right forum.
http://www.tek-tips.com/viewthread.cfm?qid=1434846&page=1
Recently I was forced to switch to Windows Vista and am experiencing strange behavior of the file system. In some mystical way there are files, which contents are different when opening...
Recently I was forced to switch to Windows Vista and am experiencing strange behavior of the file system. In some mystical way there are files, which contents are different when opening them from different programs or different user accounts. Even deleted files sometimes could be opened so far...
Hi all.
The question is actually regarding NTFS policy of security. Is there possibility to deny write access for administrator? It seems, that administrator allways has right easy to reset read-only attributes.
The problem is actually to distribute read-only data in Flash USB keys. On early...
Hi all.
I wonder how could be disk/flash drives accessed dirrectly, not using logical drive letters C:, D:, K:, etc. There should be some interface points for read/write access dirrectly in device drivers. For example, WinHex from X-Ways has such a possibility at menu option Tools/Open Disk...
The problem is following:
I would like to use formatted text fragments in owner-drawed listbox. I do create a RTF window using "RichText" window class name in CreateWindowEx(). Then I put several RTF fragments to that window using WM_SETTEXT message, grab window client area pictures to the...
Should be threads closed explicitly (by sending WM_QUIT message and a ExitThread() as a responce to it, for example)? Are not all child threads closed authomatically by ending of the main parent process? What to do in case, when child thread Sleep()'s or accept()'s sockets? How to wake thread up...
The project itself is a Macromedia Flash generated .exe file. The goal is to hide it from hacking (at least minimal - Flash .exe files can easily be recompiled to theyr sources). Now I'm doing something like following: dump a Flash .exe file as hex array, embed it into a another C++...
What Windows SDK calls should I look for - I want to make a subwindow control with scroll bars. That subwindow shoud contain edit controls, comboboxes etc. and be logically bigger than the control on the parrent window - scrollbars should be used to scroll to hidden parts of that window...
In Acrobat Reader 5.0 CE, when I try to open 21-th document, first open document is authomatically closed. How to increase this limitation? We need 31 file to be open at a time.
For Windows NT 4.0 it is on <windir>\Profiles\<user>\Personal\My Documents.
Well, I can get <windir> using GetWindowsDirectory(), <user> by means of GetUserName(). But the problem is, that in certain cases user data are stored in some prolonged folder like "peter.000". What API should I use to...
I would like to start Windows timer using
SetTimer(HWND hWnd, UINT nIDEvent, ...);
My application has no window, it simply starts a child thread and waits for messages from that thread. My wish is to have a some timeout timer to proceed the job for the case, when something wrong is happened...
I found an example on how to change window background:
http://www.abdn.ac.uk/~u02cll2/windowsapi/changebackground.c.htm
Unfortunatelly under Windows 98 the call of RegisterClassEx() fails (source file line number 60) and GetLastError() gives error number 120 ("This function is only valid in...
I'am trying to add some additional processing on each key press in dialog based MFC application. The piece of code is:
class CTestkeyDlg : public CDialog
{
<...>
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
void...
Aspi API is originally meant for accessing of SCSI devices. Analyzing some open source CD software like CDEX, I didn't found any special approach regarding ATAPI CD-ROMs, only ASPI calls. Is it true may be, that Wnaspi32 emulates SCSI calls for accessing of ATAPI CD-ROMs too? Or there is any...
Hi,
In my C++ program I want to check some properties of disk inserted in my CD-ROM (CD writer) drive - manufacturer name, disk type (CD, CD-R, CD-R/W) etc. What API should I start to search? Perhaps I need to access some additional features of CD-ROM device driver? How can I interact directly...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.