Home
last modified time | relevance | path

Searched refs:hInstance (Results 1 – 25 of 598) sorted by relevance

12345678910>>...24

/reactos/modules/rostests/apitests/shell32/
H A DShellExecuteW.cpp21 HINSTANCE hInstance; in START_TEST() local
47 ret = (INT)(UINT_PTR)hInstance; in START_TEST()
50 if (hInstance) in START_TEST()
60 ret = (INT)(UINT_PTR)hInstance; in START_TEST()
63 if (hInstance) in START_TEST()
76 if (hInstance) in START_TEST()
89 if (hInstance) in START_TEST()
102 if (hInstance) in START_TEST()
115 if (hInstance) in START_TEST()
128 if (hInstance) in START_TEST()
[all …]
/reactos/base/applications/regedit/
H A Dmain.c42 BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) in InitInstance() argument
54 wcFrame.hInstance = hInstance; in InitInstance()
55 wcFrame.hIcon = LoadIconW(hInstance, MAKEINTRESOURCEW(IDI_REGEDIT)); in InitInstance()
69 wcChild.hInstance = hInstance; in InitInstance()
80 RegisterHexEditorClass(hInstance); in InitInstance()
144 void ExitInstance(HINSTANCE hInstance) in ExitInstance() argument
146 UnregisterHexEditorClass(hInstance); in ExitInstance()
182 int WINAPI wWinMain(HINSTANCE hInstance, in wWinMain() argument
211 hInst = hInstance; in wWinMain()
214 if (!InitInstance(hInstance, nCmdShow)) in wWinMain()
[all …]
/reactos/base/applications/dxdiag/
H A Dd3dtest.c20 BOOL StartD3DTest(HWND hWnd, HINSTANCE hInstance, WCHAR* pszCaption, INT TestNr) in StartD3DTest() argument
29 LoadStringW(hInstance, IDS_MAIN_DIALOG, szCaption, sizeof(szCaption) / sizeof(WCHAR)); in StartD3DTest()
30 LoadStringW(hInstance, IDS_DDTEST_ERROR, szError, sizeof(szError) / sizeof(WCHAR)); in StartD3DTest()
77 HINSTANCE hInstance = GetModuleHandle(NULL); in D3DTests() local
86 winClass.hInstance = hInstance; in D3DTests()
108 hInstance, in D3DTests()
115 LoadStringW(hInstance, IDS_MAIN_DIALOG, szCaption, sizeof(szCaption) / sizeof(WCHAR)); in D3DTests()
119 StartD3DTest(hWnd, hInstance, szCaption, 7); in D3DTests()
120 StartD3DTest(hWnd, hInstance, szCaption, 8); in D3DTests()
121 StartD3DTest(hWnd, hInstance, szCaption, 9); in D3DTests()
[all …]
H A Dddtest.c32 LoadStringW(hInstance, IDS_MAIN_DIALOG, szCaption, sizeof(szCaption) / sizeof(WCHAR)); in StartDDTest()
33 LoadStringW(hInstance, IDS_DDTEST_ERROR, szError, sizeof(szError) / sizeof(WCHAR)); in StartDDTest()
35 LoadStringW(hInstance, resResult, szResult, sizeof(szResult) / sizeof(WCHAR)); in StartDDTest()
74 HINSTANCE hInstance = NULL; in DDTests() local
83 winClass.hInstance = hInstance; in DDTests()
97 DD_TEST_WIDTH, DD_TEST_HEIGHT, NULL, NULL, hInstance, NULL); in DDTests()
104 LoadStringW(hInstance, IDS_MAIN_DIALOG, szCaption, sizeof(szCaption) / sizeof(WCHAR)); in DDTests()
108 StartDDTest(hWnd, hInstance, IDS_DDPRIMARY_DESCRIPTION, IDS_DDPRIMARY_RESULT, 1); in DDTests()
109 StartDDTest(hWnd, hInstance, IDS_DDOFFSCREEN_DESCRIPTION, IDS_DDOFFSCREEN_RESULT, 2); in DDTests()
110 StartDDTest(hWnd, hInstance, IDS_DDFULLSCREEN_DESCRIPTION, IDS_DDFULLSCREEN_RESULT, 3); in DDTests()
[all …]
/reactos/base/applications/msconfig_new/
H A Dmsconfig.c219 psh.hInstance = hInstance; in CreatePropSheet()
230 psp[nPages].hInstance = hInstance; in CreatePropSheet()
242 psp[nPages].hInstance = hInstance; in CreatePropSheet()
257 psp[nPages].hInstance = hInstance; in CreatePropSheet()
289 psp[nPages].hInstance = hInstance; in CreatePropSheet()
303 psp[nPages].hInstance = hInstance; in CreatePropSheet()
312 psp[nPages].hInstance = hInstance; in CreatePropSheet()
321 psp[nPages].hInstance = hInstance; in CreatePropSheet()
341 BOOL Initialize(HINSTANCE hInstance) in Initialize() argument
394 hInst = hInstance; in Initialize()
[all …]
/reactos/modules/rosapps/templates/mdi/
H A Dmain.c62 BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) in InitInstance() argument
70 hInstance, in InitInstance()
71 LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MDI_APP)), in InitInstance()
86 hInstance, in InitInstance()
113 HMENU hMenu = LoadMenu(hInstance, MAKEINTRESOURCE(IDC_MDI_APP)); in InitInstance()
153 IDC_TOOLBAR, 2, hInstance, IDB_TOOLBAR, toolbarBtns, in InitInstance()
219 int APIENTRY WinMain(HINSTANCE hInstance, in WinMain() argument
229 LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); in WinMain()
230 LoadString(hInstance, IDC_MDI_APP, szFrameClass, MAX_LOADSTRING); in WinMain()
239 hInst = hInstance; in WinMain()
[all …]
/reactos/modules/rostests/win32/user32/paintdesktop/
H A DPaintDesktop.c21 ATOM MyRegisterClass(HINSTANCE hInstance);
25 int APIENTRY wWinMain(HINSTANCE hInstance, in wWinMain() argument
35 MyRegisterClass(hInstance); in wWinMain()
37 if (!InitInstance (hInstance, nCmdShow)) in wWinMain()
49 ATOM MyRegisterClass(HINSTANCE hInstance) in MyRegisterClass() argument
57 wc.hInstance = hInstance; in MyRegisterClass()
67 BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) in InitInstance() argument
71 hInst = hInstance; in InitInstance()
74 CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL); in InitInstance()
/reactos/base/applications/cmdutils/tasklist/
H A Dtasklist.c50 if (!hInstance) in PrintResString()
54 LoadStringW(hInstance, uID, StringBuffer, _countof(StringBuffer)); in PrintResString()
69 BOOL PrintMemory(SIZE_T MemorySizeByte, UINT MaxWidth, HINSTANCE hInstance) in PrintMemory() argument
71 if (!hInstance) in PrintMemory()
108 LoadStringW(hInstance, IDS_MEMORY_STR, FormatStr, _countof(FormatStr)); in PrintMemory()
118 VOID PrintHeader(HINSTANCE hInstance) in PrintHeader() argument
120 if (!hInstance) in PrintHeader()
208 HINSTANCE hInstance = GetModuleHandleW(NULL); in EnumProcessAndPrint() local
209 assert(hInstance); in EnumProcessAndPrint()
215 PrintHeader(hInstance); in EnumProcessAndPrint()
[all …]
/reactos/base/applications/sndrec32/
H A Dsndrec32.cpp28 ATOM MyRegisterClass(HINSTANCE hInstance);
83 _tWinMain(HINSTANCE hInstance, in _tWinMain() argument
186 MyRegisterClass(hInstance); in _tWinMain()
187 MyRegisterClass_wave(hInstance); in _tWinMain()
224 MyRegisterClass(HINSTANCE hInstance) in MyRegisterClass() argument
234 wcex.hInstance = hInstance; in MyRegisterClass()
250 hInst = hInstance; in InitInstance()
261 hInstance, in InitInstance()
287 wcex.hInstance = hInstance; in MyRegisterClass_wave()
305 hInst = hInstance; in InitInstance_wave()
[all …]
/reactos/base/shell/explorer/
H A Dexplorer.cpp40 static VOID InitializeAtlModule(HINSTANCE hInstance, BOOL bInitialize) in InitializeAtlModule() argument
44 gModule.Init(ObjectMap, hInstance, NULL); in InitializeAtlModule()
127 StartWithCommandLine(IN HINSTANCE hInstance) in StartWithCommandLine() argument
149 StartWithDesktop(IN HINSTANCE hInstance) in StartWithDesktop() argument
151 InitializeAtlModule(hInstance, TRUE); in StartWithDesktop()
158 LoadStringW(hInstance, IDS_STARTUP_ERROR, Message, _countof(Message)); in StartWithDesktop()
163 hExplorerInstance = hInstance; in StartWithDesktop()
228 InitializeAtlModule(hInstance, FALSE); in StartWithDesktop()
234 _tWinMain(IN HINSTANCE hInstance, in _tWinMain() argument
254 return StartWithCommandLine(hInstance); in _tWinMain()
[all …]
/reactos/dll/win32/lsasrv/
H A Dutils.c17 LsapLoadString(HINSTANCE hInstance, in LsapLoadString() argument
29 hrsrc = FindResourceW(hInstance, in LsapLoadString()
35 hmem = LoadResource(hInstance, hrsrc); in LsapLoadString()
65 _In_ HINSTANCE hInstance, in LsapGetResourceStringLengthEx() argument
79 hrsrc = FindResourceW(hInstance, in LsapGetResourceStringLengthEx()
85 hmem = LoadResource(hInstance, hrsrc); in LsapGetResourceStringLengthEx()
100 _In_ HINSTANCE hInstance, in LsapLoadStringEx() argument
117 hrsrc = FindResourceW(hInstance, in LsapLoadStringEx()
123 hmem = LoadResource(hInstance, hrsrc); in LsapLoadStringEx()
/reactos/base/applications/clipbrd/
H A Dclipbrd.c31 sfn.hInstance = Globals.hInstance; in SaveClipboardToFile()
54 if (MessageBoxRes(Globals.hMainWnd, Globals.hInstance, in LoadClipboardDataFromFile()
88 ofn.hInstance = Globals.hInstance; in LoadClipboardFromFile()
181 RetrieveClipboardFormatName(Globals.hInstance, uFormat, TRUE, in UpdateDisplayMenu()
193 RetrieveClipboardFormatName(Globals.hInstance, uFormat, TRUE, in UpdateDisplayMenu()
226 if (MessageBoxRes(Globals.hMainWnd, Globals.hInstance, in OnCommand()
371 DrawTextFromResource(Globals.hInstance, ERROR_UNSUPPORTED_FORMAT, in OnPaint()
694 Globals.hInstance = hInstance; in wWinMain()
699 wndclass.hInstance = hInstance; in wWinMain()
700 wndclass.hIcon = LoadIconW(hInstance, MAKEINTRESOURCEW(CLIPBRD_ICON)); in wWinMain()
[all …]
/reactos/dll/win32/samsrv/
H A Dsetup.c900 HINSTANCE hInstance; in SampInitializeSAM() local
907 hInstance = GetModuleHandleW(L"samsrv.dll"); in SampInitializeSAM()
974 SampLoadString(hInstance, IDS_DOMAIN_BUILTIN_NAME, szName, 80); in SampInitializeSAM()
999 SampLoadString(hInstance, IDS_ALIAS_USERS_NAME, szName, 80); in SampInitializeSAM()
1008 SampLoadString(hInstance, IDS_ALIAS_GUESTS_NAME, szName, 80); in SampInitializeSAM()
1017 SampLoadString(hInstance, IDS_ALIAS_POWER_USERS_NAME, szName, 80); in SampInitializeSAM()
1038 SampLoadString(hInstance, IDS_ALIAS_BACKUP_OPS_NAME, szName, 80); in SampInitializeSAM()
1047 SampLoadString(hInstance, IDS_ALIAS_REPLICATOR_NAME, szName, 80); in SampInitializeSAM()
1142 SampLoadString(hInstance, IDS_GROUP_NONE_NAME, szName, 80); in SampInitializeSAM()
1143 SampLoadString(hInstance, IDS_GROUP_NONE_COMMENT, szComment, 256); in SampInitializeSAM()
[all …]
/reactos/base/applications/cmdutils/at/
H A Dat.c345 HINSTANCE hInstance; in Confirm() local
354 hInstance = GetModuleHandleW(NULL); in Confirm()
355 LoadStringW(hInstance, IDS_CONFIRM_YES, szYesBuffer, _countof(szYesBuffer)); in Confirm()
356 LoadStringW(hInstance, IDS_CONFIRM_NO, szNoBuffer, _countof(szNoBuffer)); in Confirm()
456 HINSTANCE hInstance; in PrintJobDetails() local
468 hInstance = GetModuleHandle(NULL); in PrintJobDetails()
471 LoadStringW(hInstance, IDS_ERROR, szStatusBuffer, _countof(szStatusBuffer)); in PrintJobDetails()
473 LoadStringW(hInstance, IDS_OK, szStatusBuffer, _countof(szStatusBuffer)); in PrintJobDetails()
480 LoadStringW(hInstance, IDS_NEXT, szScheduleBuffer, _countof(szScheduleBuffer)); in PrintJobDetails()
575 HINSTANCE hInstance; in PrintAllJobs() local
[all …]
/reactos/dll/win32/msafd/misc/
H A Dhelpers.c428 if (HelperData->hInstance == NULL) { in SockLoadHelperDll()
439 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
442 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
445 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
450 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
453 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
456 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
459 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
465 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
468 GetProcAddress(HelperData->hInstance, in SockLoadHelperDll()
[all …]
/reactos/base/applications/notepad/
H A Ddialog.c54 LoadString(Globals.hInstance, STRING_ERROR, szTitle, _countof(szTitle)); in ShowLastError()
105 LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, _countof(szNotepad)); in UpdateWindowCaption()
199 LoadString(Globals.hInstance, formatId, szResource, _countof(szResource)); in DIALOG_StringMsgBox()
442 openfilename.hInstance = Globals.hInstance; in DIALOG_FileOpen()
485 LoadString(Globals.hInstance, STRING_ANSI, szText, _countof(szText)); in DIALOG_FileSaveAs_Hook()
507 LoadString(Globals.hInstance, STRING_LF, szText, _countof(szText)); in DIALOG_FileSaveAs_Hook()
510 LoadString(Globals.hInstance, STRING_CR, szText, _countof(szText)); in DIALOG_FileSaveAs_Hook()
546 saveas.hInstance = Globals.hInstance; in DIALOG_FileSaveAs()
717 Globals.hInstance, in DoCreateEditWindow()
903 if (DialogBoxParam(Globals.hInstance, in DIALOG_GoTo()
[all …]
/reactos/base/applications/mscutils/servman/
H A Dmisc.c76 LoadAndFormatString(IN HINSTANCE hInstance, in LoadAndFormatString() argument
86 hInstance, in LoadAndFormatString()
110 IN HINSTANCE hInstance, in StatusBarLoadAndFormatString() argument
119 hInstance, in StatusBarLoadAndFormatString()
152 IN HINSTANCE hInstance, in StatusBarLoadString() argument
159 hInstance, in StatusBarLoadString()
242 hImage = LoadImageW(hInstance, in InitImageList()
283 HINSTANCE hInstance, in ResourceMessageBox() argument
292 LoadStringW(hInstance, uMessageId, szErrorText, sizeof(szErrorText) / sizeof(WCHAR)); in ResourceMessageBox()
293 LoadStringW(hInstance, uCaptionId, szErrorCaption, sizeof(szErrorCaption) / sizeof(WCHAR)); in ResourceMessageBox()
/reactos/modules/rostests/apitests/user32/makeimg/
H A Dshowimg.c81 MyRegisterClass(HINSTANCE hInstance) in MyRegisterClass() argument
91 wcex.hInstance = hInstance; in MyRegisterClass()
104 InitInstance(HINSTANCE hInstance, int nCmdShow) in InitInstance() argument
118 hInstance, in InitInstance()
131 wWinMain(HINSTANCE hInstance, in wWinMain() argument
138 MyRegisterClass(hInstance); in wWinMain()
140 if (!InitInstance(hInstance, nCmdShow)) in wWinMain()
/reactos/boot/freeldr/fdebug/
H A Dfdebug.c34 ATOM MyRegisterClass(HINSTANCE hInstance);
44 int APIENTRY _tWinMain(HINSTANCE hInstance, in _tWinMain() argument
57 LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); in _tWinMain()
59 MyRegisterClass(hInstance); in _tWinMain()
62 if (!InitInstance (hInstance, nCmdShow)) in _tWinMain()
67 hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_FDEBUG); in _tWinMain()
97 ATOM MyRegisterClass(HINSTANCE hInstance) in MyRegisterClass() argument
107 wcex.hInstance = hInstance; in MyRegisterClass()
113 wcex.hIconSm = (HICON)LoadImage(hInstance, in MyRegisterClass()
133 BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) in InitInstance() argument
[all …]
/reactos/win32ss/user/user32/misc/
H A Dusrapihk.c117 ForceResetUserApiHook(HINSTANCE hInstance) in ForceResetUserApiHook() argument
119 if ( ghmodUserApiHook == hInstance && in ForceResetUserApiHook()
193 ClearUserApiHook(HINSTANCE hInstance) in ClearUserApiHook() argument
200 if ( ghmodUserApiHook == hInstance ) in ClearUserApiHook()
209 hInstance = NULL; in ClearUserApiHook()
216 hInstance = hModule; in ClearUserApiHook()
235 hInstance = NULL; in ClearUserApiHook()
240 hInstance = ghmodUserApiHook; in ClearUserApiHook()
250 return hInstance != 0; in ClearUserApiHook()
273 if ( ghmodUserApiHook != hInstance ) in InitUserApiHook()
[all …]
/reactos/sdk/lib/atl/
H A Datlcore.h241 _In_ HINSTANCE hInstance, in _AtlGetStringResourceImage() argument
251 hGlobal = ::LoadResource(hInstance, hResource); in _AtlGetStringResourceImage()
257 nResourceSize = ::SizeofResource(hInstance, hResource); in _AtlGetStringResourceImage()
274 _In_ HINSTANCE hInstance, in AtlGetStringResourceImage() argument
278 …hResource = ::FindResourceW(hInstance, MAKEINTRESOURCEW((((id >> 4) + 1) & static_cast<WORD>(~0)))… in AtlGetStringResourceImage()
280 return _AtlGetStringResourceImage(hInstance, hResource, id); in AtlGetStringResourceImage()
284 _In_ HINSTANCE hInstance, in AtlGetStringResourceImage() argument
289 …hResource = ::FindResourceExW(hInstance, (LPWSTR)RT_STRING, MAKEINTRESOURCEW((((id >> 4) + 1) & st… in AtlGetStringResourceImage()
291 return _AtlGetStringResourceImage(hInstance, hResource, id); in AtlGetStringResourceImage()
/reactos/win32ss/user/user32/windows/
H A Dclass.c265 HINSTANCE hInstance, in GetClassInfoExA() argument
375 HINSTANCE hInstance, in GetClassInfoExW() argument
477 HINSTANCE hInstance, in GetClassInfoA() argument
491 lpWndClass->hInstance = wcex.hInstance; in GetClassInfoA()
508 HINSTANCE hInstance, in GetClassInfoW() argument
522 lpWndClass->hInstance = wcex.hInstance; in GetClassInfoW()
1447 Class.hInstance = lpWndClass->hInstance; in RegisterClassA()
1477 Class.hInstance = lpWndClass->hInstance; in RegisterClassW()
1739 HINSTANCE hInstance) in UnregisterClassA() argument
1749 hInstance); in UnregisterClassA()
[all …]
H A Daccel.c94 HACCEL WINAPI U32LoadAccelerators(HINSTANCE hInstance, HRSRC hTableRes) in U32LoadAccelerators() argument
105 hAccTableData = LoadResource(hInstance, hTableRes); in U32LoadAccelerators()
129 i = SizeofResource(hInstance, hTableRes) / sizeof(PE_ACCEL); in U32LoadAccelerators()
237 HACCEL WINAPI LoadAcceleratorsW(HINSTANCE hInstance, LPCWSTR lpTableName) in LoadAcceleratorsW() argument
241 hInstance, in LoadAcceleratorsW()
242 FindResourceExW(hInstance, (LPCWSTR) RT_ACCELERATOR, lpTableName, 0) in LoadAcceleratorsW()
250 HACCEL WINAPI LoadAcceleratorsA(HINSTANCE hInstance, LPCSTR lpTableName) in LoadAcceleratorsA() argument
254 Accel = FindResourceExA(hInstance, (LPCSTR) RT_ACCELERATOR, lpTableName, 0); in LoadAcceleratorsA()
260 return U32LoadAccelerators(hInstance, Accel); in LoadAcceleratorsA()
/reactos/modules/rostests/apitests/user32/
H A DRegisterClassEx.c10 static ATOM _RegisterClass(LPCWSTR lpwszClassName, HINSTANCE hInstance, UINT style, WNDPROC lpfnWnd… in _RegisterClass() argument
14 wcex.hInstance = hInstance; in _RegisterClass()
18 static ATOM _GetClassAtom(LPCWSTR lpwszClassName, HINSTANCE hInstance) in _GetClassAtom() argument
21 return (ATOM)GetClassInfoExW(hInstance, lpwszClassName, &wcex); in _GetClassAtom()
24 static WNDPROC _GetWndproc(LPCWSTR lpwszClassName, HINSTANCE hInstance) in _GetWndproc() argument
27 BOOL ret = GetClassInfoExW(hInstance, lpwszClassName, &wcex); in _GetWndproc()
35 wcex.hInstance = hInstance; in _RegisterClassA()
39 static ATOM _GetClassAtomA(LPCSTR lpszClassName, HINSTANCE hInstance) in _GetClassAtomA() argument
42 return (ATOM)GetClassInfoExA(hInstance, lpszClassName, &wcex); in _GetClassAtomA()
45 static WNDPROC _GetWndprocA(LPCSTR lpszClassName, HINSTANCE hInstance) in _GetWndprocA() argument
[all …]
/reactos/modules/rosapps/templates/old_wordpad/
H A Deditwnd.c30 hInstance, in InitEditWnd()
157 hInstance, in CreateEditWindow()
179 wc.hInstance = hInstance; in InitEditWindowImpl()
180 wc.hIcon = LoadIcon(hInstance, in InitEditWindowImpl()
187 wc.hIconSm = (HICON)LoadImage(hInstance, in InitEditWindowImpl()
201 hInstance); in UninitEditWindowImpl()

12345678910>>...24