|
Anyone can tell me where I can find the C/C++ source code on how page and buffer manager
are implemented in a database system?
Thank you
|
|
|
|
|
To C++ - Gurus from a Java - developer
If you want to check if a file is currently opened by another application, you can't do it by using
'GetFileInformationByHandle' because there is no field like 'isCurrentlyOpened', right?
For my purpose 'last access' and 'last modified' don' t work, of course.
So, how can you monitor if a file is opened by any other app.? Is it just impossible with the use
of documented functions for win32?
Does anybody have a code-snippet or a hint?
Thanks a lot in advance!
|
|
|
|
|
Simply open the file with a flag to deny all access to the file. If the file is opened the call will fail. Note that this won't tell you which program is using the file, only if it is being used.
|
|
|
|
|
Very good hint!
thanks again
|
|
|
|
|
Excuse me, but maybe i didn 't ask in a clear enough way:
let' s say file 'a' is already opened by (any other) application 'Z'.
then
HANDLE hFile = CreateFile(
a, //path to 'a'
GENERIC_READ | GENERIC_WRITE,
0, //dwShareMode
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
as part of my program creating the handle
does not fail (hFile is not equal INVALID_HANDLE_VALUE)!
Just as the dcocumentation says: if dwShareMode is 0 the subsequent(!) calls to open 'Z'
will fail.
So, did i get you wrong?
Or should i translate your suggestion in another way into code?
|
|
|
|
|
hmmm
I SEEM to remember that every object created by a process is assigned the process'es SID information...right??
could you then not grab the ProcessID from the SID and find out which application is using that pid??
Or am I WAAAAAAAAY out here???
Erik
I hit faked him with my win32 API .chm and the peabrain goes for it. I follow it up with a salvo of left's and right's sending him down hard. It's lunch time and he's getting a Champ Sandwhich Special. I said, How's that Mr. VB?! Is that 'I wanna use COM in that Server enough for you?!'
...Ever since then, I've been the Champ.
|
|
|
|
|
i could not put the data back to the grid after modifying it on the cell containing the combo
|
|
|
|
|
How can obtain the processor status ?
arunkizhakumthala@yahoo.com
|
|
|
|
|
what do you mean by "processor status"?
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
I try to usr MIB_IFROW->dwOperStatus, but the only result i got is: unreachable.
why?
or any other solution?
Send me a email if possible.
cheers
m0th@dcs.shef.ac.uk
|
|
|
|
|
Hi,
I was looking through the Platform SDK fro Whistler Beta 2, and tried to find any information on how I would get my applications "skinned" like the rest of the programs in Windows XP.
No, they're not all skinned. All window borders are skinned - but not buttons.
I found a good example to confuse me - calc.exe.
Checking with Depends(Part of the PlatformSDK and VisualC++), it had no references to UXTheme.dll. What? Yeah - well in the sdk, they try to convince me of overriding paint functions for all my controls, and calling a DrawThemeBackground() with a lot of paramters telling it what I want to draw. DrawThemeBackground() is part of UXTheme.dll which is the whole system of drawing custom UI's. comctl32.dll uses it. Well somehow calc.exe is telling UXTheme.dll to draw all it's buttons. But I just don't know how.
I'm not go and custom paint all my controls.
-Me, Alex
|
|
|
|
|
By default, apps use the v5 common controls, which don't get themed controls. You need to tell the OS to use the v6 controls for your app, which involves putting a manifest (an XML file with a particular format) as a resource in your binary.
Here's an MSDN article that lists the exact steps to take.
--Mike--
http://home.inreach.com/mdunn/
"Holding the away team at bay with a non-functioning phaser was an act of unmitigated gall. I admire gall."
-- Lt. Cmdr. Worf
|
|
|
|
|
Hi all,
If anyone have an example about using of Crystal Report 7.0(Just using of ActiveX), please send for me ...
In VC++ ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I'm looking for c++ source code that shows how I can send files using the FTP protocol.
regards,
Brian
|
|
|
|
|
if you are using VC++ 6 then look at MFC provided internet classes, there is facility for simple ftp client in there....have used....is adequate
|
|
|
|
|
Dear all
How to remotely power off computer on the network?
Where to download it?
Thank you
|
|
|
|
|
It's part of the resource kit. You'll need too applications. RExec and Shutdown. First one lets you remote execute and the second does what it's named.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Can you provide some examples for me?
for example, remotely power on/off computer
Thank you
|
|
|
|
|
Hello all
i am writing this for revolution gamez, the small and new company that i own, i am in seek of some programmers, with experiance in c,c++, open gl, direct x, and anything else.
this is a posisbly paid job, more details can be given on request.
as part of the team, you will be asked to
help code the game engine, for a fully 3d game
and to code the development tools
help code for the finnished game
this job allows you to work from home, and in your spare all i ask is that work can be shown from you in the end.
if you need further details, please reply below, or e-mail me
Gordon Ronald
Owner of Revolution Gamez
|
|
|
|
|
Man, its been a long time since I've been paid in posisblys! What's the exchange rate between posisblys and US dollars these days, anyway?
|
|
|
|
|
i mean possibly as it depends on 2 conditions
1. we sell the game, (i am in talks about it now, but until development this wont happen
2. we make money from this
isnt it simple
Gordon Ronald
Owner of Revolution Gamez
|
|
|
|
|
Well then, having experience in DX, as I do, I will possibly code for you, as it depends on 2 conditions.
1. hell freezes over
2. pigs fly
isnt it simple
Vladamiir Spellczech
|
|
|
|
|
Hi,
Curruntly, I am working on the one project, that uses low-level TCP/IP calls and NDIS to retrieve packets, analyze them, and re- targeting them to another node.
So, where can I find some information, about low-level TCP programming, packets managing, NDIS managing, ... I am tired of WinDDK, so I need some basic (not very) explanation of it's usage in the Win2K systems.
Thanks beforehand,
DMD
|
|
|
|
|
|
check API Hooking by DLL Injecting Revealed - WinSock2 Hook in the win 2000 / xp section !
you might be surprised !
//rate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|