comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Tweaking XP         


Author: lessspamjonson
Date: Jan 13, 2008 12:29

Windows XP tips and tricks. Learn how to bypass very common windows
problems, speed up your system and make it more reliable with useful
tips and tricks. http://windows-xp-tipss.blogspot.com
1 Comment
  RegQueryValueEx()         


Author:
Date: Jan 13, 2008 04:58

Hello all,

I want to implement a function which test wheither a given registry
value exists or not. For this, i use RegQueryValueEx() API as following,
but it always return an error code 2. However, the value exists, is
accessible (RW). I can't figure out why.

result = RegQueryValueEx(HKEY_LOCAL_MACHINE,
"SOFTWARE\\7-Zip\\Path",
NULL,
NULL,
NULL,
NULL);

Any idea?

Vincent
3 Comments
  Critical sections: user or kernel mode?         


Author: Alex
Date: Jan 13, 2008 01:23

Hi

I'm slightly confused about whether CSs are implemented in user mode
or kernel mode. The reason is as follows: In "Programming application
for MS Windows" by Jeffrey Richter, the usage of Critical sections was
explained under "Thread synchronization in user mode", and Richter
goes to explain that synchronization in user mode is faster than
kernel objects (due to transition into kernel mode and back,
presumably).

But then, I read some more info about CSs, and he says something along
the lines of: MS decided to implement spinlocks inside critical
sections to avoid unnecessarily transitioning into kernel mode when it
only needs to wait a short time, (... and if the CS can't be entered
after the spin count, it transitions into kernel mode and waits).

So what's this stuff about transitioning into kernel mode? I thought
CSs were purely user mode things? Or are they actually a hybrid?
5 Comments
  How Do I Borwse Remote System's Shared Files?         


Author: Larry Lindstrom
Date: Jan 13, 2008 01:07

Hi Folks:

Developing on WINXP Media, VC6, WIN32, no MFC.

I bet this question has been asked and answered many
times, but I don't know how to pose a query to Google's
archives for this group.

I want my application to be able to access a Firebird
database on another computer. I want the user to be able
to select a computer, then open up a window so they can
select the database file through the remote system's
directory structure. I might want my application to search
the remote's shared resources for Firebird database files,
and present the user with a list.

WNetEnumResource() allows me to examine the names of each
PC on my local network.

After the user selects one of these computers in a combo,
the application needs to be able to move through the remote's
shared files.
Show full article (1.16Kb)
1 Comment