hi,I have got this problem, The situation is I have close my firewall, and the printer is a network printer when I look up the property of the printer, its port is USB002, so, I don't know how to fix it, can anyone help?
Don't forget to check the return value of GetFileAttributes(). If that fails and you don't check, SetFileAttributes() will munge the attributes, which is Bad. --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ "That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas." -- Buffy
P Gibson wrote:
...but struggling to find how to find out details as to if the user's profile is roaming, local etc...
Can you use LoadUserProfile() for this?
P Gibson wrote:
and then the size/quota, date etc information.
In what context are you looking for? You might be able to get quota information, although it is not profile related, from here.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
P Gibson wrote:
so some source code for comparing is required that is fast (and accurate) as some files maybe more than 5MB in size, but usually will be several hundred KB.
What about using Memory Mapped Files, Link :- http://www.codeproject.com/win32/cmemmap.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV
philgibson wrote: does this info get saved/stored in the registry ? Nope philgibson wrote: so how do I get at the text in the Address control of Explorer ? You have To write Browser Helper Object for Window Explorer. Search Browser Helper Object in google to know more about it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta