ReactOS 0.4.15-dev-8222-g9164419
getuname.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winuser.h>
Include dependency graph for getuname.c:

Go to the source code of this file.

Functions

int WINAPI GetUName (IN WORD wCharCode, OUT LPWSTR lpBuf)
 
BOOL WINAPI DllMain (IN HINSTANCE hinstDLL, IN DWORD dwReason, IN LPVOID lpvReserved)
 

Variables

HINSTANCE hInstance
 

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( IN HINSTANCE  hinstDLL,
IN DWORD  dwReason,
IN LPVOID  lpvReserved 
)

@DllMain

Core routine of the Utility Manager's library.

Parameters
[in]hDllInstanceThe entry point instance of the library.
[in]fdwReasonThe reason argument to indicate the motive DllMain is being called.
[in]lpvReservedReserved.
Returns
Returns TRUE when main call initialization has succeeded, FALSE otherwise.

Definition at line 37 of file getuname.c.

40{
41 switch (dwReason)
42 {
44 hInstance = hinstDLL;
45 break;
46 }
47
48 return TRUE;
49}
DWORD dwReason
Definition: misc.cpp:154
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
HINSTANCE hInstance
Definition: getuname.c:13

◆ GetUName()

int WINAPI GetUName ( IN WORD  wCharCode,
OUT LPWSTR  lpBuf 
)

Definition at line 17 of file getuname.c.

19{
21 int res = LoadStringW(hInstance, wCharCode, szDescription, 256);
22 if (res != 0)
23 {
24 wcscpy(lpBuf, szDescription);
25 return 0;
26 }
27 else
28 {
29 wcscpy(lpBuf, L"Undefined");
30 return 0;
31 }
32}
static const WCHAR szDescription[]
Definition: provider.c:55
GLuint res
Definition: glext.h:9613
#define L(x)
Definition: ntvdm.h:50
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by BestFit_FromNLS(), and UpdateStatusBar().

Variable Documentation

◆ hInstance

HINSTANCE hInstance

Definition at line 13 of file getuname.c.

Referenced by DllMain(), and GetUName().