Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^11: Private temporal files on Windows

by BrowserUk (Patriarch)
on Dec 22, 2014 at 14:59 UTC ( [id://1111027]=note: print w/replies, xml ) Need Help??


in reply to Re^10: Private temporal files on Windows
in thread Private temporal files on Windows

salva, I strongly suggest you add FILE_ATTRIBUTE_HIDDEN to the existing FILE_ATTRIBUTE_TEMPORARY on the CreateFile().

Also, if you add:

MODULE = Win32::SecretFile PACKAGE = Win32::SecretFile PROTOTYPES: ENABLE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

It fixes the warning below when building for Strawberry Perl 5.18 with mingw:

Please specify prototyping behavior for SecretFile.xs (see perlxs manu +al)

I haven't been able to find a fix for the warnings:

SecretFile.xs(82) : warning C4013: 'ConvertSidToStringSidA' undefined; + assuming extern returning int SecretFile.xs(87) : warning C4013: 'ConvertStringSecurityDescriptorToS +ecurityDescriptorA' undefined; assuming extern returning int

When building with MSVC for AS 5.10 -- it appears to be down to differences between the sddl.h files as shipped with mingw -v- that shipped with MSVC -- but as AS have gone over to mingw, those of us still using msvc to build perl stuff are probably a small and dying minority; and it doesn't prevent it from building.

(PS. Sorry for doing this through PM rather than github, but I've barely used git and I'd hate to screw it up.)


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1111027]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 23:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found