comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
Your Ad Here
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
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
  Protect yourself against Operation Sudden Fall         


Author: Russell.Aubuchon
Date: May 9, 2008 18:14

Law enforcement is now intercepting text messages,
as proven by Operation Sudden Fall in San Diego.

http://www.usdoj.gov/dea/pubs/states/newsrel/sd050608.html
http://www.signonsandiego.com/news/education/20080506-1338-bn06sdsu2.html

Don't let your personal SMS/text messages fall into
the wrong hands. Encrypt your messages with one
of these:

http://www.CryptoSMS.org
http://www.CryptoSMS.com
http://www.FortressMail.net/fortress_sms.htm
http://www.Cop2p.com/encrypted_sms.html

Be Safe, Be Encrypted, Fuck the Police!!

--
If will you elect the loyal sharp injections before Pervis does?
no comments
  Finding DLL's HMODULE from within the running FARPROC         


Author: Beagle
Date: May 9, 2008 11:16

Folks,

I have the following running code. Line 5 attempts to pass the DLL
handle to the running DLL code (line 8) for use in later LoadResource
calls. This code results in a "Run-Time Check Failure #0" (Ref *1).
Not sure how to resolve this other than not write this kind of code,
but it seems to me that there is a better way to get the HMODULE/
HINSTANCE of the loaded DLL from within the exported function via
win32 call. Is that possible?

Thanks,
BEA

File : call_dll.c

1 typedef void (__stdcall *PFN_ASSIGN_DLL_HAN)(HINSTANCE hDll);

2 void mycall(void) {
3 HMODULE hDll = LoadLibrary(TEXT("mydll"));

4 PFN_ASSIGN_DLL_HAN Assign_Dll_handle = (PFN_ASSIGN_DLL_HAN)
GetProcAddress(hDll, "Assign_Dll_handle");

5 Assign_Dll_handle(hMir);
...
}
Show full article (1.14Kb)
6 Comments
  "readelf" Equivalent?         


Author: gamename
Date: May 9, 2008 08:32

Hi,

In the *nix world, there is the command 'readelf' to figure out if an
executable contains debug symbols. Is there an equivalent command in
win32??

Tks.
-T
2 Comments
  GetDiskFreeSpaceEx returns disk free space without considering user-quota         


Author: somi
Date: May 9, 2008 07:47

Hi

I am finding problem with what GetDiskFreeSpaceEx returns.
GetDiskFreeSpaceEx returns below three parameters:
lpFreeBytesAvailable: the total number of free bytes on a disk that
are available to the
user who is associated with the calling thread. If per-user quotas are
being used, this
value may be less than the total number of free bytes on a disk.
lpTotalNumberOfBytes: the total number of bytes on a disk that are
available to the user who
is associated with the calling thread. If per-user quotas are being
used, this value may be
less than the total number of bytes on a disk.
lpTotalNumberOfFreeBytes: the total number of free bytes on a disk.

In our application the parameters lpFreeBytesAvailable and
lpTotalNumberOfBytes are not
returning the values considering the user-quota that is defined on the
volume.
Show full article (1.72Kb)
7 Comments
  Unable to create window after registering a window.         


Author: vidishasharma
Date: May 9, 2008 01:29

Hi I am trying to register a window as follows(I am doing this so that
I get empty window and I can add controls into it as I desire)

wc = new WNDCLASSEX();
//wc.hInstance =
Marshal.GetHINSTANCE(this.GetType().Module);
wc.lpszClassName = "TestWindow";
wc.lpfnWndProc = wndProcDelegate1;
wc.cbSize = Marshal.SizeOf(typeof(WNDCLASSEX));
wc.hbrBackground = GetStockObject(BLACK_BRUSH);
atom = RegisterClassEx(ref wc);

This is how I am registering I get soem value of atom

Then I register the window using

IntPtr FloatingWindow = CreateWindowEx(WS_EX_TOPMOST, atom,
wc.lpszClassName, WS_CHILD | WS_OVERLAPPEDWINDOW | WS_VISIBLE,
readingpane.X - 200, readingpane.Y, 200, 200, _windowLike,
IntPtr.Zero, IntPtr.Zero, IntPtr.Zero);

However I get my window handle as zero.

This is what I have used to createwindow
Show full article (1.32Kb)
5 Comments
  Create a browser control without window?         


Author: moonfacell
Date: May 9, 2008 01:20

Hi guys,

Can we create a browser control without a window hosted it ?

If we have a window to host the ActiveX control, we must use another
thread to handle its message callback. I want use a single thread in
application.

Thank you :)
2 Comments
Your Ad Here
  First time opening COM port using CreateFile         


Author: pedro_nf
Date: May 9, 2008 01:03

I just want to post here the conclution to this old thread, I can't
reply to the thread any more, I guess it is no longer active...

The problem was related to the port timeout settings, this is the code
that fixed it, it is placed after the ::SetCommState() function:

//
// Initialize timeout values
//

COMMTIMEOUTS commTimeouts;

BOOL bRetTimeouts = FALSE;

/// \ Set the timeouts for the CommPort
/// \ These values were retrieved by the setting of the Comm through
hyperTerminal

commTimeouts.ReadIntervalTimeout = 10;
commTimeouts.ReadTotalTimeoutConstant = 0;
commTimeouts.ReadTotalTimeoutMultiplier = 0;
commTimeouts.WriteTotalTimeoutMultiplier = 0;
commTimeouts.WriteTotalTimeoutConstant = 5000;

bRetTimeouts = SetCommTimeouts(m_hFile, &commTimeouts);
ASSERT(bRetTimeouts == TRUE);
no comments