comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2007
motuwethfrsasuw
 123456 18
78910111213 19
14151617181920 20
21222324252627 21
28293031    22
2007
 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
  Window Transparency with Opaque Text         


Author: Will
Date: May 31, 2007 22:56

I'm coding a WTL app that uses GDI+ to draw text onto its window. I
want the entire window to be partially transparent *except* for the
rendered text, which I want to be opaque. I know I can do this by
loading a semi-transparent PNG image as the window background and just
rendering text normally, but I was wondering if there's a better way
to do it (i.e., without having to use an graphic image at all).

Any ideas would be appreciated.
-Will
no comments
  where the user informations are saved         


Author: sajithkahawatta
Date: May 31, 2007 20:51

i want to know where the windows xp keep its user information .in
what
format is this information keep. how to secure that data (these data
must not be able to access by guest users.).
this is becouse i like to learn deeply about os .
is there any one can help me. thax
1 Comment
  Re: CreateFile oddness         


Author: David Lowndes
Date: May 31, 2007 16:51

>Thanks that does help explain it actually!

Jolly good.

I can understand any confusion though - I had exactly the same
thoughts when I first came across it. I wrote a little test app
wrapper for CreateFile that has proved valuable over the years in
testing file sharing scenarios
(http://www.jddesign.f2s.com/freeware_programs.htm#CFTest).

Dave
no comments
  Re: Is there a way to Get around "Entry Point Not Found" error??         


Author: Rick C
Date: May 31, 2007 16:39

"JussiJ" zeusedit.com> wrote in message
news:1180576450.061940.309230@i13g2000prf.googlegroups.com...
> On May 23, 4:58 am, Andre Kostur kostur.net> wrote:
>> Rymfax bigbangllc.com> wrote in news:1179857234.224564.70540
>> @q66g2000hsg.googlegroups.com:
>>
>> You're offtopic. This is a Microsoft specific question, so
>> you should be asking in a Microsoft-specifc newsgroup.
>
> Looks very much on topic to me.

Andre was probably posting from comp.lang.c++, where they (in my limited
experience) don't like to discuss Microsoft-specific stuff. One could argue
it was a group the OP shouldn't have added. (I've taken it off the list of
groups to spare their tender feelings.)
no comments
  Re: Looking for function to resolve VirtualStore paths to physical paths         


Author: Ronnie Vernon MVP
Date: May 31, 2007 15:12

Scott

Sorry you didn't get a reply there, they are usually good about responding
quickly.

Here are a few more links that should help.

The Windows Vista Developer Story: Windows Vista Application Development
Requirements for User Account Control (UAC):
http://tinyurl.com/2tlscg

Download details: Windows Vista Application Development Requirements for
User Account Control Compatibility:
http://tinyurl.com/2pf8n3

Secure It:
http://tinyurl.com/2o77lf

Developing Applications that Run at Logon on Windows Vista:
http://tinyurl.com/37bo6p

User Account Control Overview:
http://tinyurl.com/37jxuh

--
Show full article (1.48Kb)
no comments
  Re: CreateFile oddness         


Author: James Brown
Date: May 31, 2007 13:29

"David Lowndes" wrote in message
news:3q9u539s6s3amhdfthf0deg0re161m0g9d@4ax.com...
>>hFile1 = CreateFile(filename, GENERIC_READ|GENERIC_WRITE,
>> FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
>>...
>>hFile2 = CreateFile(filename, GENERIC_READ,
>> FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
>>
>>But it fails with ERROR_SHARING_VIOLATION. This is "explained" in the
>>table
>>in the following MSDN page:
>>http://msdn2.microsoft.com/en-us/library/aa363874.aspx
>>
>>OK fine, I can see from the table that it shouldn't work, but why not?
>>Process A has been quite clear that subsequent accesses on the file it
>>opened should succeed if the 2nd access is read-only. And if Process B
>>then
>>requests read-only access why doesn't it work?
>
> Because Process B is saying someone else can only open the file for ...
Show full article (1.19Kb)
no comments
  Re: Looking for function to resolve VirtualStore paths to physical paths         


Author: Scott
Date: May 31, 2007 11:10

> These Vista.public groups are focused on the end user. There is a very good
> resource for developers on the MSDN forums. These forums are staffed by
> Microsoft Developers and they are focused on problems with developing
> applications for Vista. You can access them here:

I gave it a shot there too, but nobody ever replied. So I guess:

1) Microsoft never implemented a function to resolve these
virtualizations

or

2) Microsoft did, but nobody knows what it is

Is there any sort of "Windows Vista Internals" book? I seem to
remember such things existed for XP and covered hidden facets of the
operating system such as the process tables, etc.

Scott
no comments
  CreateFile oddness         


Author: James Brown
Date: May 31, 2007 09:39

All,
I'm getting seriously confused with CreateFile:

Suppose that Process-A opens a file as follows:

hFile1 = CreateFile(filename, GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);

So the process has opened a file for read/write, and has told the OS that it
grants subsequent read-only access to the file. So I would have assumed that
the following would work from Process-B when opening the same file:

hFile2 = CreateFile(filename, GENERIC_READ,
FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);

But it fails with ERROR_SHARING_VIOLATION. This is "explained" in the table
in the following MSDN page:
http://msdn2.microsoft.com/en-us/library/aa363874.aspx

OK fine, I can see from the table that it shouldn't work, but why not?
Process A has been quite clear that subsequent accesses on the file it
opened should succeed if the 2nd access is read-only. And if Process B then
requests read-only access why doesn't it work?

Bizarrely, if Process-B specifies "share-read, share-write" along with
"readonly" then it succeeds:
Show full article (1.34Kb)
1 Comment
  no distinction between AM/PM with data from FtpFindFirstFile/InternetFindNextFile         


Author: nt8jbwu02
Date: May 31, 2007 08:43

I have a two files on my server with time stamps of midnight and
noon. From a CMD, it looks thus:

5/31/2007 0:00 0 file1.txt
5/31/2007 12:00 0 file2.txt

If I use the ftp.exe from windows XP, move to the above directory and
do a dir, I get:

05-31-07 12:00a 0 file1.txt
05-31-07 12:00p 0 file2.txt

Which is exactly what I expect. Now when I have my WinCE 5.0 device
do the same thing (code follows), it reports:
file1.txt size: 0 2007/5/31 0:0:0
file2.txt size: 0 2007/5/31 0:0:0

I have checked the value of ftLastWriteTime and they are truly the
same according to the debugger.
(I should note that all PM times are reported as AM such that a file
with a last access time of
15:00 or 3:00pm is reported at 3:0:0 in my code on the CE device)

How can I correct this?

-Eric
Show full article (1.77Kb)
no comments
  Re: WriteFile synchronous with OVERLAPPED flag         


Author: harry
Date: May 31, 2007 07:11

On May 31, 12:58 am, Klaus Meyer wrote:
> harry wrote:
>
> [...]
>
>
>
>
>
>> //Get Handle
>> hndl=CreateFile(tFileName,GENERIC_WRITE|GENERIC_READ,
>> FILE_SHARE_WRITE|
>> FILE_SHARE_READ,NULL,CREATE_ALWAYS,FILE_FLAG_OVERLAPPED|
>> FILE_FLAG_NO_BUFFERING,NULL);
>> //Set File pointer to end of file
>> li.QuadPart=(WRITE_SIZE)*iNumWrites;
>> SetEndOfFile(hndl);
>> //Taking back pointer
>> li.QuadPart=0;
>> bRet=SetFilePointerEx(hndl,li,&liNew,FILE_BEGIN); ...
Show full article (4.08Kb)
no comments
1 2