search for: lpbyte

Displaying 11 results from an estimated 11 matches for "lpbyte".

2002 Jul 24
0
enumerating shared printers to the print browse master
...STR pComment = 12163832 (0xB99AF8) R_WINSPOOL: LPWSTR pDescription = \\NTCLIENT\Lexmark Optra PS,Lexmark Optra PS, R_WINSPOOL: LPWSTR pName = \\NTCLIENT\Lexmark Optra PS R_WINSPOOL: LPWSTR pComment = R_WINSPOOL: PDEVMODE_CONTAINER pDevModeContainer {..} R_WINSPOOL: DWORD cbBuf = 0 (0x0) R_WINSPOOL: LPBYTE pDevMode = 0 (0x0) R_WINSPOOL: PSECURITY_CONTAINER pSecurityContainer {..} R_WINSPOOL: DWORD cbBuf = 0 (0x0) R_WINSPOOL: LPBYTE pSecurity = 0 (0x0) thank you for your engagement in this great piece of sotware ~christoph -- /* Christoph Beyer | Office: Building 2b / 23 *\ * DESY...
2007 Nov 26
1
DFS enumeration on a Samba hosted DFS tree.
...e. Not sure what to make of the tail two entries here. As well I've written up a small tool to check each link in the DFS tree (to detect broken links) using the Win32 API function NetDfsEnum. Basically (this is going to get pretty mangled): result = NetDfsEnum(argv[1],3,MAX_PREFERRED_LENGTH,(LPBYTE *)&root,&numEntries,&hResume); while(result==ERROR_SUCCESS) { for(iterator=1;iterator<=numEntries;iterator++) { info = dfsEntry->Storage; for(numStorage=dfsEntry->NumberOfStorages;numStorage>0;numStorage--) { swprintf_s(buffer,MAX_PATH,L&quot...
2003 May 05
1
R-1.7.0: Rproxy.dll loadlibrary/freelibrary error (PR#2914)
...; DWORD keytype = REG_SZ; DWORD cbData = sizeof (DLLlocation); rc = RegOpenKeyEx (HKEY_LOCAL_MACHINE, "Software\\R-core\\R", 0, KEY_READ, &hkey); if (rc == ERROR_SUCCESS) { rc = RegQueryValueEx (hkey, "InstallPath", 0, &keytype, (LPBYTE)DLLlocation, &cbData); RegCloseKey (hkey); } if (rc == ERROR_SUCCESS) { // set R_HOME char *buf; buf = (char *) malloc ((strlen (DLLlocation) + 8) * sizeof (char)); strcpy (buf, "R_HOME="); strcat (buf, DLLlocation); put...
2001 Nov 22
1
Getting Registry info and using it ????
...hort * temp; PCWSTR temp; HRESULT hRes; RegOpenKeyEx(HKEY_LOCAL_MACHINE, (LPCTSTR)lpSubKey, 0, KEY_QUERY_VALUE, &hKey ); /*the value of szFullPath is the correct value it shows while debugging*/ RegQueryValueEx(hKey, (LPCTSTR)"FullPath", NULL, NULL,(LPBYTE) &szFullPath, &dwBufLen); RegCloseKey( hKey ); printf( "The fullpath is %s \n", &szFullPath ); /*if i use this temp in the HrInstallNetComponent function then it installs the driver correctly*/ //temp = L"C:\\Program Files\\LoadApplication7\\netsf.inf"; /*And t...
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
..._t *szKeyPath, + wchar_t *szValue, + wchar_t *szData, + DWORD *nSize ) { - HKEY hKey; - long lSuccess; - - lSuccess = RegOpenKey ( - hHive, - szKeyPath, - &hKey - ); - - if (lSuccess == ERROR_SUCCESS) { - lSuccess = RegQueryValueEx ( - hKey, - szValue, - NULL, - NULL, - (LPBYTE) szData, - nSize - ); - - if (lSuccess == ERROR_SUCCESS) { - return (TRUE); - } - } - - return (FALSE); + HKEY hKey; + long lSuccess; + + lSuccess = RegOpenKey ( + hHive, + szKeyPath, + &hKey + ); + + if (lSuccess == ERROR_SUCCESS) { + lSuccess...
2004 Mar 11
5
win32-etc-0.2.2 testing wanted
I''ve commited code for win32-etc 0.2.2, which adds the configure_user and configure_group methods. Testing appreciated. On my home system, I can''t get configure_user to work, but I haven''t any real idea why it fails. The configure_group method seems to work fine, however. Dan _________________________________________________________________ Fast. Reliable. Get
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
..._t *szKeyPath, + wchar_t *szValue, + wchar_t *szData, + DWORD *nSize ) { - HKEY hKey; - long lSuccess; - - lSuccess = RegOpenKey ( - hHive, - szKeyPath, - &hKey - ); - - if (lSuccess == ERROR_SUCCESS) { - lSuccess = RegQueryValueEx ( - hKey, - szValue, - NULL, - NULL, - (LPBYTE) szData, - nSize - ); - - if (lSuccess == ERROR_SUCCESS) { - return (TRUE); - } - } - - return (FALSE); + HKEY hKey; + long lSuccess; + + lSuccess = RegOpenKey ( + hHive, + szKeyPath, + &hKey + ); + + if (lSuccess == ERROR_SUCCESS) { + lSuccess...
2002 Oct 07
9
GetPrinter Level 2 does not get devmode
...ys null. My code looks like HANDLE hPrinter=NULL; PRINTER_DEFAULTS pDefaults; pDefaults.DesiredAccess = PRINTER_ACCESS_USE; pDefaults.pDatatype=NULL; pDefaults.pDevMode=NULL; BOOL b = OpenPrinter(cPrinterName,&hPrinter,&pDefaults); if (b) { LPBYTE printerInfo=NULL; DWORD dwNeeded; b = GetPrinter(hPrinter,2,NULL,NULL,&dwNeeded); printerInfo = (LPBYTE) new BYTE [dwNeeded]; b = GetPrinter(hPrinter,2,printerInfo,dwNeeded,&dwNeeded); if(b) { PRINTER_INFO_2 * pInfo...
2001 Nov 07
1
WG: Re: Wine and the serial port [LONG]
...) returns, but WaitForSingleObject(overlappedIO) times out). This is what happens in our trace: ------------------------------------- [07.11.2001 14:04.30,739 Thread 0x08085e28 Process 0x080673b0 Module 1127] SerialDevice(PHYSICAL_SERVICES\Devices\TWINSAFE)::Write() HDEVICE hDevice = 0x4040ee00 LPBYTE lpBuffer = 0x42c75cfc DWORD dwSize = 26 Bytes ULONG ulTimeout = 2000 Milliseconds [07.11.2001 14:04.30,741 Thread 0x08085e28 Process 0x080673b0 Module 1127] SerialDevice(PHYSICAL_SERVICES\Devices\TWINSAFE)::PortWrite [07.11.2001 14:04.30,742 Thread 0x08085e28 Process 0x080673b0 Module 1127] Abo...
2013 Sep 13
0
Wine release 1.7.2
...Avoid LPRECT. wined3d: Get rid of the render target / overlay check in wined3d_surface_flip(). wined3d: Properly check if the swapchain format is WINED3DFMT_P8_UINT in primary_render_target_is_p8(). ddraw: Get rid of get_config_key(). ddraw: Avoid LPVOID. ddraw: Avoid LPBYTE. wined3d: Make primary_render_target_is_p8() work on a swapchain. wined3d: Allow the first render target to be set to NULL. ddraw: Just set the render target to NULL in d3d_device_inner_Release(). ddrawex: Avoid LPVOID. d3d8: Avoid LPVOID. wined3d: Just set the f...
2017 Mar 31
0
Wine release 2.5
...urface_blt_to_drawable() into surface_load_drawable(). wined3d: Check for GL_FRONT before GL_BACK in wined3d_texture_get_gl_buffer(). wordpad: Fall back to the default position if the saved position is off-screen. usp10: Avoid LPPOINT. usp10: Avoid LPWORD. usp10: Avoid LPBYTE. usp10: Avoid LPCWSTR. wined3d: Do not return GL_COLOR_ATTACHMENT0 for the back-buffer in wined3d_texture_get_gl_buffer(). wined3d: Properly handle back-buffers in surface_translate_drawable_coords(). wined3d: Properly handle back-buffers in context_get_rt_size(). wine...