getmodulefilename Questions
9
Solved
The GetModuleFileName() takes a buffer and size of buffer as input; however its return value can only tell us how many characters is has copied, and if the size is not enough (ERROR_INSUFFICIENT_BU...
Histoplasmosis asked 30/4, 2009 at 7:45
6
Solved
Following code:
#include <iostream>
#include <Windows.h>
using namespace std;
int main ()
{ LPWSTR buffer; //or wchar_t * buffer;
GetModuleFileName(NULL, buffer, MAX_PATH) ;
cout&l...
Spectrochemistry asked 13/9, 2013 at 9:41
3
I need to do some stuff in a dll based on which process has loaded it. So being relatively new to windows programming I need help figuring out how to find the exe which loaded the current dll. So f...
Nidus asked 9/6, 2011 at 0:51
2
Solved
I am trying to check my applications path, and if it is not a specified path, then move it. I feel like my code is solid, yet it does not work properly.
TCHAR pCheck[MAX_PATH];
TCHAR xPath[MAX_PAT...
Larch asked 10/11, 2012 at 16:46
3
Solved
How can I reliably get the script name in Chicken Scheme?
It seems that -ss eats up the script name, so it's not visible unless I use dot slash to run my scripts.
scriptedmain.scm:
#!/usr/bin/en...
Copywriter asked 4/3, 2011 at 0:46
5
Solved
I'm trying to get the name of the executable of a window that is outside my C# 2.0 application. My app currently gets a window handle (hWnd) using the GetForegroundWindow() call from "user32.dll".
...
Daedalus asked 10/11, 2008 at 4:59
1
© 2022 - 2024 — McMap. All rights reserved.