News for 六月 2010
修改MFC控制tab顺序
ctrl + d 时间长了久了没用了就忘了!还是放在这里好!
Edited: 六月 11th, 2010
GlobalMemoryStatusEx Function
GlobalMemoryStatusEx Function
Retrieves information about the system’s current usage of both physical and virtual memory.
返回当前系统物理及虚拟内存信息
BOOL WINAPI GlobalMemoryStatusEx( __in_out LPMEMORYSTATUSEX lpBuffer );
Parameters
参数
- lpBuffer
-
A pointer to a MEMORYSTATUSEX structure that receives information about current memory availability.
-
一个指向MEMORYSTATUSEX 结构体的指针,返回当前可用内存信息
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
函数调用成功则返回值 非0 否则返回值为0
其实很简单!一看就能看懂!
Edited: 六月 8th, 2010
PROCESSENTRY32
typedef struct tagPROCESSENTRY32 { DWORD dwSize; DWORD cntUsage; DWORD th32ProcessID; ULONG_PTR th32DefaultHeapID; DWORD th32ModuleID; DWORD cntThreads; DWORD th32ParentProcessID; LONG pcPriClassBase; DWORD dwFlags; TCHAR szExeFile[MAX_PATH];
} PROCESSENTRY32, *PPROCESSENTRY32;
The size of the structure, in bytes. Before calling the Process32First function, set this member to sizeof(PROCESSENTRY32). If you do not initialize dwSize, Process32First fails.
This member is no longer used and is always set to zero.
The process identifier.
This member is no longer used and is always set to zero.
This member is no longer used and is always set to zero.
The number of execution threads started by the process.
The identifier of the process that created this process (its parent process).
The base priority of any threads created by this process.
This member is no longer used, and is always set to zero.
The name of the executable file for the process.
Edited: 六月 7th, 2010